stop_cpu_profile
Stop CPU profiling, save the full profile to a .cpuprofile file, and get a summary of the hottest functions.
Instructions
Stop CPU profiling and collect the profile. The full profile is written to a .cpuprofile file (loadable in Chrome DevTools Performance panel); a summary of the hottest functions is returned inline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Number of hottest functions to include in the summary (default 20). | |
| pageId | No | Page id from list_pages, or "main" (default) for the main process. | |
| filePath | No | Output file path. Defaults to a file in the system temp dir. | |
| sessionId | Yes | Session id returned by launch_app. |