v8-cpu-profile-decoder-mcp
JSON →Decodes V8 CPU profiles into flame graph summaries and hotspots for AI agents
Install
npx v8-cpu-profile-decoder-mcp Tools · 5
- extract_hottest_functions Parses a .cpuprofile file and returns the top N functions ranked by exclusive CPU time (self time), filtering out V8 internals and Node.js built-ins.
- analyze_call_tree_path Finds all callers of a specific function and shows how often each one invoked it, with partial case-insensitive function name matching.
- correlate_source_code Maps compiled JS bottlenecks back to their original TypeScript source locations using .js.map files, with graceful fallback to compiled JS locations.
- analyze_gc_pressure Reports garbage collection overhead as a percentage of profiling duration, broken down by GC type, with threshold-based flagging and recommendations.
- diff_profiles Compares two .cpuprofile files (before/after optimization) and returns per-function CPU time deltas normalized against each profile's total duration.