Skip to content

feat(profiling): add @pyroscope/nodejs for continuous profiling#131

Merged
DivMode merged 1 commit intomainfrom
feat/pyroscope-profiling
Mar 13, 2026
Merged

feat(profiling): add @pyroscope/nodejs for continuous profiling#131
DivMode merged 1 commit intomainfrom
feat/pyroscope-profiling

Conversation

@DivMode
Copy link
Copy Markdown
Owner

@DivMode DivMode commented Mar 13, 2026

Summary

  • Add @pyroscope/nodejs@^0.4.10 for continuous CPU/wall profiling
  • Init Pyroscope before server start in src/index.ts
  • Gracefully skips when PYROSCOPE_SERVER_ADDRESS is unset (local dev)
  • ~2-3% CPU overhead via V8's built-in sampling profiler at 100Hz

Test plan

  • All unit tests pass
  • All integration tests pass (6/6 CF sites)
  • Deploy via bun prod from catchseo and verify profiles in Grafana Cloud

Initializes Pyroscope SDK before server start for full V8 call-stack
flamegraphs. Gracefully skips when PYROSCOPE_SERVER_ADDRESS is unset.
~2-3% CPU overhead via V8's built-in sampling profiler at 100Hz.
@DivMode DivMode merged commit 9204b32 into main Mar 13, 2026
@DivMode DivMode deleted the feat/pyroscope-profiling branch March 13, 2026 13:37
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.

1 participant