tptrace的mode 缓存

This commit is contained in:
mmc
2026-03-14 20:05:42 +08:00
parent ca511e5729
commit 5b814d065f
2 changed files with 16 additions and 5 deletions

View File

@@ -215,6 +215,10 @@ class TracePoint<T> {
_mode = mode;
}
TPMode getMode() {
return _mode;
}
/// 添加/更新轨迹点
void upsert(T point, [TPAction act = TPAction.UPDATE]) {
switch (_mode) {