File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
packages/devtools_app/lib/src/screens/performance/panes/timeline_events Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,12 @@ class TimelineEventsController extends PerformanceFeatureController
82
82
@visibleForTesting
83
83
late final Uint8ListRingBuffer traceRingBuffer;
84
84
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 ;
92
91
93
92
/// Track events that we have received from the VM, but have not yet
94
93
/// processed.
You can’t perform that action at this time.
0 commit comments