Install & Compatibility
Where this runs
tested against v1.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.6MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 19MB
17MB installed
● package 17MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
SystemMonitor
✓ import mozsystemmonitor
✗ from mozsystemmonitor import SystemMonitor
Start the monitor, wait 5 seconds, stop, and print the last CPU measurement.
from mozsystemmonitor import SystemMonitor
import time
monitor = SystemMonitor(1.0) # sample interval in seconds
monitor.start()
time.sleep(5)
monitor.stop()
measurements = monitor.measurements
print(f"CPU average: {measurements.cpu_percent[-1] if measurements.cpu_percent else 'N/A'}")
Upgrade
Version history
1.0.1latest on PyPI · released Nov 14, 2022
Audit
Dependencies
No dependency data recorded yet.