...

Text file src/cmd/vendor/github.com/google/pprof/third_party/d3flamegraph/README.md

Documentation: cmd/vendor/github.com/google/pprof/third_party/d3flamegraph

     1# Building a customized D3.js bundle
     2
     3The D3.js version distributed with pprof is customized to only include the
     4modules required by pprof.
     5
     6## Dependencies
     7
     8- Install [npm](https://www.npmjs.com).
     9
    10## Building
    11
    12- Run `update.sh` to:
    13  - Download npm package dependencies (declared in `package.json` and `package-lock.json`)
    14  - Create a d3.js bundle containing the JavScript of d3 and d3-flame-graph (by running `webpack`)
    15
    16This will `d3_flame_graph.go`, the minified custom D3.js bundle as Go source code.
    17
    18# References / Appendix
    19
    20## D3 Custom Bundle
    21
    22A demonstration of building a custom D3 4.0 bundle using ES2015 modules and Rollup. 
    23
    24[bl.ocks.org/mbostock/bb09af4c39c79cffcde4](https://bl.ocks.org/mbostock/bb09af4c39c79cffcde4)
    25
    26## Old version of d3-pprof
    27
    28A previous version of d3-flame-graph bundled for pprof used Rollup instead of
    29Webpack. This has now been migrated directly into this directory.
    30
    31The repository configuring Rollup was here:
    32
    33[github.com/spiermar/d3-pprof](https://github.com/spiermar/d3-pprof)

View as plain text