chore: remove unused tracing category for cpu profiling (#5866)
This commit is contained in:
parent
201557f722
commit
726cb14003
@ -77,7 +77,6 @@ export class Tracing {
|
|||||||
'latencyInfo',
|
'latencyInfo',
|
||||||
'disabled-by-default-devtools.timeline.stack',
|
'disabled-by-default-devtools.timeline.stack',
|
||||||
'disabled-by-default-v8.cpu_profiler',
|
'disabled-by-default-v8.cpu_profiler',
|
||||||
'disabled-by-default-v8.cpu_profiler.hires',
|
|
||||||
];
|
];
|
||||||
const {
|
const {
|
||||||
path = null,
|
path = null,
|
||||||
|
@ -56,7 +56,7 @@ describeChromeOnly('Tracing', function () {
|
|||||||
it('should run with custom categories if provided', async () => {
|
it('should run with custom categories if provided', async () => {
|
||||||
await page.tracing.start({
|
await page.tracing.start({
|
||||||
path: outputFile,
|
path: outputFile,
|
||||||
categories: ['-*', 'disabled-by-default-v8.cpu_profiler.hires'],
|
categories: ['-*', 'disabled-by-default-devtools.timeline.frame'],
|
||||||
});
|
});
|
||||||
await page.tracing.stop();
|
await page.tracing.stop();
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ describeChromeOnly('Tracing', function () {
|
|||||||
);
|
);
|
||||||
const traceConfig = JSON.parse(traceJson.metadata['trace-config']);
|
const traceConfig = JSON.parse(traceJson.metadata['trace-config']);
|
||||||
expect(traceConfig.included_categories).toEqual([
|
expect(traceConfig.included_categories).toEqual([
|
||||||
'disabled-by-default-v8.cpu_profiler.hires',
|
'disabled-by-default-devtools.timeline.frame',
|
||||||
]);
|
]);
|
||||||
expect(traceConfig.excluded_categories).toEqual(['*']);
|
expect(traceConfig.excluded_categories).toEqual(['*']);
|
||||||
expect(traceJson.traceEvents).not.toContainEqual(
|
expect(traceJson.traceEvents).not.toContainEqual(
|
||||||
|
Loading…
Reference in New Issue
Block a user