-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[Feature] Profiling support in Bun #19726
Copy link
Copy link
Open
Description
Description
Bun is not built on V8 but on Safari's JavaScriptCore (JSC), and we would need an entirely different implementation of the profiler in order to be able to profile the bun runtime.
Upvoting on this issue helps us prioritize this (see statement below in "Priority").
Also mentioned in this issue:
Reasons against implementing this
- Bun has a
console.profilewhich might do something similar (at least in dev): https://bun.com/reference/globals/Console/profile - Production profiling in Bun still has issues, for example leaking memory very fast: CPU profiler leaks memory very rapidly oven-sh/bun#24858
Resources
Related APIs
- Node
inspector.Profilein Bun (inspectornot implemented in Bun): https://bun.com/reference/node/inspector/Profiler/Profile - Node GC Profiler (implemented in Bun, but different profiler): https://bun.sh/reference/node/v8/GCProfiler
Priority
React with 👍 to help prioritize this feature. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Fields
Give feedbackNo fields configured for issues without a type.