Closed GoogleCodeExporter closed 8 years ago
We support a way of doing what you're after in the code already. Since you
can't serialize a Stopwatch and other issues, supporting a *running* profiler
isn't realistic.
However there is an extension method for your profling:
.AddProfilerResults(this MiniProfiler profiler, MiniProfiler externalProfiler)
What you can do is have your remote call run its own profiler and pass it back
- through whatever serialization method you want. JSON serialization is in the
core project, or it's serializable via protobuf - we do this at StackOverflow
for example.
On the caller side, just attach that profiler to your main via:
localProfiler.AddProfilerResults(otherProfiler)
...then the "other profiler" and its children will appear as a child at the
current step in your main profiler.
Original comment by nrcraver
on 22 Jun 2011 at 7:48
Original issue reported on code.google.com by
tsi...@gmail.com
on 22 Jun 2011 at 8:25