I am looking at runtime profiling tools for a web application (WebForms).
I reviewed MiniProfiler and Glimpse.
In MiniProfiler, itโs easy (actually, the only way?) To log profiling messages:
var profiler = MiniProfiler.Current; using (profiler.Step("Doing complex stuff")) { using (profiler.Step("Step A")) {
In Glimpse, you get automatic profiling for the query life cycle - but I'm not sure what the easiest way to profile custom business logic scripts is.
I read here that Glimpse supports System.Diagnostics.(Trace|Debug).Trace*() on the "Trace" tab, but it only indicates points in time, it does not look like nested profile areas, It would be nice to track user data more in a structured way โ for example, on the Timeline tab.
So the question is, can I (hopefully easily) get structured, customizable MiniProfiler logging in Glimpse?
PS. I know that the Glimpse extension is for displaying MiniProfiler data, but it looks like it's left.
SFC. I was pleasantly surprised to see Glimpse working (almost) out of the box in my WebForms project (in the classic IIS pipeline mode!). AFAIK, MiniProfiler doesnโt work well with this configuration; it is skewed towards MVC.
source share