mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
[PR #39] [MERGED] feat(gui/metrics): add process metrics screen #132
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#132
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?
📋 Pull Request Information
Original PR: https://github.com/XuehaiPan/nvitop/pull/39
Author: @XuehaiPan
Created: 9/24/2022
Status: ✅ Merged
Merged: 9/26/2022
Merged by: @XuehaiPan
Base:
main← Head:process-metrics📝 Commits (10+)
b7b2491feat(gui/metrics): add process metrics screenb77f85bfeat(gui/metrics): 256-color support1bb0002chore(core/process): handle gone processes inupdate_gpu_statuse2a0abachore(gui/metrics): update keybinding006743bchore(gui/metrics): use dynamic bound for all graphs68fc898chore(gui/metrics): add graph ticks75c2567chore(gui/metrics): support metric graphs for no-Unicode mode0a36e66chore(gui/metrics): update y ticks1a6ab2dchore(gui/metrics): update x ticks50cb90bchore(gui): update return value ofupdate_size📊 Changes
18 files changed (+723 additions, -55 deletions)
View changed files
📝
README.md(+13 -4)📝
docs/source/index.rst(+1 -1)📝
nvitop/core/process.py(+2 -0)📝
nvitop/gui/library/__init__.py(+1 -0)📝
nvitop/gui/library/history.py(+42 -5)📝
nvitop/gui/library/libcurses.py(+4 -2)📝
nvitop/gui/library/process.py(+21 -0)📝
nvitop/gui/library/selection.py(+2 -5)📝
nvitop/gui/library/utils.py(+3 -0)📝
nvitop/gui/screens/__init__.py(+1 -0)📝
nvitop/gui/screens/environ.py(+2 -0)📝
nvitop/gui/screens/help.py(+12 -10)📝
nvitop/gui/screens/main/__init__.py(+2 -0)📝
nvitop/gui/screens/main/host.py(+4 -4)📝
nvitop/gui/screens/main/process.py(+12 -11)➕
nvitop/gui/screens/metrics.py(+552 -0)📝
nvitop/gui/screens/treeview.py(+3 -1)📝
nvitop/gui/top.py(+46 -12)📄 Description
Issue Type
Runtime Environment
3.9.13470.129.06nvitopversion or commit:mainpython-ml-pyversion:11.450.51en_US.UTF-8Description
Add process metrics screen. Watch metrics for a specific process in the terminal.
In addition to metrics (
GPU-MEM,%SM,%CPU,%MEM,TIME) already on the main screen, it adds:%CPUand metric for max%CPUHOST-MEMand%MEM, and metric for maxHOST-MEMGPU-MEMand%GPU-MEM, and metric for maxGPU-MEM%SMand metric for max%SM%GMBW: GPU memory bandwidth utilization%ENC: encoder utilization%DEC: decoder utilizationMotivation and Context
Resolves #36
Testing
Images / Videos
Watch metrics for a specific process (shortcut: Enter / Return).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
ResourceMetricCollector.clear()function #170