When a window (renderer process) is unresponsive the devtools might be unable to collect the required cpu profile. A reliable way to profile in such cases is with the tracing infra using the steps ...
To open a debugger 'post mortem', after an error hits the top level: When running interactively: call patdb.debug() after the error has returned you to the REPL. (Or ...