add all
This commit is contained in:
8
Packages/com.tivadar.best.http/Editor/Profiler.meta
Normal file
8
Packages/com.tivadar.best.http/Editor/Profiler.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a1b9757b08647fd429fb2d3a504d3788
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ee6898caa8b437445b91ccde35286fae
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a27483e3bb01d5546bd803c92f53c77f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1e4f967529f18d5439bc00808ed1f326
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,34 @@
|
||||
#if BESTHTTP_PROFILE && UNITY_2021_2_OR_NEWER
|
||||
using Unity.Profiling.Editor;
|
||||
|
||||
using Best.HTTP.Profiler.Network;
|
||||
|
||||
namespace Best.HTTP.Editor.Profiler.Network
|
||||
{
|
||||
[System.Serializable]
|
||||
[ProfilerModuleMetadata(NetworkStats.CategoryName)]
|
||||
public sealed class NetworkStatsProfilerModule : ProfilerModule
|
||||
{
|
||||
static readonly ProfilerCounterDescriptor[] k_Counters =
|
||||
{
|
||||
new ProfilerCounterDescriptor(NetworkStats.BufferedToSendName, NetworkStats.Category),
|
||||
new ProfilerCounterDescriptor(NetworkStats.SentSinceLastFrameName, NetworkStats.Category),
|
||||
new ProfilerCounterDescriptor(NetworkStats.SentTotalName, NetworkStats.Category),
|
||||
|
||||
new ProfilerCounterDescriptor(NetworkStats.ReceivedAndUnprocessedName, NetworkStats.Category),
|
||||
new ProfilerCounterDescriptor(NetworkStats.ReceivedSinceLastFrameName, NetworkStats.Category),
|
||||
new ProfilerCounterDescriptor(NetworkStats.ReceivedTotalName, NetworkStats.Category),
|
||||
|
||||
new ProfilerCounterDescriptor(NetworkStats.OpenConnectionsName, NetworkStats.Category),
|
||||
new ProfilerCounterDescriptor(NetworkStats.TotalConnectionsName, NetworkStats.Category),
|
||||
|
||||
new ProfilerCounterDescriptor(NetworkStats.TotalDNSCacheHits, NetworkStats.Category),
|
||||
new ProfilerCounterDescriptor(NetworkStats.TotalDNSCacheMiss, NetworkStats.Category),
|
||||
};
|
||||
|
||||
public NetworkStatsProfilerModule() : base(k_Counters)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 997070aa1f569c44ab6386e5a3b8c075
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "com.Tivadar.Best.HTTP.Profiler.Editor",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:b46779583a009f04ba9f5f31d0e7e6ac",
|
||||
"GUID:9069ac25d95ca17448a247f3bb1c769f"
|
||||
],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": false,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [
|
||||
{
|
||||
"name": "com.unity.profiling.core",
|
||||
"expression": "1.0.0",
|
||||
"define": "BESTHTTP_PROFILE"
|
||||
}
|
||||
],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f5172b08096bc564e960c6b5e420e790
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user