On this page

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

Creates an instance of Profiler.

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

hasSession(): boolean
Returns:<boolean>

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

Returns promise for the result.


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

stopProfiling(): Promise
Returns:<Promise>

Returns }>} profile result.

  • Session {typeof Session}