File tree Expand file tree Collapse file tree
packages/devtools_app/lib/src/screens/performance/panes/timeline_events Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,13 +82,12 @@ class TimelineEventsController extends PerformanceFeatureController
8282 @visibleForTesting
8383 late final Uint8ListRingBuffer traceRingBuffer;
8484
85- /// Size limit in GB for [traceRingBuffer] that determines when traces should
86- /// be removed from the queue.
87- final _traceRingBufferSize = convertBytes (
88- 1 ,
89- from: ByteUnit .gb,
90- to: ByteUnit .byte,
91- ).round ();
85+ /// Size limit for [traceRingBuffer] that determines when traces should be
86+ /// removed from the queue.
87+ ///
88+ /// Wasm sets a size limit on byte arrays of int32 max which is specifically
89+ /// 1 less than 1 << 31.
90+ final _traceRingBufferSize = (1 << 31 ) - 1 ;
9291
9392 /// Track events that we have received from the VM, but have not yet
9493 /// processed.
You can’t perform that action at this time.
0 commit comments