Guest User

Untitled

a guest
Jan 18th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. profiler.StepStart("key", "value");
  2. var response = GetXXXResponse(request);
  3. if (response != null && response.Timings)
  4. {
  5. foreach (var child in response.Timings)
  6. {
  7. var profiler = new MiniProfiler(child.Name, _profilerService.Profiler.Level;
  8. profiler.ClientTimings = new ClientTimings { Timings = new List<ClientTimings.ClientTiming> { new ClientTimings.ClientTiming { Duration = child.ResponseTime, Name = child.Name, Start = 0 } } };
  9. _profilerService.Profiler.AddProfilerResults(profiler);
  10. }
  11. }
  12. profiler.StepStop("key");
Add Comment
Please, Sign In to add comment