FindMyFiles
FindMyFiles.ViewModels
PerfPanelViewModel Class
Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy.
public sealed class PerfPanelViewModel : CommunityToolkit.Mvvm.ComponentModel.ObservableObject
Inheritance System.Object → CommunityToolkit.Mvvm.ComponentModel.ObservableObject → PerfPanelViewModel
Constructors
PerfPanelViewModel(IEngineClient) Constructor
Binds the panel to engine — the source of both the stats snapshot and the transport label.
public PerfPanelViewModel(FindMyFiles.Engine.IEngineClient engine);
Parameters
engine IEngineClient
Engine client supplying stats and the transport label.
Properties
PerfPanelViewModel.EngineMode Property
Engine transport label for the F12 panel — moved off the gear menu, where its internal terms (fake / in-proc) confused end users; F12 is diagnostic, so the precise vocabulary stays here.
public string EngineMode { get; }
Property Value
PerfPanelViewModel.RecentTotalsUs Property
Latencies of the most recent queries (µs, oldest first).
public System.Collections.Generic.IReadOnlyList<ulong> RecentTotalsUs { get; }
Property Value
System.Collections.Generic.IReadOnlyList<System.UInt64>
Methods
PerfPanelViewModel.RecordTrace(QueryTraceData) Method
Record one completed query (trace may be null).
public void RecordTrace(FindMyFiles.Engine.QueryTraceData? trace);
Parameters
trace QueryTraceData
Stage breakdown of the query, or null when none was emitted.
PerfPanelViewModel.RefreshStatsAsync() Method
Pull a fresh FindMyFiles.ViewModels.PerfPanelViewModel.Stats snapshot from the engine and raise PerfDataChanged. Awaitable so a pipe round-trip doesn't block the caller.
public System.Threading.Tasks.Task RefreshStatsAsync();
Returns
System.Threading.Tasks.Task
A System.Threading.Tasks.Task that completes once the snapshot is refreshed.
PerfPanelViewModel.Toggle() Method
Flip the panel's visibility (the F12 shortcut / debug menu).
public void Toggle();
Events
PerfPanelViewModel.PerfDataChanged Event
Raised on the UI thread whenever trace/stats data moved.
public event Action? PerfDataChanged;