Skip to main content
100%

Gist c7d6ce69974576c130ef

✓ Published0🌍 Public
Aalessioalex
Last edited Oct 3, 2014
Created on Nov 20, 2014

This example converts Node.js V8 log files into symbolicated perf maps for generating flame graphs. The `convert.js` script parses code-creation events from the v8 log, extracting the instruction start address, length, type, and function name to produce entries in the format expected by Linux perf. The workflow uses `fs.readFileSync` and `split` to process the log, then pipes the output to a perf map file. The resulting visualization shows CPU sampling data from `perf record` as a flame graph, enabling performance analysis without upgrading Node.js.

AI-generated description

Similar vizzes