Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cspell-dict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ résumé
rolldown
rspack
serializers
skia-canvas
smol-toml
specberus
Subdeps
Expand Down
141 changes: 0 additions & 141 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ allowBuilds:
'@swc/core': true
core-js: false
esbuild: true
skia-canvas: false
unrs-resolver: true

# cspell:dictionaries npm
Expand Down
4 changes: 0 additions & 4 deletions tools/perf-chart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
"src",
"bin.ts"
],
"devDependencies": {
"chart.js": "^4.6.1",
"skia-canvas": "^4.0.0"
},
"dependencies": {
"@streetsidesoftware/unindent": "^1.0.1",
"commander": "^15.0.0",
Expand Down
2 changes: 0 additions & 2 deletions tools/perf-chart/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ program
.argument('<file>', 'path to perf data file')
.description('Generate a min/max chart of the perf data')
.option('-o, --output <path>', 'Path to the output the Markdown file.')
.option('-p, --png <path>', 'Path to PNG file to generate.')
.option('-u, --site-url <url>', 'The url to prefix png path when adding it to the markdown.')
.option('--daily-csv <path>', 'Path out output the daily csv')
.option(
'-d, --days <number>',
Expand Down
51 changes: 0 additions & 51 deletions tools/perf-chart/src/experimental/plotPng.ts

This file was deleted.

6 changes: 0 additions & 6 deletions tools/perf-chart/src/options.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
export interface Options {
/** Path to PNG file to generate. */
png?: string;

/** Path to the output the Markdown file. */
output?: string;

/** The url to prefix png path when adding it to the markdown */
siteUrl?: string;

/** The number of days in the past to plot. */
days: number;

Expand Down
14 changes: 1 addition & 13 deletions tools/perf-chart/src/perfChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ export async function perfReport(csvFile: string | URL, options: Options): Promi
const recordsGraph = limitDataToDaysAgo(rawRecords, days * 3);

await outputDailyCsv(recordsGraph, options);

await generatePng(recordsGraph, options);
}

function limitDataToDaysAgo(data: CsvRecordsRO, days: number): CsvRecord[] {
Expand Down Expand Up @@ -62,17 +60,7 @@ async function outputDailyCsv(records: CsvRecord[], options: Options): Promise<v
await outputFile(options.dailyCsv, dailyCsv);
}

async function generatePng(records: CsvRecord[], options: Options): Promise<void> {
if (!options.png) return;

// Delay the import until needed - not actively used.
const { plotPng } = await import('./experimental/plotPng.ts');

const buffer = await plotPng(records, options);
await outputFile(options.png, buffer);
}

async function outputFile(filePath: string, content: string | Buffer): Promise<void> {
async function outputFile(filePath: string, content: string): Promise<void> {
await fs.mkdir(Path.dirname(filePath), { recursive: true });
await fs.writeFile(filePath, content);
}
Expand Down
2 changes: 0 additions & 2 deletions tools/perf-chart/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"noEmit": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
// `skia-canvas` ships type declarations with errors.
"skipLibCheck": true,
"allowImportingTsExtensions": true,
"types": ["node"],
"outDir": "dist"
Expand Down
Loading