summaryrefslogtreecommitdiff
path: root/Runtime/Profiler/ObjectMemoryProfiler.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/ObjectMemoryProfiler.h
+Unity Runtime codeHEADmaster
Diffstat (limited to 'Runtime/Profiler/ObjectMemoryProfiler.h')
-rw-r--r--Runtime/Profiler/ObjectMemoryProfiler.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/Runtime/Profiler/ObjectMemoryProfiler.h b/Runtime/Profiler/ObjectMemoryProfiler.h
new file mode 100644
index 0000000..95c94b3
--- /dev/null
+++ b/Runtime/Profiler/ObjectMemoryProfiler.h
@@ -0,0 +1,19 @@
+#ifndef _OBJECT_MEMORY_PROFILER
+#define _OBJECT_MEMORY_PROFILER
+
+#include "Configuration/UnityConfigure.h"
+#include "Runtime/Utilities/dynamic_array.h"
+
+#if ENABLE_MEM_PROFILER
+
+namespace ObjectMemoryProfiler
+{
+ void TakeMemorySnapshot (dynamic_array<int>& stream);
+
+#if UNITY_EDITOR
+ void SetDataFromEditor ();
+ void DeserializeAndApply (const void* data, size_t size);
+#endif
+};
+#endif
+#endif