Changeset 367 for binary-improvements/MapRendering/Web/API/WebAPI.cs
- Timestamp:
- Aug 11, 2021, 6:22:03 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/API/WebAPI.cs
r351 r367 2 2 using System.Text; 3 3 using AllocsFixes.JSON; 4 using UnityEngine.Profiling;5 4 6 5 namespace AllocsFixes.NetConnections.Servers.Web.API { … … 8 7 public readonly string Name; 9 8 10 protected WebAPI ( ) {11 Name = GetType ().Name;9 protected WebAPI (string _name = null) { 10 Name = _name ?? GetType ().Name; 12 11 } 13 12 14 13 #if ENABLE_PROFILER 15 private static readonly CustomSampler jsonSerializeSampler =CustomSampler.Create ("JSON_Serialize");16 private static readonly CustomSampler netWriteSampler =CustomSampler.Create ("JSON_Write");14 private static readonly UnityEngine.Profiling.CustomSampler jsonSerializeSampler = UnityEngine.Profiling.CustomSampler.Create ("JSON_Serialize"); 15 private static readonly UnityEngine.Profiling.CustomSampler netWriteSampler = UnityEngine.Profiling.CustomSampler.Create ("JSON_Write"); 17 16 #endif 18 17
Note:
See TracChangeset
for help on using the changeset viewer.