Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- profiler.StepStart("key", "value");
- var response = GetXXXResponse(request);
- if (response != null && response.Timings)
- {
- foreach (var child in response.Timings)
- {
- var profiler = new MiniProfiler(child.Name, _profilerService.Profiler.Level;
- profiler.ClientTimings = new ClientTimings { Timings = new List<ClientTimings.ClientTiming> { new ClientTimings.ClientTiming { Duration = child.ResponseTime, Name = child.Name, Start = 0 } } };
- _profilerService.Profiler.AddProfilerResults(profiler);
- }
- }
- profiler.StepStop("key");
Add Comment
Please, Sign In to add comment