feat: async load data of top CPU and memory processes data#11081
feat: async load data of top CPU and memory processes data#11081wanghe-fit2cloud merged 3 commits into1Panel-dev:dev-v2from
Conversation
|
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. DetailsInstructions 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
What this PR does / why we need it?
Summary of your change
拆分接口,/api/v2/dashboard/current/all/all 不再拉取 top5 cpu 和 top5 mem。
当用户鼠标移动到 cpu 内存,去查看这个弹窗的数据时,才会启动定时器定时拉取对应的数据。 无焦点停止定时拉取。
优化后剩余的性能数据获取逻辑,每次执行只有 1ms
Please indicate you've done the following: