- Initial commit

This commit is contained in:
Timur Kozanov
2026-07-03 05:02:26 +03:00
commit 374ff1e689
4080 changed files with 388870 additions and 0 deletions

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,18 @@
fileFormatVersion: 2
guid: 997070aa1f569c44ab6386e5a3b8c075
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/Network/NetworkStatsProfilerModule.cs
uploadId: 783279