diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Profiler/DeprecatedFrameStatsProfiler.h |
Diffstat (limited to 'Runtime/Profiler/DeprecatedFrameStatsProfiler.h')
-rw-r--r-- | Runtime/Profiler/DeprecatedFrameStatsProfiler.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Runtime/Profiler/DeprecatedFrameStatsProfiler.h b/Runtime/Profiler/DeprecatedFrameStatsProfiler.h new file mode 100644 index 0000000..24eb11b --- /dev/null +++ b/Runtime/Profiler/DeprecatedFrameStatsProfiler.h @@ -0,0 +1,28 @@ +#pragma once + +struct FrameStats +{ + typedef signed long long Timestamp; + + void reset() { + fixedBehaviourManagerDt = 0; + fixedPhysicsManagerDt = 0; + dynamicBehaviourManagerDt = 0; + coroutineDt = 0; + skinMeshUpdateDt = 0; + animationUpdateDt = 0; + renderDt = 0; + + fixedUpdateCount = 0; + } + + Timestamp fixedBehaviourManagerDt; + Timestamp fixedPhysicsManagerDt; + Timestamp dynamicBehaviourManagerDt; + Timestamp coroutineDt; + Timestamp skinMeshUpdateDt; + Timestamp animationUpdateDt; + Timestamp renderDt; + int fixedUpdateCount; +}; +FrameStats const& GetFrameStats();
\ No newline at end of file |