- Timestamp:
- Aug 8, 2022, 8:07:44 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/WebAPI/GetPlayerList.cs
r391 r394 13 13 new Regex (@"^(>=|=>|>|<=|=<|<|==|=)?\s*([0-9]+(\.[0-9]*)?)$"); 14 14 15 #if ENABLE_PROFILER16 15 private static readonly UnityEngine.Profiling.CustomSampler jsonSerializeSampler = UnityEngine.Profiling.CustomSampler.Create ("JSON_Build"); 17 #endif18 16 19 17 public override void HandleRequest (RequestContext _context) { … … 42 40 List<JsonObject> playerList = new List<JsonObject> (); 43 41 44 #if ENABLE_PROFILER45 42 jsonSerializeSampler.Begin (); 46 #endif47 43 48 44 foreach (KeyValuePair<PlatformUserIdentifierAbs, Player> kvp in playersList.Dict) { … … 76 72 } 77 73 78 #if ENABLE_PROFILER79 74 jsonSerializeSampler.End (); 80 #endif81 75 82 76 IEnumerable<JsonObject> list = playerList;
Note:
See TracChangeset
for help on using the changeset viewer.