MoseleyBioinformaticsLab / gpu_tracker

Context manager and CLI that tracks the computational-resource-usage of a code block or shell command, particularly the GPU usage.
Other
4 stars 1 forks source link

Handle attempts to start/stop tracking after tracking has completed #29

Closed erikhuck closed 3 months ago

erikhuck commented 3 months ago

If tracking has already started, calls to start or stop should raise exceptions informing the user that the tracking for this tracker object has already completed i.e. 'Cannot start tracking since tracking has stopped' and 'Cannot stop tracking since tracking has already stopped'.