I need to decrease the timer stats of a sub profiler


#1

I am trying to emulate the kind of behavior that the Wcf implementation profiles across the network for WebApi.

WcfMiniProfilerClientInspector.cs uses MiniProfiler.Current.DurationMilliseconds to log when a Wcf call begins, and then when the response is received it passes it through MiniProfiler.Root.UpdateStartMillisecondTimingsToAbsolute(milliseconds).

However it appears that at some point a change was made so that MiniProfiler.Current.DurationMilliseconds is always 0 until the profiler timers invoke .Stop()

Any help on how I can accomplish this using the newest version?