Table of Contents

Class Profiler

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The Profiler 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)

NOTE
Experimental
The Profiler() constructor creates a new Profiler object.
public Profiler(ProfilerInitOptions options)

Parameters

options ProfilerInitOptions

Remarks

Once created, the new profiler will start collecting samples.

See also on MDN

Properties

SampleInterval

[Value("sampleInterval")]
public Number SampleInterval { get; }

Property Value

Number

Stopped

[Value("stopped")]
public bool Stopped { get; }

Property Value

bool

Methods

Stop()

NOTE
Experimental
The stop() 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.

Remarks