feat(menubar): 支持固定居中面板与独立刷新频率及图表浮层
This commit is contained in:
@@ -85,7 +85,9 @@ import Foundation
|
||||
await sampler.reset()
|
||||
let reset = await sampler.sample()
|
||||
precondition(reset.cpu == nil)
|
||||
let store = MetricsStore()
|
||||
let sampling = SamplingPreferences(defaults: defaults)
|
||||
sampling.backgroundMilliseconds = 500
|
||||
let store = MetricsStore(sampling: sampling)
|
||||
try await waitUntil { store.snapshot.cpu != nil }
|
||||
precondition(store.snapshot.cpu != nil)
|
||||
store.togglePause()
|
||||
|
||||
Reference in New Issue
Block a user