Skip to content

Conversation

@HynoR
Copy link
Contributor

@HynoR HynoR commented Nov 26, 2025

What this PR does / why we need it?

image 官网这个地方新加的 top5 cpu/mem 使用的进程通常对用户来说,如果不主动查看则默认不可见 这两个新数据相当吃 cpu 和 io, 执行两个函数大概在我的机器上有 100ms 的时间开销

Summary of your change

拆分接口,/api/v2/dashboard/current/all/all 不再拉取 top5 cpu 和 top5 mem。
当用户鼠标移动到 cpu 内存,去查看这个弹窗的数据时,才会启动定时器定时拉取对应的数据。 无焦点停止定时拉取。
优化后剩余的性能数据获取逻辑,每次执行只有 1ms

Please indicate you've done the following:

  • Made sure tests are passing and test coverage is added if needed.
  • Made sure commit message follow the rule of Conventional Commits specification.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Nov 26, 2025

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Nov 26, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign wanghe-fit2cloud for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@wanghe-fit2cloud wanghe-fit2cloud merged commit 747a0c4 into 1Panel-dev:dev-v2 Nov 26, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants