SignalR and Mini Profiler

I have an ASP.NET MVC 4 website that uses Mini Profiler. Just recently I’ve started using SignalR for the more interactive pages.

I’ve got an issue with the SignalR pages when they’re open a long time. Mini Profiler frequently generates an arithmetic overflow error because of the large amount of time that the SignalR request has been open. I understand that it’s possible for Mini Profiler to ignore SignalR requests: http://stackoverflow.com/questions/6798028/mvc-mini-profiler-exception-on-miniprofiler-stop

However I’m still keen to analyse the performance of my individual SignalR actions within a request using Mini Profiler. Is there any way to do this?

Equally as good would be a way to get Mini Profiler to profile an arbitrary chunk of non web code but still save the profile run to the database. I don’t actually mind too much if the SignalR action profile results within the main request don’t actually make it to the user interface.

This is a cross post from http://stackoverflow.com/questions/23346245/mini-profiler-and-signalr