mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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',
|
||||
'disabled-by-default-devtools.timeline.stack',
|
||||
'disabled-by-default-v8.cpu_profiler',
|
||||
'disabled-by-default-v8.cpu_profiler.hires',
|
||||
];
|
||||
const {
|
||||
path = null,
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user