Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
aurore::Profiler Class Reference

#include <aurore/core/profiler.hpp>

Public Types

enum class  Phase {
  EVENTS , INPUT , UPDATE , DRAW ,
  INSPECTOR , FLUSH , SWAP
}
 

Static Public Member Functions

static void setEnabled (bool enabled)
 
static bool isEnabled ()
 
static bool isMeasuring ()
 
static const FrameProfile & getLastFrame ()
 
static Event * getFrameEvent ()
 
static void setAllocationCounter (std::function< uint64_t()> counter)
 
static void beginFrame ()
 
static void endPhase (Phase phase)
 
static void endFrame (bool drawn)
 
static void addLayout (Time duration)
 
static void addViewLaidOut ()
 
static void setDrawStats (uint32_t drawCalls, uint32_t triangles)
 

Member Enumeration Documentation

◆ Phase

enum class aurore::Profiler::Phase
strong
Enumerator
EVENTS 
INPUT 
UPDATE 
DRAW 
INSPECTOR 
FLUSH 
SWAP 

Member Function Documentation

◆ addLayout()

static void aurore::Profiler::addLayout ( Time  duration)
static

◆ addViewLaidOut()

static void aurore::Profiler::addViewLaidOut ( )
static

◆ beginFrame()

static void aurore::Profiler::beginFrame ( )
static

◆ endFrame()

static void aurore::Profiler::endFrame ( bool  drawn)
static

◆ endPhase()

static void aurore::Profiler::endPhase ( Phase  phase)
static

◆ getFrameEvent()

static Event * aurore::Profiler::getFrameEvent ( )
inlinestatic

◆ getLastFrame()

static const FrameProfile & aurore::Profiler::getLastFrame ( )
inlinestatic

◆ isEnabled()

static bool aurore::Profiler::isEnabled ( )
inlinestatic

◆ isMeasuring()

static bool aurore::Profiler::isMeasuring ( )
static

◆ setAllocationCounter()

static void aurore::Profiler::setAllocationCounter ( std::function< uint64_t()>  counter)
inlinestatic

◆ setDrawStats()

static void aurore::Profiler::setDrawStats ( uint32_t  drawCalls,
uint32_t  triangles 
)
static

◆ setEnabled()

static void aurore::Profiler::setEnabled ( bool  enabled)
static

The documentation for this class was generated from the following file: