summaryrefslogtreecommitdiff
path: root/Runtime/Profiler/DeprecatedFrameStatsProfiler.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-14 22:50:43 +0800
committerchai <chaifix@163.com>2019-08-14 22:50:43 +0800
commit15740faf9fe9fe4be08965098bbf2947e096aeeb (patch)
treea730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Profiler/DeprecatedFrameStatsProfiler.h
+Unity Runtime codeHEADmaster
Diffstat (limited to 'Runtime/Profiler/DeprecatedFrameStatsProfiler.h')
-rw-r--r--Runtime/Profiler/DeprecatedFrameStatsProfiler.h28
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