Profiling data can export as .cpuprofile
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Converts output of various profiling/sampling tools to the .cpuprofile format so it can be loaded into Chrome DevTools.
call-trace.js is a JavaScript instrumentation tool that records the complete call graph and optional timing data of a JavaScript file's execution. It converts the trace into Chrome CPU profile format, enabling detailed performance analysis in DevTools without sampling. ## Key Features - **Complete Call Graph Recording** — Captures every function call and exit, providing a non-sampled execution trace. - **Optional Timing Data** — Records timestamps for each function entry and exit when the `--time` flag is used. - **Chrome DevTools Integration** — Exports traces in `.cpuprofile` format for visualization and analysis in Chrome's performance tools. - **Global Trace Access** — Stores trace data in a global variable (`_$wɔk`) with properties for functions, call records, and timestamps. ## Philosophy It aims to provide precise, non-sampled insights into JavaScript execution for debugging and performance optimization, though it is experimental and may not handle all code patterns reliably.