The D3.js version distributed with pprof is customized to only include the modules required by pprof.
update.sh
to:package.json
and package-lock.json
)webpack
)This will d3_flame_graph.go
, the minified custom D3.js bundle as Go source code.
A demonstration of building a custom D3 4.0 bundle using ES2015 modules and Rollup.
bl.ocks.org/mbostock/bb09af4c39c79cffcde4
A previous version of d3-flame-graph bundled for pprof used Rollup instead of Webpack. This has now been migrated directly into this directory.
The repository configuring Rollup was here: