This is port of MiniProfiler.EF6 to make it able to use it with ServiceStack.MiniProfiler