Closed erikhuck closed 3 months ago
Other things to add:
Tracker.__str__()
to_frame()
(returns pandas dataframe) and to_json()
(returns dictionary) methods to Tracker
.to_frame
can reuse to_json
and convert the dictionary to a dataframe.__str__
is included in the documentation.
Right now, the
Tracker
can only be used within python scripts. There may be users who would like to get gpu (and other usage) information about their job without needing to write a python script (e.g. a python script that they don't want to edit or a job that doesn't run python at all). It may be helpful to introduce a commandline interface where the tracker can run in the background while some other terminal command runs. The challenge would be getting the process information of the command to profile. It could be the thesubprocess
library provides that information.