mirror of
https://github.com/ChromeDevTools/chrome-devtools-mcp.git
synced 2026-09-14 19:45:30 +08:00
feat(performance): set default trace buffer size to match DevTools (1.2gb) (#2614)
Align the trace buffer size configured during performance trace recording with the 1.2 GB (1,200,000 KB) buffer size used by DevTools TracingManager. This prevents traces from overflowing the default 200 MB buffer during longer recordings.
This commit is contained in:
@@ -81,6 +81,7 @@ export const startTrace = definePageTool({
|
||||
];
|
||||
await page.pptrPage.tracing.start({
|
||||
categories,
|
||||
bufferSize: 1200 * 1000,
|
||||
});
|
||||
|
||||
if (request.params.reload) {
|
||||
|
||||
@@ -67,6 +67,7 @@ describe('performance', () => {
|
||||
...DevTools.TracingOptionalCategories.JsSampling,
|
||||
...DevTools.TracingOptionalCategories.Screenshot,
|
||||
],
|
||||
bufferSize: 1200 * 1000,
|
||||
});
|
||||
assert.ok(context.isRunningPerformanceTrace());
|
||||
assert.ok(
|
||||
|
||||
Reference in New Issue
Block a user