EnterClassPerf class

进入课堂全链路性能基线打点工具。

仅用于本地诊断,不上报云端(isReport: false)。 收集 _getSchoolInfo / _getClassInfo / _joinClass / joinClassSuccess / 首帧 / 白板 onBoardCreated / trtcEnterRoomSuccess 这一条主链路的耗时。

默认 enabled = false,所有方法 no-op,避免污染生产日志。 调试性能时设 enabled = true 重跑。

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Properties

enabled bool
总开关。默认关闭;性能调试时改为 true。
getter/setter pair

Static Methods

dump() → void
在终点输出完整时间线。可重复调用,仅首次生效。
mark(String key) → void
在关键节点打点。
reset() → void
课堂销毁时调用,避免下一节课累计上一节的 stopwatch。
start() → void
起点。