- Initial commit
This commit is contained in:
25
Editor/Profiler/Memory/MemoryStatsProfilerModule.cs
Normal file
25
Editor/Profiler/Memory/MemoryStatsProfilerModule.cs
Normal file
@ -0,0 +1,25 @@
|
||||
#if BESTHTTP_PROFILE && UNITY_2021_2_OR_NEWER
|
||||
using Best.HTTP.Profiler.Memory;
|
||||
|
||||
using Unity.Profiling.Editor;
|
||||
|
||||
namespace Best.HTTP.Editor.Profiler.Memory
|
||||
{
|
||||
[System.Serializable]
|
||||
[ProfilerModuleMetadata(MemoryStats.CategoryName)]
|
||||
public sealed class MemoryStatsProfilerModule : ProfilerModule
|
||||
{
|
||||
static readonly ProfilerCounterDescriptor[] k_Counters =
|
||||
{
|
||||
new ProfilerCounterDescriptor(MemoryStats.BorrowedName, MemoryStats.Category),
|
||||
new ProfilerCounterDescriptor(MemoryStats.PooledName, MemoryStats.Category),
|
||||
new ProfilerCounterDescriptor(MemoryStats.CacheHitsName, MemoryStats.Category),
|
||||
new ProfilerCounterDescriptor(MemoryStats.ArrayAllocationsName, MemoryStats.Category)
|
||||
};
|
||||
|
||||
public MemoryStatsProfilerModule() : base(k_Counters)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
18
Editor/Profiler/Memory/MemoryStatsProfilerModule.cs.meta
Normal file
18
Editor/Profiler/Memory/MemoryStatsProfilerModule.cs.meta
Normal file
@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a27483e3bb01d5546bd803c92f53c77f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 267636
|
||||
packageName: Best HTTP
|
||||
packageVersion: 3.0.17
|
||||
assetPath: Packages/com.tivadar.best.http/Editor/Profiler/Memory/MemoryStatsProfilerModule.cs
|
||||
uploadId: 783279
|
||||
Reference in New Issue
Block a user