I am trying to get some performance metrics for various controls (.ascx) that are on an ASP.NET webforms page. There's no problem with the whole page, but for user controls I can't get a good breakdown.
I thought the obvious thing to do was to add the step MiniProfiler.Current.Step in the page load, and then to dispose of it in the pre-render of unload, but that just results in a timing for the full page.
Is there a reliable way to time an .ascx control using MiniProfiler?