- Timestamp:
- Nov 16, 2018, 10:38:46 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/Handlers/ApiHandler.cs
r326 r332 4 4 using System.Reflection; 5 5 using AllocsFixes.NetConnections.Servers.Web.API; 6 using UnityEngine.Profiling; 6 7 7 8 namespace AllocsFixes.NetConnections.Servers.Web.Handlers { … … 40 41 } 41 42 43 #if ENABLE_PROFILER 44 private static readonly CustomSampler apiHandlerSampler = CustomSampler.Create ("API_Handler"); 45 #endif 46 42 47 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, 43 48 int permissionLevel) { … … 55 60 if (apis.TryGetValue (apiName, out api)) { 56 61 try { 62 #if ENABLE_PROFILER 63 apiHandlerSampler.Begin (); 64 #endif 57 65 api.HandleRequest (req, resp, user, permissionLevel); 66 #if ENABLE_PROFILER 67 apiHandlerSampler.End (); 68 #endif 58 69 return; 59 70 } catch (Exception e) {
Note:
See TracChangeset
for help on using the changeset viewer.