Skip to content

docs: add CPU profiling section to debugging page#2962

Merged
bartlomieju merged 5 commits intodenoland:mainfrom
kajukitli:docs/cpu-profiling
Mar 11, 2026
Merged

docs: add CPU profiling section to debugging page#2962
bartlomieju merged 5 commits intodenoland:mainfrom
kajukitli:docs/cpu-profiling

Conversation

@kajukitli
Copy link
Contributor

Documents the new --cpu-prof flags added in denoland/deno#31909.

Changes

Adds a new "CPU Profiling" section to the debugging page covering:

  • --cpu-prof: Enable CPU profiling
  • --cpu-prof-dir: Output directory for profile files
  • --cpu-prof-name: Custom filename for the profile
  • --cpu-prof-interval: Sampling interval in microseconds
  • --cpu-prof-md: Generate human-readable Markdown report

Includes an example of the Markdown report output format to help users understand what they'll get.

Documents the new --cpu-prof flags added in denoland/deno#31909:
- --cpu-prof: Enable CPU profiling
- --cpu-prof-dir: Output directory
- --cpu-prof-name: Custom filename
- --cpu-prof-interval: Sampling interval
- --cpu-prof-md: Generate Markdown report

Includes example of the Markdown report output format.
- Add example filename format
- Add note that --cpu-prof-dir implicitly enables --cpu-prof
- Add section on analyzing profiles in Chrome DevTools
- Include full Markdown report example from the PR
- Expand report section descriptions (Summary, Top 10, etc.)
@bartlomieju
Copy link
Member

I'll land this one when mentioned PR lands

@bartlomieju bartlomieju merged commit 7160230 into denoland:main Mar 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants