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/ExtractLoadedObjectInfo.h |
Diffstat (limited to 'Runtime/Profiler/ExtractLoadedObjectInfo.h')
-rw-r--r-- | Runtime/Profiler/ExtractLoadedObjectInfo.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Runtime/Profiler/ExtractLoadedObjectInfo.h b/Runtime/Profiler/ExtractLoadedObjectInfo.h new file mode 100644 index 0000000..50cd643 --- /dev/null +++ b/Runtime/Profiler/ExtractLoadedObjectInfo.h @@ -0,0 +1,26 @@ +#ifndef EXTRACT_LOADED_OBJECT_INFO_H +#define EXTRACT_LOADED_OBJECT_INFO_H + +#if ENABLE_PROFILER + +// Enum is in sync with ProfilerAPI.txt GarbageCollectReason +enum LoadedObjectMemoryType +{ + kSceneObject = 0, + kBuiltinResource = 1, + kMarkedDontSave = 2, + kAssetMarkedDirtyInEditor = 3, + + kSceneAssetReferencedByNativeCodeOnly = 5, + kSceneAssetReferenced = 6, + + kAssetReferencedByNativeCodeOnly = 8, + kAssetReferenced = 9, + kNotApplicable = 10 +}; + +LoadedObjectMemoryType GetLoadedObjectReason (Object* object); + +#endif + +#endif |