Class Profiler
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalProfiler interface of the JS Self-Profiling API enables you to create a profile of some part of your web application's execution.
[Value("Profiler")]
public class Profiler : EventTarget
- Inheritance
-
Profiler
- Inherited Members
Remarks
Constructors
Profiler()
public Profiler()
Profiler(ProfilerInitOptions)
public Profiler(ProfilerInitOptions options)
Parameters
optionsProfilerInitOptions
Remarks
Once created, the new profiler will start collecting samples.
Properties
SampleInterval
[Value("sampleInterval")]
public Number SampleInterval { get; }
Property Value
Stopped
[Value("stopped")]
public bool Stopped { get; }
Property Value
Methods
Stop()
NOTE
Experimentalstop() method of the Profiler interface stops the profiler and returns a {{jsxref("Promise")}} which resolves to the profile itself.
[Value("stop")]
public Task<ProfilerTrace> Stop()
Returns
- Task<ProfilerTrace>
A Promise that resolves to an object containing the profile data. The format and interpretation of this object is described in Profile anatomy and format.