chore: remove unused tracing category for cpu profiling (#5866)

This commit is contained in:
Peter Marshall 2021-09-15 19:59:38 +10:00 committed by GitHub
parent 201557f722
commit 726cb14003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -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,

View File

@ -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(