Huawei Technologies Co., Ltd 6c00a8de63 proc: del loop sscanf for proc pid stat file
Loop sscanf and strtok will take a long cpu time, since
get_proc_stat is called per thread. So, replace these with a single sscanf,
which will save much cpu time.
Signed-off-by: nocjj <1250062498@qq.com>
2021-04-22 16:57:11 +08:00
2020-10-10 15:51:15 +08:00
2020-09-22 20:17:20 +08:00
Description
No description provided
120 KiB
Languages
Diff 100%