@malloydata/malloy-profiler
v0.0.325
Published
This package enables profiling of the Malloy compiler. Currently it only works with stateless compilation of queries. In the future we can extend it to support other kinds of compilation.
Downloads
612
Readme
Malloy Stable Request Profiler
This package enables profiling of the Malloy compiler. Currently it only works with stateless compilation of queries. In the future we can extend it to support other kinds of compilation.
Usage
Basic timing (100 iterations with average):
npm run time path/to/file.jsonDetailed flame graph profiling:
npm run profile path/to/file.jsonThis creates a .cpuprofile file and provides instructions for viewing the flame graph in Chrome DevTools.
To view the flame graph:
- Open Chrome and navigate to
chrome://inspect - Click "Open dedicated DevTools for Node"
- Go to the Performance tab
- Load the generated
.cpuprofilefile
