File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
dev/benchmarks/macrobenchmarks/lib/src/web Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,16 @@ class BenchBuildColorsGrid extends WidgetBuildRecorder {
215
215
BenchBuildColorsGrid .canvasKit ()
216
216
: mode = _TestMode .useCanvasKit, super (name: canvasKitBenchmarkName);
217
217
218
+ /// Disables tracing for this benchmark.
219
+ ///
220
+ /// When tracing is enabled, DOM layout takes longer to complete. This has a
221
+ /// significant effect on the benchmark since we do a lot of text layout
222
+ /// operations that trigger synchronous DOM layout.
223
+ ///
224
+ /// Tracing has a negative effect only in [_TestMode.useDomTextLayout] mode.
225
+ @override
226
+ bool get isTracingEnabled => false ;
227
+
218
228
static const String domBenchmarkName = 'text_dom_color_grid' ;
219
229
static const String canvasBenchmarkName = 'text_canvas_color_grid' ;
220
230
static const String canvasKitBenchmarkName = 'text_canvas_kit_color_grid' ;
You can’t perform that action at this time.
0 commit comments