https://community.bistudio.com/wiki/diag_captureSlowFrame
new parameters
bool toFile (if true, doesn't open UI and writes straight to file, note that even if false it might still force to file if it doesn't have a UI, like a server or HC)
scalar continuousCounter (Captures N slow frames. Can be aborted by running diag_captureFrame or another captureSlowFrame)
https://community.bistudio.com/wiki/diag_logSlowFrame
Fixed. infinitely captures every slow frame, can be cancelled by running diag_captureFrame or diag_captureSlowFrame.
Somewhere, chrome export format.
Capturing to file, also creates a .trace file, which can be imported into chrome://tracing (in chromium based webbrowsers), or https://ui.perfetto.dev/
The same format can be exported by pressing the "COPY ALL" button, in the capture frame UI, with CTRL key being held down