Skip to content

ElectronContentTracing.stopRecording method

ElectronContentTracing › stopRecording

Unofficial

Stop recording on all processes.

Trace data will be written into resultFilePath. If resultFilePath is empty or not provided, trace data will be written to a temporary file, and the path will be returned in the promise.

Signature:

stopRecording(resultFilePath?: string | undefined): Promise<string>

Parameters:

Parameter Type Description
resultFilePath? string | undefined The path to write the traced data to.

Returns: Promise<string>A promise that resolves with a path to a file that contains the traced data once all child processes have acknowledged the stopRecording request.