Ignore:
Timestamp:
Aug 8, 2022, 8:07:44 PM (2 years ago)
Author:
alloc
Message:

SessionHandler cleanup + redirect to /app/error/:code
Some profiler usage cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/WebServer/src/WebAPI/GetPlayerList.cs

    r391 r394  
    1313                        new Regex (@"^(>=|=>|>|<=|=<|<|==|=)?\s*([0-9]+(\.[0-9]*)?)$");
    1414
    15 #if ENABLE_PROFILER
    1615                private static readonly UnityEngine.Profiling.CustomSampler jsonSerializeSampler = UnityEngine.Profiling.CustomSampler.Create ("JSON_Build");
    17 #endif
    1816
    1917                public override void HandleRequest (RequestContext _context) {
     
    4240                        List<JsonObject> playerList = new List<JsonObject> ();
    4341
    44 #if ENABLE_PROFILER
    4542                        jsonSerializeSampler.Begin ();
    46 #endif
    4743
    4844                        foreach (KeyValuePair<PlatformUserIdentifierAbs, Player> kvp in playersList.Dict) {
     
    7672                        }
    7773
    78 #if ENABLE_PROFILER
    7974                        jsonSerializeSampler.End ();
    80 #endif
    8175
    8276                        IEnumerable<JsonObject> list = playerList;
Note: See TracChangeset for help on using the changeset viewer.