Skip to content

Commit 112ac38

Browse files
author
Denis Bardadym
committed
Remove flamegraph, it does not bring any difference comparing to treemap or sunburst
1 parent 2200fe7 commit 112ac38

19 files changed

+44710
-92289
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Next
44

5+
* Remove `flamegraph`
6+
* Merge #191. Thanks to @guillaumeduboc
57
* Update deps
68
* Switch jest -> vitest
79
* Switch eslint -> oxlint

plugin/render-template.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ const TEMPLATE_TYPE_RENDERED: Record<
123123
treemap: buildHtml("treemap"),
124124
"raw-data": async ({ data }) => outputRawData(data),
125125
list: async ({ data }) => outputPlainTextList(data),
126-
flamegraph: buildHtml("flamegraph"),
127126
};
128127

129128
export const renderTemplate = (templateType: TemplateType, options: RenderTemplateOptions) => {

plugin/template-types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
"use strict";
22

3-
export type TemplateType = "sunburst" | "treemap" | "network" | "raw-data" | "list" | "flamegraph";
3+
export type TemplateType = "sunburst" | "treemap" | "network" | "raw-data" | "list" ;
44

55
const templates: ReadonlyArray<TemplateType> = [
66
"sunburst",
77
"treemap",
88
"network",
99
"list",
1010
"raw-data",
11-
"flamegraph",
1211
];
1312

1413
export default templates;

rollup.config-dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const postcssUrl = require("postcss-url");
66

77
const { visualizer } = require(".");
88

9-
const HTML_TEMPLATE = ["treemap", "sunburst", "network", "flamegraph"];
9+
const HTML_TEMPLATE = ["treemap", "sunburst", "network"];
1010
const PLAIN_TEMPLATE = ["raw-data", "list"];
1111
const ALL_TEMPLATE = [...HTML_TEMPLATE, ...PLAIN_TEMPLATE];
1212

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const typescript = require("@rollup/plugin-typescript");
44
const postcss = require("rollup-plugin-postcss");
55
const postcssUrl = require("postcss-url");
66

7-
const HTML_TEMPLATE = ["treemap", "sunburst", "network", "flamegraph"];
7+
const HTML_TEMPLATE = ["treemap", "sunburst", "network"];
88

99
/** @type {import('rollup').RollupOptions} */
1010
module.exports = HTML_TEMPLATE.map((templateType) => ({

src/flamegraph/chart.tsx

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/flamegraph/color.ts

Lines changed: 0 additions & 81 deletions
This file was deleted.

src/flamegraph/const.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/flamegraph/flamegraph.tsx

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/flamegraph/index.tsx

Lines changed: 0 additions & 124 deletions
This file was deleted.

0 commit comments

Comments
 (0)