IProfilerProvider
A provider used to create ServiceStack.MiniProfiler.MiniProfiler instances and maintain the current instance.
Assembly: ServiceStack.NetFramework.dll
View Source
Declaration
public interface IProfilerProvider
Methods
Start(ProfileLevel)
Starts a new MiniProfiler and sets it to be current. By the end of this method ServiceStack.MiniProfiler.IProfilerProvider.GetCurrentProfiler() should return the new MiniProfiler.
View Source
Declaration
MiniProfiler Start(ProfileLevel level)
Returns
ServiceStack.MiniProfiler.MiniProfiler
Parameters
Type | Name |
---|---|
ServiceStack.MiniProfiler.ProfileLevel | level |
Stop(Boolean)
Ends the current profiling session, if one exists.
View Source
Declaration
void Stop(bool discardResults)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | discardResults |
When true, clears the ServiceStack.MiniProfiler.MiniProfiler.Current for this HttpContext, allowing profiling to be prematurely stopped and discarded. Useful for when a specific route does not need to be profiled.
|
GetCurrentProfiler()
Returns the current MiniProfiler. This is used by ServiceStack.MiniProfiler.MiniProfiler.Current.
View Source
Declaration
MiniProfiler GetCurrentProfiler()