Skip to content

Commit

Permalink
Remove flamegraph, it does not bring any difference comparing to tree…
Browse files Browse the repository at this point in the history
…map or sunburst
  • Loading branch information
Denis Bardadym committed Dec 27, 2024
1 parent 2200fe7 commit 112ac38
Show file tree
Hide file tree
Showing 19 changed files with 44,710 additions and 92,289 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Next

* Remove `flamegraph`
* Merge #191. Thanks to @guillaumeduboc
* Update deps
* Switch jest -> vitest
* Switch eslint -> oxlint
Expand Down
1 change: 0 additions & 1 deletion plugin/render-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ const TEMPLATE_TYPE_RENDERED: Record<
treemap: buildHtml("treemap"),
"raw-data": async ({ data }) => outputRawData(data),
list: async ({ data }) => outputPlainTextList(data),
flamegraph: buildHtml("flamegraph"),
};

export const renderTemplate = (templateType: TemplateType, options: RenderTemplateOptions) => {
Expand Down
3 changes: 1 addition & 2 deletions plugin/template-types.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
"use strict";

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

const templates: ReadonlyArray<TemplateType> = [
"sunburst",
"treemap",
"network",
"list",
"raw-data",
"flamegraph",
];

export default templates;
2 changes: 1 addition & 1 deletion rollup.config-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const postcssUrl = require("postcss-url");

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

const HTML_TEMPLATE = ["treemap", "sunburst", "network", "flamegraph"];
const HTML_TEMPLATE = ["treemap", "sunburst", "network"];
const PLAIN_TEMPLATE = ["raw-data", "list"];
const ALL_TEMPLATE = [...HTML_TEMPLATE, ...PLAIN_TEMPLATE];

Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const typescript = require("@rollup/plugin-typescript");
const postcss = require("rollup-plugin-postcss");
const postcssUrl = require("postcss-url");

const HTML_TEMPLATE = ["treemap", "sunburst", "network", "flamegraph"];
const HTML_TEMPLATE = ["treemap", "sunburst", "network"];

/** @type {import('rollup').RollupOptions} */
module.exports = HTML_TEMPLATE.map((templateType) => ({
Expand Down
56 changes: 0 additions & 56 deletions src/flamegraph/chart.tsx

This file was deleted.

81 changes: 0 additions & 81 deletions src/flamegraph/color.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/flamegraph/const.ts

This file was deleted.

39 changes: 0 additions & 39 deletions src/flamegraph/flamegraph.tsx

This file was deleted.

124 changes: 0 additions & 124 deletions src/flamegraph/index.tsx

This file was deleted.

Loading

0 comments on commit 112ac38

Please sign in to comment.