mirror of
https://github.com/flutter/flutter
synced 2024-09-20 00:32:02 +00:00
[web] Don't collect trace info in the color grid benchmark (#54396)
This commit is contained in:
parent
bb02f40ca8
commit
b0610be3b4
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue