Skip to content

Commit

Permalink
Add comment demonstrating how to add custom tracing categories to ben…
Browse files Browse the repository at this point in the history
…chmarks
  • Loading branch information
andrewiggins committed Apr 4, 2023
1 parent 4b5e755 commit 2226d4c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions benches/scripts/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as path from 'path';
import { deleteAsync } from 'del';
import { writeFile, stat, mkdir } from 'fs/promises';
import { traceCategories } from 'tachometer/lib/defaults.js';
import { repoRoot, benchesRoot, toUrl } from './utils.js';
import { defaultBenchOptions } from './bench.js';
import { prepare } from './prepare.js';
Expand Down Expand Up @@ -189,6 +190,14 @@ export async function generateConfig(benchPath, options) {

browser.trace = {
logDir: traceLogDir
// categories: [
// ...traceCategories,
// 'devtools.timeline',
// 'disabled-by-default-devtools.timeline',
// 'disabled-by-default-devtools.cpu_profiler',
// 'disabled-by-default-cpu_profiler',
// 'disabled-by-default-v8.cpu_profiler'
// ]
};
}

Expand Down

0 comments on commit 2226d4c

Please sign in to comment.