On this page

Source Code: lib/debug/ProfilingPlugin.js#L62
new Profiler(inspector): Profiler
Source Code: lib/debug/ProfilingPlugin.js#L67
Attributes
inspector:Inspector
Returns:Profiler

Creates an instance of Profiler.

Source Code: lib/debug/ProfilingPlugin.js#L71
Source Code: lib/debug/ProfilingPlugin.js#L69
Type:Session
profiler.destroy(): Promise<void>
Source Code: lib/debug/ProfilingPlugin.js#L128
Returns:Promise<void>
profiler.hasSession(): boolean
Source Code: lib/debug/ProfilingPlugin.js#L76
Returns:boolean
profiler.sendCommand(method, params?): Promise<any>
Source Code: lib/debug/ProfilingPlugin.js#L112
Attributes
method:string
params:object
Returns:Promise<any>

Returns promise for the result.

profiler.startProfiling(): Promise<void> | Promise<[any, any, any]>
Source Code: lib/debug/ProfilingPlugin.js#L80
Returns:Promise<void> | Promise<[any, any, any]>
profiler.stopProfiling(): Promise<{ profile: { endTime: number; startTime: number } }>
Source Code: lib/debug/ProfilingPlugin.js#L141
Returns:Promise<{ profile: { endTime: number; startTime: number } }>

Returns }>} profile result.