Using MiniProfiler in self-hosted console applications

Is it possible to use the built-in profiler in a self-hosted application?

Looking at WebRequestProfileProvider.cs indicates that it relies on HttpContext.Current which is null on self-hosted apps. Is there a way to override that behavior to get it working?

No MiniProfiler depends on running inside an ASP.NET context.