mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
[GH-ISSUE #119] [Question] How snapshot could be used #71
Labels
No labels
api
bug
bug
cli / tui
dependencies
documentation
documentation
documentation
duplicate
enhancement
exporter
invalid
pull-request
pynvml
question
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/nvitop#71
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Xiang-cd on GitHub (Jan 30, 2024).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/119
Originally assigned to: @XuehaiPan on GitHub.
Required prerequisites
Questions
thank you for your great work! I've seen the as_snapshot function, but I was wondering how the snapshot could be used?
is the snapshot resumable? because I didn't see the resume interface.
@XuehaiPan commented on GitHub (Jan 30, 2024):
@Xiang-cd Thanks for raising this.
The
Device/GpuProcessinstance is live object to get the latest metrics via method calls. E.g.:Once it is converted to snapshot, the metrics are forzen. The metrcis values are obtained at the time you call
as_snapshot().You can access the device object via:
@Xiang-cd commented on GitHub (Feb 11, 2024):
thank you, so the snapshot is not a context containing all memory content and register status that could move all context of one device to another device?