diff options
Diffstat (limited to 'src/cmd/vendor/github.com/google/pprof/third_party/d3flamegraph/index.js')
-rw-r--r-- | src/cmd/vendor/github.com/google/pprof/third_party/d3flamegraph/index.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cmd/vendor/github.com/google/pprof/third_party/d3flamegraph/index.js b/src/cmd/vendor/github.com/google/pprof/third_party/d3flamegraph/index.js new file mode 100644 index 0000000000..d6e0b5b6ed --- /dev/null +++ b/src/cmd/vendor/github.com/google/pprof/third_party/d3flamegraph/index.js @@ -0,0 +1,13 @@ +// This file exports a stripped-down API surface of d3 and d3-flame-graph, +// using only the functions used by pprof. + +export { + select, +} from "d3-selection"; + +export { + default as flamegraph +// If we export from "d3-flame-graph" that exports the "dist" version which +// includes another copy of d3-selection. To avoid including d3-selection +// twice in the output, instead import the "src" version. +} from "d3-flame-graph/src/flamegraph"; |