Unverified Commit b0610be3 authored by Mouad Debbar's avatar Mouad Debbar Committed by GitHub

[web] Don't collect trace info in the color grid benchmark (#54396)

parent bb02f40c
......@@ -215,6 +215,16 @@ class BenchBuildColorsGrid extends WidgetBuildRecorder {
BenchBuildColorsGrid.canvasKit()
: mode = _TestMode.useCanvasKit, super(name: canvasKitBenchmarkName);
/// Disables tracing for this benchmark.
///
/// When tracing is enabled, DOM layout takes longer to complete. This has a
/// significant effect on the benchmark since we do a lot of text layout
/// operations that trigger synchronous DOM layout.
///
/// Tracing has a negative effect only in [_TestMode.useDomTextLayout] mode.
@override
bool get isTracingEnabled => false;
static const String domBenchmarkName = 'text_dom_color_grid';
static const String canvasBenchmarkName = 'text_canvas_color_grid';
static const String canvasKitBenchmarkName = 'text_canvas_kit_color_grid';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment