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 }

hasSession(): boolean
Returns:<boolean>

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

Returns promise for the result.


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

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

Returns }>} profile result.

  • Session {typeof Session}