On this page

new Profiler(inspector): Profiler
Attributes
inspector:Inspector
Returns:Profiler

Creates an instance of Profiler.

Attributes
inspector:Inspector
session:Session
destroy(): Promise<void>
Returns:Promise<void>

hasSession(): boolean
Returns:boolean

sendCommand(method, params?): Promise<any>
Attributes
method:string
params:object
Returns:Promise<any>

Returns promise for the result.


startProfiling(): Promise<void> | Promise<[any, any, any]>
Returns:Promise<void> | Promise<[any, any, any]>

stopProfiling(): Promise<{ profile: { endTime: number; startTime: number } }>
Returns:Promise<{ profile: { endTime: number; startTime: number } }>

Returns }>} profile result.

Attributes
Session:typeof Session