new Profiler(inspector): Profiler
Attributes
Creates an instance of Profiler.
Source Code: lib/debug/ProfilingPlugin.js#L71Type:
InspectorType:
Sessionprofiler.destroy(): Promise<void>
profiler.hasSession(): boolean
Returns:
booleanprofiler.sendCommand(method, params?): Promise<any>
Attributes
Returns promise for the result.
profiler.startProfiling(): Promise<void> | Promise<[any, any, any]>
profiler.stopProfiling(): Promise<{ profile: { endTime: number; startTime: number } }>
Returns }>} profile result.