ResourceMonitor class
A class for monitoring system resources
Constructors
- ResourceMonitor.new({int checkIntervalMs = 5000, Logger? logger})
- Creates a new ResourceMonitor
Properties
- checkIntervalMs → int
-
The interval for checking resources in milliseconds
final
- cpuUsage → double
-
Gets the current CPU usage (0.0 to 1.0)
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRunning → bool
-
Gets whether the monitor is running
no setter
- logger → Logger?
-
Logger for logging operations
final
- memoryUsage → double
-
Gets the current memory usage (0.0 to 1.0)
no setter
- processorCount → int
-
Gets the number of available processors
no setter
- 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
-
start(
) → void - Starts the resource monitor
-
stop(
) → void - Stops the resource monitor
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited