Terminal emulator and version: GNOME Terminal 3.36.2
Python version: 3.9.13
NVML version (driver version): 470.129.06
nvitop version or commit: v0.10.1
python-ml-py version: 11.515.75
Locale: en_US.UTF-8
Description
Add a function to create a background daemon for metrics collectors.
A minimal example:
from nvitop import collect_in_background
def on_collect(metrics):
print(metrics)
return True
collect_in_background(on_collect) # print metrics to stdout every 1 second
Issue Type
Runtime Environment
3.9.13
470.129.06
nvitop
version or commit:v0.10.1
python-ml-py
version:11.515.75
en_US.UTF-8
Description
Add a function to create a background daemon for metrics collectors.
A minimal example:
Motivation and Context
Resolves #47