Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit f582be2

Browse files
author
Kaushik Iska
committed
add notes on CpuUsageInfo
1 parent 3ae24eb commit f582be2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

shell/profiling/sampling_profiler.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@
1414
namespace flutter {
1515

1616
/**
17-
* @brief
18-
*
17+
* @brief CPU usage stats. `num_threads` is the number of threads owned by the
18+
* process. It is to be noted that this is not per shell, there can be multiple
19+
* shells within the process. `total_cpu_usage` is the percentage (between [0,
20+
* 100]) cpu usage of the application. This is across all the cores, for example
21+
* an application using 100% of all the core will report `total_cpu_usage` as
22+
* `100`, if it has 100% across 2 cores and 0% across the other cores, embedder
23+
* must report `total_cpu_usage` as `50`.
1924
*/
2025
struct CpuUsageInfo {
2126
uint32_t num_threads;

0 commit comments

Comments
 (0)