How rbonghi/jetson_stats works
jetson-stats monitors and controls NVIDIA Jetson boards. Users launch the terminal interface or use the Python client; the client communicates with a background service that gathers board telemetry and exposes control operations. The service relies on hardware-specific readers and command utilities, while the terminal UI presents the collected data. The README also documents hardware/software decoding and controls for fan speed, NVP model, and jetson_clocks. Some subsystem links reflect README capabilities or indexed imports; unsampled implementation details are not asserted.
Main entry points: service.py Stats service · jtop.py Python client · command.py Command runner · jtopgui.py Terminal UI
Components 18
User interfaces
- CLI entry
jtop/__main__.py - Terminal UI
jtop/gui/jtopgui.py - Monitoring pages
jtop/gui/pall.py
Service and client
- Python client
jtop/jtop.py - Stats service
jtop/service.py
Monitoring
- Board identity
jtop/core/hardware.py - CPU metrics
jtop/core/cpu.py - GPU metrics
jtop/core/gpu.py - Memory metrics
jtop/core/memory.py - Engine metrics
jtop/core/engine.py - Thermal metrics
jtop/core/temperature.py - Power metrics
jtop/core/power.py
Board controls
- Fan control
jtop/core/fan.py - NVP model
jtop/core/nvpmodel.py - Jetson clocks
jtop/core/jetson_clocks.py
Hardware support
- Platform decode
jtop/core/jetson_variables.py - Command runner
jtop/core/command.py
Other components
- Jetson user
Connections 22
- Jetson user → CLI entry: launches
- CLI entry → Terminal UI: starts
jtop/__main__.py - Jetson user → Python client: imports
- Python client → Stats service: requests data
jtop/jtop.py - Stats service → Python client: publishes stats
jtop/service.py - Stats service → Board identity: loads identity
jtop/service.py - Stats service → CPU metrics: collects
jtop/service.py - Stats service → GPU metrics: collects
jtop/service.py - Stats service → Memory metrics: collects
jtop/service.py - Stats service → Engine metrics: collects
jtop/service.py - Stats service → Thermal metrics: collects
jtop/service.py - Stats service → Power metrics: collects
jtop/service.py - Stats service → Fan control: controls
jtop/service.py - Stats service → NVP model: controls
jtop/service.py - Stats service → Jetson clocks: controls
jtop/service.py - Board identity → Platform decode: decodes platform
jtop/core/hardware.py - Fan control → Command runner: runs commands
jtop/core/fan.py - GPU metrics → Command runner: runs commands
jtop/core/gpu.py - NVP model → Command runner: runs commands
jtop/core/nvpmodel.py - Jetson clocks → Command runner: runs commands
jtop/core/jetson_clocks.py - Terminal UI → Monitoring pages: displays pages
- Terminal UI → Python client: renders stats
jtop/gui/jtopgui.py