|
1 | 1 | diff --git a/dist/create-trace-benchmark.js b/dist/create-trace-benchmark.js |
2 | | -index 5918e8f7665b3e796ef88283fc40c2b3286a564f..e1a8768964de8b3c16d38bfb6280d836b45aba0b 100644 |
| 2 | +index 5918e8f7665b3e796ef88283fc40c2b3286a564f..b9927ba8f639c0a9ecc70144362da439468f1b3a 100644 |
3 | 3 | --- a/dist/create-trace-benchmark.js |
4 | 4 | +++ b/dist/create-trace-benchmark.js |
5 | | -@@ -45,9 +45,8 @@ function createTraceBenchmark(group, sampleTrace, options = {}) { |
| 5 | +@@ -45,35 +45,27 @@ function createTraceBenchmark(group, sampleTrace, options = {}) { |
6 | 6 | } |
7 | 7 | exports.default = createTraceBenchmark; |
8 | 8 | function getCategories(isTrial, options) { |
9 | 9 | - const categories = ['-*', ...defaultCategories]; |
10 | | -+ const categories = [...defaultCategories]; |
11 | | - if (isTrial) { |
| 10 | +- if (isTrial) { |
12 | 11 | - categories.push(...captureAllDevtoolsTimelineCategories, ...captureCpuProfileCategories, captureCpuProfilesHiresCategory, captureFilmStripCategory, ...capturePaintProfileCategories); |
13 | | - if (options.additionalTrialCategories) { |
14 | | - categories.push(...options.additionalTrialCategories); |
15 | | - } |
| 12 | +- if (options.additionalTrialCategories) { |
| 13 | +- categories.push(...options.additionalTrialCategories); |
| 14 | +- } |
| 15 | ++ const categories = [...defaultCategories]; |
| 16 | ++ // include the basic disabled by default devtools categories |
| 17 | ++ if (options.captureDevtoolsTimeline) { |
| 18 | ++ categories.push(...captureDevtoolsTimelineCategories); |
| 19 | + } |
| 20 | +- else { |
| 21 | +- // include the basic disabled by default devtools categories |
| 22 | +- if (options.captureDevtoolsTimeline) { |
| 23 | +- categories.push(...captureDevtoolsTimelineCategories); |
| 24 | +- } |
| 25 | +- if (options.captureV8RuntimeStats) { |
| 26 | +- // this breaks devtools display of CPU profile in dev tools |
| 27 | +- categories.push(...captureV8RuntimeStatsCategories); |
| 28 | +- } |
| 29 | +- if (options.captureCpuProfile) { |
| 30 | +- // includes runtime samples |
| 31 | +- categories.push(...captureCpuProfileCategories); |
| 32 | +- } |
| 33 | +- if (options.captureFilmStrip) { |
| 34 | +- categories.push(captureFilmStripCategory); |
| 35 | +- } |
| 36 | +- if (options.capturePaintProfile) { |
| 37 | +- categories.push(...capturePaintProfileCategories); |
| 38 | +- } |
| 39 | +- if (options.additionalCategories) { |
| 40 | +- categories.push(...options.additionalCategories); |
| 41 | +- } |
| 42 | ++ if (options.captureV8RuntimeStats) { |
| 43 | ++ // this breaks devtools display of CPU profile in dev tools |
| 44 | ++ categories.push(...captureV8RuntimeStatsCategories); |
| 45 | ++ } |
| 46 | ++ if (options.captureCpuProfile) { |
| 47 | ++ // includes runtime samples |
| 48 | ++ categories.push(...captureCpuProfileCategories); |
| 49 | ++ } |
| 50 | ++ if (options.captureFilmStrip) { |
| 51 | ++ categories.push(captureFilmStripCategory); |
| 52 | ++ } |
| 53 | ++ if (options.capturePaintProfile) { |
| 54 | ++ categories.push(...capturePaintProfileCategories); |
| 55 | ++ } |
| 56 | ++ if (options.additionalCategories) { |
| 57 | ++ categories.push(...options.additionalCategories); |
| 58 | + } |
| 59 | + return categories; |
| 60 | + } |
0 commit comments