75 static void setAllocationCounter(std::function<uint64_t()> counter) { allocationCounter = std::move(counter); }
96 inline static bool enabled =
false;
97 inline static bool logging =
false;
100 inline static Time phaseStart = 0;
101 inline static Time frameStart = 0;
102 inline static Time lastStart = 0;
103 inline static Time layoutMark = 0;
104 inline static uint64_t allocationsStart = 0;
105 inline static Event<> frameEvent;
106 inline static std::function<uint64_t()> allocationCounter;
Definition profiler.hpp:58
static void setEnabled(bool enabled)
static void setDrawStats(uint32_t drawCalls, uint32_t triangles)
static void endPhase(Phase phase)
static bool isEnabled()
Definition profiler.hpp:61
static const FrameProfile & getLastFrame()
Definition profiler.hpp:67
static bool isMeasuring()
static void addLayout(Time duration)
Phase
Definition profiler.hpp:79
static void endFrame(bool drawn)
static Event * getFrameEvent()
Definition profiler.hpp:70
static void setAllocationCounter(std::function< uint64_t()> counter)
Definition profiler.hpp:75
static void addViewLaidOut()
Definition actions.hpp:25
retro_time_t Time
Definition time.hpp:31
Definition profiler.hpp:32
Time flush
Definition profiler.hpp:39
Time draw
Definition profiler.hpp:37
uint32_t drawCalls
Definition profiler.hpp:46
bool drawn
Definition profiler.hpp:49
Time swap
Definition profiler.hpp:40
uint32_t triangles
Definition profiler.hpp:47
uint32_t layouts
Definition profiler.hpp:44
Time layout
Definition profiler.hpp:36
uint32_t viewsLaidOut
Definition profiler.hpp:45
Time total
Definition profiler.hpp:41
uint64_t allocations
Definition profiler.hpp:48
Time interval
Definition profiler.hpp:42
Time input
Definition profiler.hpp:34
Time events
Definition profiler.hpp:33
Time inspector
Definition profiler.hpp:38
Time update
Definition profiler.hpp:35