using System; namespace Umbraco.Core.Profiling { /// /// Defines an object for use in the application to profile operations /// internal interface IProfiler { /// /// Render the UI to display the profiler /// /// /// /// Generally used for HTML displays /// string Render(); /// /// Profile an operation /// /// /// /// /// Use the 'using(' syntax /// IDisposable Step(string name); /// /// Start the profiler /// void Start(); /// /// Start the profiler /// /// /// 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. /// void Stop(bool discardResults = false); } }