[GH-ISSUE #32] Feature request: --interval SEC support milli_second #20

Closed
opened 2026-05-05 03:22:13 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @yantaozhao on GitHub (Aug 4, 2022).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/32

Runtime Environment

  • Python version: 3.9

Current Behavior

cli options:
--interval SEC: seconds

Expected Behavior

--interval Milli_SEC: support milli second, i.e.: not int, but float type

Originally created by @yantaozhao on GitHub (Aug 4, 2022). Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/32 #### Runtime Environment - Python version: `3.9` #### Current Behavior cli options: `--interval SEC`: seconds #### Expected Behavior `--interval Milli_SEC`: support milli second, i.e.: not int, but float type
Author
Owner

@XuehaiPan commented on GitHub (Aug 4, 2022):

Hi @yantaozhao, thanks for raising this. Could you give a more detailed use case to have non-int intervals?

Too small snapshot interval can cause performance issue (lower than 1 sec). Besides, note that the --interval option of nvitop's CLI only affects the interval for process snapshot. The device metric snapshot interval remains 1 sec (not changed by --interval).

If you want to use nvitop to profile your process performance, maybe you can try nvitop.ResourceMetricCollector.

<!-- gh-comment-id:1204841153 --> @XuehaiPan commented on GitHub (Aug 4, 2022): Hi @yantaozhao, thanks for raising this. Could you give a more detailed use case to have non-int intervals? Too small snapshot interval can cause performance issue (lower than 1 sec). Besides, note that the `--interval` option of `nvitop`'s CLI only affects the interval for process snapshot. The device metric snapshot interval remains 1 sec (not changed by `--interval`). If you want to use `nvitop` to profile your process performance, maybe you can try [`nvitop.ResourceMetricCollector`](https://github.com/XuehaiPan/nvitop#resource-metric-collector).
Author
Owner

@XuehaiPan commented on GitHub (Aug 11, 2022):

Closing due to lack of motivation and use cases. Feel free to ask to reopen this with additional contexts.

<!-- gh-comment-id:1211556504 --> @XuehaiPan commented on GitHub (Aug 11, 2022): Closing due to lack of motivation and use cases. Feel free to ask to reopen this with additional contexts.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/nvitop#20
No description provided.