resonance 1.0.1
Loading...
Searching...
No Matches
profiler.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "os/hxstr.h"
6
18 unsigned int mStartCycles;
20 unsigned int mCycles;
24 int mDepth;
25};
26
36extern std::vector<ProfileTimer> g_profileTimers;
37
47extern std::vector<ProfileTimer> g_lastFrameProfileTimers;
48
55extern float g_flCyclesToMilliseconds;
56
66
73extern long long g_llFrameTimerCycles;
74
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
ProfileTimer g_frameTimer
The frame interval ResetFrameTimer() restarts, a record outside both tables.
long long g_llFrameTimerCycles
Doubleword ResetFrameTimer() clears.
float g_flCyclesToMilliseconds
Milliseconds per EE cycle, 1.0f / 294912.0f, which the frame timer reset stores.
void ResetFrameTimer()
Store g_flCyclesToMilliseconds and restart g_frameTimer from the current EE Count.
std::vector< ProfileTimer > g_lastFrameProfileTimers
The previous frame's copy of the timers, twenty records.
std::vector< ProfileTimer > g_profileTimers
The timers the game accumulates into during a frame, twenty records.
One labelled interval the profiler accumulates, 0x14 bytes.
Definition profiler.h:16
int mDepth
Nesting depth of the interval, which the reset returns to 1.
Definition profiler.h:24
unsigned int mCycles
Cycles accumulated across the frame.
Definition profiler.h:20
unsigned int mStartCycles
EE Count when the interval was last entered.
Definition profiler.h:18
HxStr mName
Title the profiler reports this interval under.
Definition profiler.h:22