From 726cb14003f0c59ec26ad5e3faa19cbcdbd4299a Mon Sep 17 00:00:00 2001 From: Peter Marshall Date: Wed, 15 Sep 2021 19:59:38 +1000 Subject: [PATCH] chore: remove unused tracing category for cpu profiling (#5866) --- src/common/Tracing.ts | 1 - test/tracing.spec.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/Tracing.ts b/src/common/Tracing.ts index 9a907999155..6a0215f7941 100644 --- a/src/common/Tracing.ts +++ b/src/common/Tracing.ts @@ -77,7 +77,6 @@ export class Tracing { 'latencyInfo', 'disabled-by-default-devtools.timeline.stack', 'disabled-by-default-v8.cpu_profiler', - 'disabled-by-default-v8.cpu_profiler.hires', ]; const { path = null, diff --git a/test/tracing.spec.ts b/test/tracing.spec.ts index 80de87f3bfa..8425652e97b 100644 --- a/test/tracing.spec.ts +++ b/test/tracing.spec.ts @@ -56,7 +56,7 @@ describeChromeOnly('Tracing', function () { it('should run with custom categories if provided', async () => { await page.tracing.start({ path: outputFile, - categories: ['-*', 'disabled-by-default-v8.cpu_profiler.hires'], + categories: ['-*', 'disabled-by-default-devtools.timeline.frame'], }); await page.tracing.stop(); @@ -65,7 +65,7 @@ describeChromeOnly('Tracing', function () { ); const traceConfig = JSON.parse(traceJson.metadata['trace-config']); expect(traceConfig.included_categories).toEqual([ - 'disabled-by-default-v8.cpu_profiler.hires', + 'disabled-by-default-devtools.timeline.frame', ]); expect(traceConfig.excluded_categories).toEqual(['*']); expect(traceJson.traceEvents).not.toContainEqual(