I really like what I've seen regarding MvcMiniProfiler. I'd love to use the SQL monitoring features on non-web applications (windows services, unit tests, etc). Is this possible, or does it require an HTTP environment? The obvious difference would be results delivery, but if I can serialize the results to JSON or somesuch, that would be fine.
I threw together a simple unit test trying to get it to work, but MiniProfiler.Current
appears to always be null, even after executing MiniProfiler.Start()
.
Am I barking up the wrong tree here?