This commit is contained in:
2026-06-15 18:18:16 +08:00
parent 97c9fba14e
commit 2b9f134e5f
4164 changed files with 386922 additions and 79 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a1b9757b08647fd429fb2d3a504d3788
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ee6898caa8b437445b91ccde35286fae
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View 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

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a27483e3bb01d5546bd803c92f53c77f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1e4f967529f18d5439bc00808ed1f326
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 997070aa1f569c44ab6386e5a3b8c075
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f5172b08096bc564e960c6b5e420e790
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: