feat: async load data of top CPU and memory processes data #11081
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: