Interface IProfiler
Defines an object for use in the application to profile operations
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public interface IProfiler
Methods
Render()
Render the UI to display the profiler
Declaration
string Render()
Returns
Type | Description |
---|---|
System.String |
Remarks
Generally used for HTML displays
Start()
Start the profiler
Declaration
void Start()
Step(String)
Profile an operation
Declaration
IDisposable Step(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Returns
Type | Description |
---|---|
System.IDisposable |
Remarks
Use the 'using(' syntax
Stop(Boolean)
Start the profiler
Declaration
void Stop(bool discardResults = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | discardResults |
Remarks
set discardResults to false when you want to abandon all profiling, this is useful for when someone is not authenticated or you want to clear the results based on some other mechanism.