- Timestamp:
- Aug 8, 2022, 8:07:44 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/UrlHandlers/ApiHandler.cs
r391 r394 48 48 } 49 49 50 #if ENABLE_PROFILER51 50 private static readonly UnityEngine.Profiling.CustomSampler apiHandlerSampler = UnityEngine.Profiling.CustomSampler.Create ("API_Handler"); 52 #endif53 51 54 52 public override void HandleRequest (RequestContext _context) { … … 83 81 84 82 try { 85 #if ENABLE_PROFILER86 83 apiHandlerSampler.Begin (); 87 #endif88 84 api.HandleRequest (_context); 89 #if ENABLE_PROFILER90 85 apiHandlerSampler.End (); 91 #endif92 86 } catch (Exception e) { 93 87 Log.Error ($"Error in {nameof(ApiHandler)}.HandleRequest(): Handler {api.Name} threw an exception:");
Note:
See TracChangeset
for help on using the changeset viewer.