1 Commits

Author SHA1 Message Date
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