BlockingEvent class

主线程阻塞事件 / Main-thread blocking event

一次"心跳超时"代表 UI isolate 在 durationMs 内没能响应心跳定时器, 通常是同步重活(大 JSON 解析、密集 build)、锁等待或平台通道阻塞。 A heartbeat timeout means the UI isolate failed to answer the watchdog timer for durationMs — usually a heavy synchronous task (big JSON parse, dense build), a lock wait, or a blocked platform channel.

Constructors

BlockingEvent({required DateTime startAt, required DateTime endAt, required int durationMs, List<String> nearbyLogs = const <String>[]})
const

Properties

durationMs → int
阻塞时长(毫秒)/ Blocking duration (ms)
final
durationText → String
时长文本(超过 1 秒用秒表示)/ Duration text (seconds above 1s)
no setter
endAt → DateTime
阻塞结束(恢复后第一次心跳时刻)/ Blocking end (first heartbeat after recovery)
final
hashCode → int
The hash code for this object.
no setterinherited
nearbyLogs → List<String>
阻塞窗口附近的日志摘要,用于定位"卡在做什么" Log summaries around the stall window, to identify what was blocking
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startAt → DateTime
阻塞开始(上一次正常心跳时刻,即阻塞区间的近似起点) Blocking start (the last healthy heartbeat — approximate start of the stall)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited