NeuronPerformanceMonitor class

Performance monitoring for DevTools.

Tracks FPS, memory usage, and signal update performance. This is primarily used by the DevTools extension but can be accessed programmatically for custom monitoring.

Basic Usage

// Run benchmarks
await NeuronPerformanceMonitor.instance.runBenchmarks();

// Get results
print(NeuronPerformanceMonitor.instance.benchmarkResults);

Properties

benchmarkResults Map<String, dynamic>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearData() → void
Clear all performance data
getPerformanceSnapshot() Map<String, dynamic>
Get performance snapshot
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runBenchmarks() Future<void>
Run benchmark tests
toMetricsJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
trackSignalUpdate(String signalId, Duration duration) → void
Track signal update performance

Operators

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

Static Properties

instance NeuronPerformanceMonitor
no setter