{"id":76370,"date":"2026-02-22T10:41:33","date_gmt":"2026-02-22T02:41:33","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/76370.html"},"modified":"2026-02-22T10:41:33","modified_gmt":"2026-02-22T02:41:33","slug":"android-cpu-%e4%bd%bf%e7%94%a8%e7%8e%87%e9%87%87%e9%9b%86%ef%bc%9a-proc-stat-%e8%ae%a1%e7%ae%97%e5%85%ac%e5%bc%8f%e4%b8%8e%e5%ae%8c%e6%95%b4%e6%96%b9%e6%a1%88%ef%bc%88%e9%99%84%e5%ae%9e%e4%be%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/76370.html","title":{"rendered":"Android CPU \u4f7f\u7528\u7387\u91c7\u96c6\uff1a\/proc\/stat \u8ba1\u7b97\u516c\u5f0f\u4e0e\u5b8c\u6574\u65b9\u6848\uff08\u9644\u5b9e\u4f8b\uff09"},"content":{"rendered":"<p>\u505a Android \u6027\u80fd\u6d4b\u8bd5&#xff0c;CPU \u4f7f\u7528\u7387\u662f\u6700\u57fa\u7840\u7684\u6307\u6807\u3002\u4f46\u5f88\u591a\u4eba\u53ea\u4f1a\u7528 top \u770b\u4e00\u773c&#xff0c;\u5bf9\u80cc\u540e\u7684\u6570\u636e\u6e90\u548c\u8ba1\u7b97\u903b\u8f91\u5e76\u4e0d\u6e05\u695a\u3002 \u672c\u7bc7\u4ece\u6982\u5ff5\u8bb2\u8d77&#xff0c;\u5148\u7ed9\u516c\u5f0f\u3001\u518d\u770b\u6570\u636e\u6e90\u3001\u6700\u540e\u7528\u771f\u5b9e\u6570\u636e\u8d70\u4e00\u904d\u5b8c\u6574\u8ba1\u7b97\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001CPU \u4f7f\u7528\u7387\u5230\u5e95\u5728\u5ea6\u91cf\u4ec0\u4e48<\/h3>\n<p>\u5148\u660e\u786e\u4e00\u4e2a\u6982\u5ff5&#xff1a;CPU \u4f7f\u7528\u7387\u8861\u91cf\u7684\u662f&#034;\u65f6\u95f4\u7247\u7684\u5206\u914d\u6bd4\u4f8b&#034;&#xff0c;\u4e0d\u662f&#034;\u7b97\u529b\u7684\u6d88\u8017\u6bd4\u4f8b&#034;\u3002<\/p>\n<p>Linux \u5185\u6838\u7528\u4e00\u4e2a\u53eb tick \u7684\u65f6\u95f4\u7247\u6765\u8c03\u5ea6\u4efb\u52a1\u3002\u6bcf\u4e2a tick \u5927\u7ea6 4~10 \u6beb\u79d2&#xff08;\u53d6\u51b3\u4e8e\u5185\u6838\u914d\u7f6e CONFIG_HZ&#xff09;\u3002\u6bcf\u4e2a tick \u7ed3\u675f\u65f6&#xff0c;\u5185\u6838\u8bb0\u5f55\u8fd9\u4e2a tick \u88ab\u5206\u914d\u5230\u4e86\u54ea\u4e2a\u72b6\u6001&#xff1a;\u7528\u6237\u6001\u3001\u5185\u6838\u6001\u3001\u7a7a\u95f2\u3001\u7b49\u5f85 IO\u2026\u2026<\/p>\n<p>\u4e00\u53e5\u8bdd\u5b9a\u4e49&#xff1a;<\/p>\n<p>CPU \u4f7f\u7528\u7387 &#061; \u4e00\u6bb5\u65f6\u95f4\u5185&#xff0c;\u975e\u7a7a\u95f2 tick \u5360\u603b tick \u7684\u6bd4\u4f8b<\/p>\n<hr \/>\n<h3>\u4e8c\u3001\u6838\u5fc3\u516c\u5f0f&#xff08;\u5148\u770b\u7ed3\u8bba&#xff09;<\/h3>\n<p>CPU \u7edf\u8ba1\u6570\u636e\u90fd\u662f\u4ece\u5f00\u673a\u5f00\u59cb\u7684\u7d2f\u79ef\u503c&#xff0c;\u6240\u4ee5\u5fc5\u987b\u91c7\u4e24\u6b21\u3001\u53d6\u5dee\u503c\u624d\u80fd\u7b97\u51fa\u4e00\u6bb5\u65f6\u95f4\u5185\u7684\u4f7f\u7528\u7387\u3002<\/p>\n<h4>2.1 \u6574\u673a CPU \u4f7f\u7528\u7387<\/h4>\n<p>\u7b2c 1 \u6b21\u91c7\u6837 \u2192 total\u2081, idle\u2081<br \/>\n     \u7b49\u5f85 N \u79d2<br \/>\n\u7b2c 2 \u6b21\u91c7\u6837 \u2192 total\u2082, idle\u2082<\/p>\n<p>\u0394total &#061; total\u2082 \u2212 total\u2081        \u2190 \u8fd9\u6bb5\u65f6\u95f4\u6240\u6709\u6838\u5fc3\u603b\u5171\u4ea7\u751f\u4e86\u591a\u5c11 tick<br \/>\n\u0394idle  &#061; idle\u2082 \u2212 idle\u2081          \u2190 \u5176\u4e2d\u6709\u591a\u5c11 tick \u662f\u7a7a\u95f2\u7684<\/p>\n<p>\u6574\u673a CPU% &#061; (\u0394total \u2212 \u0394idle) \/ \u0394total \u00d7 100<\/p>\n<p>\u5176\u4e2d&#xff1a;<\/p>\n<table>\n<tr>\u53d8\u91cf\u542b\u4e49\u600e\u4e48\u5f97\u5230<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">total<\/td>\n<td align=\"left\">\u6240\u6709\u72b6\u6001 tick \u4e4b\u548c<\/td>\n<td align=\"left\">user &#043; nice &#043; system &#043; idle &#043; iowait &#043; irq &#043; softirq &#043; steal<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">idle<\/td>\n<td align=\"left\">\u7a7a\u95f2 tick<\/td>\n<td align=\"left\">\/proc\/stat \u7b2c\u4e00\u884c\u7684\u7b2c 4 \u4e2a\u6570\u503c\u5b57\u6bb5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>2.2 \u8fdb\u7a0b CPU \u4f7f\u7528\u7387<\/h4>\n<p>\u7b2c 1 \u6b21\u91c7\u6837 \u2192 process_time\u2081&#xff08;\u540c\u65f6\u91c7\u6574\u673a total\u2081&#xff09;<br \/>\n     \u7b49\u5f85 N \u79d2<br \/>\n\u7b2c 2 \u6b21\u91c7\u6837 \u2192 process_time\u2082&#xff08;\u540c\u65f6\u91c7\u6574\u673a total\u2082&#xff09;<\/p>\n<p>\u0394process &#061; process_time\u2082 \u2212 process_time\u2081   \u2190 \u8fdb\u7a0b\u81ea\u5df1\u6d88\u8017\u7684 tick \u589e\u91cf<br \/>\n\u0394total   &#061; total\u2082 \u2212 total\u2081                 \u2190 \u6574\u673a\u603b tick \u589e\u91cf&#xff08;\u540c\u4e0a&#xff09;<\/p>\n<p>\u8fdb\u7a0b CPU% &#061; \u0394process \/ \u0394total \u00d7 100<\/p>\n<p>\u5176\u4e2d&#xff1a;<\/p>\n<table>\n<tr>\u53d8\u91cf\u542b\u4e49\u600e\u4e48\u5f97\u5230<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">process_time<\/td>\n<td align=\"left\">\u8fdb\u7a0b\u7d2f\u79ef\u7684 CPU tick<\/td>\n<td align=\"left\">utime &#043; stime &#043; cutime &#043; cstime<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u0394total<\/td>\n<td align=\"left\">\u6574\u673a\u603b tick \u589e\u91cf<\/td>\n<td align=\"left\">\u548c\u6574\u673a\u516c\u5f0f\u7528\u540c\u4e00\u4e2a\u5206\u6bcd<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5173\u952e\u70b9&#xff1a;\u8fdb\u7a0b CPU% \u7684\u5206\u6bcd\u662f\u6574\u673a\u7684 \u0394total&#xff0c;\u4e0d\u662f\u8fdb\u7a0b\u81ea\u5df1\u7684\u6570\u636e\u3002<\/p>\n<p>\u542b\u4e49\u662f&#034;\u8fd9\u4e2a\u8fdb\u7a0b\u5728\u6240\u6709 CPU \u8d44\u6e90\u4e2d\u5360\u4e86\u591a\u5c11\u6bd4\u4f8b&#034;\u30024 \u6838\u8bbe\u5907\u4e0a&#xff0c;\u5355\u7ebf\u7a0b\u8fdb\u7a0b\u6700\u9ad8\u7ea6 25%&#xff0c;4 \u7ebf\u7a0b\u8dd1\u6ee1\u63a5\u8fd1 100%\u3002<\/p>\n<h4>2.3 \u516c\u5f0f\u5c0f\u7ed3<\/h4>\n<p>\u6574\u673a CPU% &#061; (\u0394total \u2212 \u0394idle) \/ \u0394total \u00d7 100<\/p>\n<p>\u8fdb\u7a0b CPU% &#061; \u0394process \/ \u0394total \u00d7 100<\/p>\n<p>\u5c31\u8fd9\u4e24\u4e2a\u516c\u5f0f&#xff0c;\u6240\u6709 CPU \u91c7\u96c6\u5de5\u5177&#xff08;top\u3001dumpsys cpuinfo\u3001\u5404\u79cd APM SDK&#xff09;\u5e95\u5c42\u90fd\u662f\u8fd9\u4e2a\u903b\u8f91\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u3001\u6570\u636e\u6e90&#xff1a;\u6570\u636e\u4ece\u54ea\u6765<\/h3>\n<h4>3.1 \u6574\u673a\u6570\u636e&#xff1a;\/proc\/stat \u7b2c\u4e00\u884c<\/h4>\n<p>Linux \u5185\u6838\u63d0\u4f9b\u7684 CPU \u7edf\u8ba1\u63a5\u53e3&#xff0c;\u6240\u6709 Android \u8bbe\u5907\u90fd\u6709\u3002\u8bfb\u53d6\u540e\u7b2c\u4e00\u884c\u683c\u5f0f\u5982\u4e0b&#xff1a;<\/p>\n<p>cpu  10132153 290696 3084719 46828483 16683 0 25195 0 0 0<\/p>\n<p>\u8df3\u8fc7\u5f00\u5934\u7684 cpu&#xff0c;\u540e\u9762 8 \u4e2a\u6570\u503c\u4f9d\u6b21\u662f&#xff1a;<\/p>\n<table>\n<tr>\u4f4d\u7f6e\u540d\u79f0\u542b\u4e49<\/tr>\n<tbody>\n<tr>\n<td align=\"center\">1<\/td>\n<td align=\"center\">user<\/td>\n<td align=\"left\">\u7528\u6237\u6001\u65f6\u95f4&#xff08;App \u4ee3\u7801\u6267\u884c&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">2<\/td>\n<td align=\"center\">nice<\/td>\n<td align=\"left\">\u4f4e\u4f18\u5148\u7ea7\u7528\u6237\u6001\u65f6\u95f4<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">3<\/td>\n<td align=\"center\">system<\/td>\n<td align=\"left\">\u5185\u6838\u6001\u65f6\u95f4&#xff08;\u7cfb\u7edf\u8c03\u7528\u3001\u9a71\u52a8&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4<\/td>\n<td align=\"center\">idle<\/td>\n<td align=\"left\">\u7a7a\u95f2\u65f6\u95f4&#xff08;CPU \u5728\u53d1\u5446&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5<\/td>\n<td align=\"center\">iowait<\/td>\n<td align=\"left\">\u7b49\u5f85 IO \u7684\u7a7a\u95f2\u65f6\u95f4&#xff08;\u7b49\u78c1\u76d8\/\u7f51\u7edc&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">6<\/td>\n<td align=\"center\">irq<\/td>\n<td align=\"left\">\u786c\u4e2d\u65ad\u5904\u7406\u65f6\u95f4<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">7<\/td>\n<td align=\"center\">softirq<\/td>\n<td align=\"left\">\u8f6f\u4e2d\u65ad\u5904\u7406\u65f6\u95f4<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">8<\/td>\n<td align=\"center\">steal<\/td>\n<td align=\"left\">\u865a\u62df\u5316\u88ab\u5077\u8d70\u7684\u65f6\u95f4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>total &#061; \u4e0a\u9762 8 \u4e2a\u5b57\u6bb5\u5168\u90e8\u76f8\u52a0\u3002<\/p>\n<h4>3.2 \u6c47\u603b\u884c vs \u5404\u6838&#xff1a;\u7528\u54ea\u4e00\u884c<\/h4>\n<p>\/proc\/stat \u7684\u5b8c\u6574\u8f93\u51fa\u4e2d&#xff0c;\u7b2c\u4e00\u884c\u4e0b\u9762\u8fd8\u6709\u6bcf\u4e2a\u6838\u5fc3\u7684\u5355\u72ec\u6570\u636e&#xff1a;<\/p>\n<p>cpu  10132153 290696 3084719 46828483 16683 0 25195 0 0 0   \u2190 \u6c47\u603b\u884c&#xff08;\u6211\u4eec\u7528\u8fd9\u884c&#xff09;<br \/>\ncpu0 2503274  72633  771347  11709498 4180  0 6313  0 0 0   \u2190 \u6838\u5fc3 0<br \/>\ncpu1 2522508  73222  770877  11707883 4115  0 6239  0 0 0   \u2190 \u6838\u5fc3 1<br \/>\ncpu2 2505698  72460  771276  11706498 4198  0 6312  0 0 0   \u2190 \u6838\u5fc3 2<br \/>\ncpu3 2514673  72381  771219  11704604 4190  0 6331  0 0 0   \u2190 \u6838\u5fc3 3<\/p>\n<p>\u6c47\u603b\u884c &#061; \u6240\u6709\u5728\u7ebf\u6838\u5fc3\u7684\u7d2f\u52a0\u3002\u4ee5 idle \u5b57\u6bb5\u9a8c\u8bc1&#xff1a;<\/p>\n<p>cpu0.idle &#043; cpu1.idle &#043; cpu2.idle &#043; cpu3.idle<br \/>\n&#061; 11709498 &#043; 11707883 &#043; 11706498 &#043; 11704604<br \/>\n&#061; 46828483<br \/>\n&#061; \u6c47\u603b\u884c\u7684 idle \u2713<\/p>\n<p>\u6240\u4ee5&#xff1a;<\/p>\n<table>\n<tr>\u95ee\u9898\u7b54\u6848<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">\u9700\u8981\u81ea\u5df1\u52a0\u5404\u6838\u6570\u636e\u5417&#xff1f;<\/td>\n<td align=\"left\">\u4e0d\u9700\u8981&#xff0c;\u5185\u6838\u5df2\u7ecf\u5e2e\u6211\u4eec\u52a0\u597d\u4e86<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u76f4\u63a5\u7528\u6c47\u603b\u884c\u5c31\u884c&#xff1f;<\/td>\n<td align=\"left\">\u662f\u7684&#xff0c;\u53ea\u53d6\u7b2c\u4e00\u884c cpu<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u5173\u6838\u4e86\u600e\u4e48\u529e&#xff1f;<\/td>\n<td align=\"left\">\u5173\u6389\u7684\u6838\u4e0d\u51fa\u73b0\u5728\u8f93\u51fa\u4e2d&#xff0c;\u6c47\u603b\u884c\u53ea\u542b\u5728\u7ebf\u6838<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">4 \u6838 total \u6bcf\u79d2\u589e\u52a0\u591a\u5c11&#xff1f;<\/td>\n<td align=\"left\">\u7ea6 4 \u00d7 HZ&#xff08;HZ&#061;100 \u65f6\u7ea6 400 tick\/\u79d2&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3.3 \u8fdb\u7a0b\u6570\u636e&#xff1a;\/proc\/{pid}\/stat<\/h4>\n<p>\u8bfb\u53d6\u76ee\u6807\u8fdb\u7a0b\u7684 stat \u6587\u4ef6&#xff0c;\u8f93\u51fa\u662f\u4e00\u884c\u5f88\u957f\u7684\u6570\u636e&#xff1a;<\/p>\n<p>12345 (com.example.app) S 1 12345 12345 0 -1 &#8230; 5000 1200 0 0 &#8230;<\/p>\n<p>\u6211\u4eec\u5173\u5fc3\u7684\u662f\u7b2c 14~17 \u4e2a\u5b57\u6bb5&#xff08;\u4ece 1 \u5f00\u59cb\u8ba1\u6570&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u5b57\u6bb5\u53f7\u540d\u79f0\u542b\u4e49<\/tr>\n<tbody>\n<tr>\n<td align=\"center\">14<\/td>\n<td align=\"center\">utime<\/td>\n<td align=\"left\">\u8fdb\u7a0b\u5728\u7528\u6237\u6001\u6d88\u8017\u7684 tick<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">15<\/td>\n<td align=\"center\">stime<\/td>\n<td align=\"left\">\u8fdb\u7a0b\u5728\u5185\u6838\u6001\u6d88\u8017\u7684 tick<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">16<\/td>\n<td align=\"center\">cutime<\/td>\n<td align=\"left\">\u5df2\u9000\u51fa\u5b50\u8fdb\u7a0b\u7684\u7528\u6237\u6001 tick&#xff08;\u7d2f\u79ef&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">17<\/td>\n<td align=\"center\">cstime<\/td>\n<td align=\"left\">\u5df2\u9000\u51fa\u5b50\u8fdb\u7a0b\u7684\u5185\u6838\u6001 tick&#xff08;\u7d2f\u79ef&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>process_time &#061; utime &#043; stime &#043; cutime &#043; cstime<\/p>\n<hr \/>\n<h3>\u56db\u3001\u5b8c\u6574\u8ba1\u7b97\u5b9e\u4f8b<\/h3>\n<p>\u7528\u4e00\u7ec4\u771f\u5b9e\u683c\u5f0f\u7684\u6570\u636e&#xff0c;\u4ece\u5934\u5230\u5c3e\u8d70\u4e00\u904d\u3002<\/p>\n<h4>4.1 \u7b2c 1 \u6b21\u91c7\u6837<\/h4>\n<p>\u8bfb \/proc\/stat \u7b2c\u4e00\u884c&#xff1a;<\/p>\n<p>cpu  10132153 290696 3084719 46828483 16683 0 25195 0 0 0<\/p>\n<p>\u89e3\u6790&#xff1a;<\/p>\n<p>user&#061;10132153  nice&#061;290696  system&#061;3084719  idle&#061;46828483<br \/>\niowait&#061;16683   irq&#061;0        softirq&#061;25195   steal&#061;0<\/p>\n<p>total\u2081 &#061; 10132153 &#043; 290696 &#043; 3084719 &#043; 46828483 &#043; 16683 &#043; 0 &#043; 25195 &#043; 0<br \/>\n       &#061; 60,377,929<\/p>\n<p>idle\u2081  &#061; 46,828,483<\/p>\n<p>\u540c\u65f6\u8bfb\u8fdb\u7a0b \/proc\/{pid}\/stat&#xff1a;<\/p>\n<p>utime&#061;5000  stime&#061;1200  cutime&#061;0  cstime&#061;0<\/p>\n<p>process_time\u2081 &#061; 5000 &#043; 1200 &#043; 0 &#043; 0 &#061; 6,200<\/p>\n<h4>4.2 \u7b49\u5f85 10 \u79d2&#xff0c;\u7b2c 2 \u6b21\u91c7\u6837<\/h4>\n<p>\u8bfb \/proc\/stat \u7b2c\u4e00\u884c&#xff1a;<\/p>\n<p>cpu  10132953 290720 3085019 46832083 16690 0 25210 0 0 0<\/p>\n<p>\u89e3\u6790&#xff1a;<\/p>\n<p>total\u2082 &#061; 10132953 &#043; 290720 &#043; 3085019 &#043; 46832083 &#043; 16690 &#043; 0 &#043; 25210 &#043; 0<br \/>\n       &#061; 60,382,675<\/p>\n<p>idle\u2082  &#061; 46,832,083<\/p>\n<p>\u540c\u65f6\u8bfb\u8fdb\u7a0b \/proc\/{pid}\/stat&#xff1a;<\/p>\n<p>utime&#061;5350  stime&#061;1280  cutime&#061;0  cstime&#061;0<\/p>\n<p>process_time\u2082 &#061; 5350 &#043; 1280 &#043; 0 &#043; 0 &#061; 6,630<\/p>\n<h4>4.3 \u7b97\u5dee\u503c<\/h4>\n<table>\n<tr>\u5b57\u6bb5\u7b2c 1 \u6b21\u7b2c 2 \u6b21\u5dee\u503c&#xff08;\u0394&#xff09;<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">user<\/td>\n<td align=\"right\">10,132,153<\/td>\n<td align=\"right\">10,132,953<\/td>\n<td align=\"right\">800<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">nice<\/td>\n<td align=\"right\">290,696<\/td>\n<td align=\"right\">290,720<\/td>\n<td align=\"right\">24<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">system<\/td>\n<td align=\"right\">3,084,719<\/td>\n<td align=\"right\">3,085,019<\/td>\n<td align=\"right\">300<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">idle<\/td>\n<td align=\"right\">46,828,483<\/td>\n<td align=\"right\">46,832,083<\/td>\n<td align=\"right\">3,600<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">iowait<\/td>\n<td align=\"right\">16,683<\/td>\n<td align=\"right\">16,690<\/td>\n<td align=\"right\">7<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">irq<\/td>\n<td align=\"right\">0<\/td>\n<td align=\"right\">0<\/td>\n<td align=\"right\">0<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">softirq<\/td>\n<td align=\"right\">25,195<\/td>\n<td align=\"right\">25,210<\/td>\n<td align=\"right\">15<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">steal<\/td>\n<td align=\"right\">0<\/td>\n<td align=\"right\">0<\/td>\n<td align=\"right\">0<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">total<\/td>\n<td align=\"right\">60,377,929<\/td>\n<td align=\"right\">60,382,675<\/td>\n<td align=\"right\">4,746<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e3a\u4ec0\u4e48 10 \u79d2\u4ea7\u751f\u4e86 4746 \u4e2a tick&#xff1f;\u56e0\u4e3a 4 \u6838\u8bbe\u5907&#xff0c;\u6bcf\u4e2a\u6838\u6bcf\u79d2\u7ea6\u4ea7\u751f HZ \u4e2a tick&#xff08;HZ\u2248100~120&#xff09;&#xff0c;4 \u00d7 ~119 \u00d7 10 \u2248 4746\u3002<\/p>\n<h4>4.4 \u4ee3\u5165\u516c\u5f0f<\/h4>\n<p>\u6574\u673a CPU%&#xff1a;<\/p>\n<p>\u0394total &#061; 4,746<br \/>\n\u0394idle  &#061; 3,600<\/p>\n<p>\u6574\u673a CPU% &#061; (\u0394total \u2212 \u0394idle) \/ \u0394total \u00d7 100<br \/>\n          &#061; (4746 \u2212 3600) \/ 4746 \u00d7 100<br \/>\n          &#061; 1146 \/ 4746 \u00d7 100<br \/>\n          \u2248 24.1%<\/p>\n<p>\u2192 \u8fc7\u53bb 10 \u79d2&#xff0c;4 \u4e2a\u6838\u5fc3\u603b\u5171\u6709 24.1% \u5728\u5e72\u6d3b&#xff0c;75.9% \u5728\u7a7a\u95f2\u3002<\/p>\n<p>\u7ec6\u5206\u4e00\u4e0b\u5404\u72b6\u6001\u5360\u6bd4&#xff1a;<\/p>\n<p>user   \u5360\u6bd4 &#061; 800  \/ 4746 \u00d7 100 &#061; 16.9%   \u2190 \u7528\u6237\u6001&#xff08;App \u4ee3\u7801&#xff09;<br \/>\nsystem \u5360\u6bd4 &#061; 300  \/ 4746 \u00d7 100 &#061; 6.3%    \u2190 \u5185\u6838\u6001&#xff08;\u7cfb\u7edf\u8c03\u7528&#xff09;<br \/>\niowait \u5360\u6bd4 &#061; 7    \/ 4746 \u00d7 100 &#061; 0.1%    \u2190 \u7b49 IO&#xff08;\u51e0\u4e4e\u6ca1\u6709&#xff09;<br \/>\nnice   \u5360\u6bd4 &#061; 24   \/ 4746 \u00d7 100 &#061; 0.5%<br \/>\nsoftirq\u5360\u6bd4 &#061; 15   \/ 4746 \u00d7 100 &#061; 0.3%<\/p>\n<p>\u8fdb\u7a0b CPU%&#xff1a;<\/p>\n<p>\u0394process &#061; 6630 \u2212 6200 &#061; 430<\/p>\n<p>\u8fdb\u7a0b CPU% &#061; \u0394process \/ \u0394total \u00d7 100<br \/>\n          &#061; 430 \/ 4746 \u00d7 100<br \/>\n          \u2248 9.1%<\/p>\n<p>\u2192 \u8fd9\u4e2a\u8fdb\u7a0b\u5728\u8fc7\u53bb 10 \u79d2&#xff0c;\u6d88\u8017\u4e86\u6574\u673a CPU \u8d44\u6e90\u7684 9.1%\u3002<\/p>\n<h4>4.5 \u4e00\u5f20\u56fe\u770b\u5168\u8c8c<\/h4>\n<p>\u0394total &#061; 4,746 tick&#xff08;10 \u79d2 \u00d7 4 \u6838&#xff09;<br \/>\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502                                                 \u2502<br \/>\n\u2502  \u250c\u2500\u2500 user    &#061; 800  \u2500\u2510                          \u2502<br \/>\n\u2502  \u251c\u2500\u2500 nice    &#061; 24    \u2502                          \u2502<br \/>\n\u2502  \u251c\u2500\u2500 system  &#061; 300   \u251c\u2500 \u5fd9\u788c &#061; 1,146 (24.1%)   \u2502<br \/>\n\u2502  \u251c\u2500\u2500 iowait  &#061; 7     \u2502                          \u2502<br \/>\n\u2502  \u251c\u2500\u2500 softirq &#061; 15    \u2502                          \u2502<br \/>\n\u2502  \u251c\u2500\u2500 irq     &#061; 0     \u2518                          \u2502<br \/>\n\u2502  \u2502                                              \u2502<br \/>\n\u2502  \u2514\u2500\u2500 idle    &#061; 3,600 \u2500\u2500 \u7a7a\u95f2 (75.9%)            \u2502<br \/>\n\u2502                                                 \u2502<br \/>\n\u2502  \u5176\u4e2d\u8fdb\u7a0b com.example.app \u6d88\u8017 430 tick &#061; 9.1%  \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<hr \/>\n<h3>\u4e94\u3001\u5e38\u89c1\u91c7\u96c6\u65b9\u5f0f\u5bf9\u6bd4<\/h3>\n<p>\u9664\u4e86\u76f4\u63a5\u8bfb \/proc\/stat&#xff0c;\u8fd8\u6709\u51e0\u79cd\u5e38\u89c1\u65b9\u5f0f&#xff0c;\u5b83\u4eec\u5e95\u5c42\u90fd\u5728\u7528\u540c\u6837\u7684\u516c\u5f0f&#xff1a;<\/p>\n<table>\n<tr>\u7ef4\u5ea6\u76f4\u63a5\u8bfb \/proc\/stattop -n 1dumpsys cpuinfo<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">\u5e95\u5c42\u539f\u7406<\/td>\n<td align=\"left\">\u5c31\u662f\u539f\u59cb\u6570\u636e\u6e90<\/td>\n<td align=\"left\">\u5185\u90e8\u8bfb \/proc\/stat \u5e2e\u4f60\u7b97<\/td>\n<td align=\"left\">\u901a\u8fc7 Binder \u5411 system_server \u53d6<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u6570\u636e\u7cbe\u5ea6<\/td>\n<td align=\"left\">\u6700\u9ad8&#xff08;\u539f\u59cb tick&#xff09;<\/td>\n<td align=\"left\">\u4e2d&#xff08;top \u81ea\u5df1\u7b97\u7684&#xff09;<\/td>\n<td align=\"left\">\u4f4e&#xff08;\u7cfb\u7edf\u7edf\u8ba1\u7a97\u53e3\u4e0d\u7cbe\u786e&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u91c7\u96c6\u5f00\u9500<\/td>\n<td align=\"left\">\u6700\u4f4e&#xff08;2~3ms&#xff09;<\/td>\n<td align=\"left\">\u4e2d&#xff08;50~200ms&#xff09;<\/td>\n<td align=\"left\">\u6700\u9ad8&#xff08;100~500ms&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u9700\u8981\u81ea\u5df1\u7b97<\/td>\n<td align=\"left\">\u662f<\/td>\n<td align=\"left\">\u5426<\/td>\n<td align=\"left\">\u5426<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u8f93\u51fa\u683c\u5f0f\u7a33\u5b9a<\/td>\n<td align=\"left\">\u662f&#xff08;\u5185\u6838\u6807\u51c6\u683c\u5f0f&#xff09;<\/td>\n<td align=\"left\">\u5dee&#xff08;\u5404\u7248\u672c\u4e0d\u540c&#xff09;<\/td>\n<td align=\"left\">\u4e2d<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u9002\u5408\u9ad8\u9891\u91c7\u96c6<\/td>\n<td align=\"left\">\u662f<\/td>\n<td align=\"left\">\u4e0d\u63a8\u8350<\/td>\n<td align=\"left\">\u5426<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u9002\u5408\u624b\u52a8\u770b\u4e00\u773c<\/td>\n<td align=\"left\">\u5426&#xff08;\u539f\u59cb\u6570\u5b57&#xff09;<\/td>\n<td align=\"left\">\u662f<\/td>\n<td align=\"left\">\u662f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5efa\u8bae&#xff1a;\u5199\u91c7\u96c6\u5de5\u5177 \u2192 \u76f4\u63a5\u8bfb \/proc\/stat&#xff1b;\u624b\u52a8\u5feb\u901f\u770b \u2192 \u7528 top \u6216 dumpsys cpuinfo\u3002<\/p>\n<hr \/>\n<h3>\u516d\u3001\u91c7\u96c6\u95f4\u9694\u4e0e\u7cbe\u5ea6<\/h3>\n<h4>6.1 \u95f4\u9694\u9009\u62e9<\/h4>\n<table>\n<tr>\u95f4\u9694\u9002\u7528\u573a\u666f\u6ce8\u610f\u4e8b\u9879<\/tr>\n<tbody>\n<tr>\n<td align=\"center\">1~2 \u79d2<\/td>\n<td align=\"left\">\u77ed\u65f6\u95f4\u7cbe\u7ec6\u5206\u6790&#xff08;\u542f\u52a8\u3001\u9875\u9762\u5207\u6362&#xff09;<\/td>\n<td align=\"left\">ADB \u91c7\u96c6\u5f00\u9500\u5360\u6bd4\u9ad8&#xff0c;\u5efa\u8bae\u8bbe\u5907\u7aef\u811a\u672c<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5~10 \u79d2<\/td>\n<td align=\"left\">\u957f\u65f6\u95f4\u538b\u6d4b&#xff08;\u63a8\u8350&#xff09;<\/td>\n<td align=\"left\">\u5e73\u8861\u7cbe\u5ea6\u548c\u5f00\u9500<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">30~60 \u79d2<\/td>\n<td align=\"left\">\u7c97\u7c92\u5ea6\u76d1\u63a7<\/td>\n<td align=\"left\">\u53ef\u80fd\u6f0f\u6389\u77ed\u6682\u7684 CPU \u98d9\u5347<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5e38\u7528\u9009\u62e9\u662f 10 \u79d2\u2014\u201424 \u5c0f\u65f6\u538b\u6d4b\u4ea7\u751f 8640 \u4e2a\u6570\u636e\u70b9&#xff0c;\u591f\u505a\u8d8b\u52bf\u5206\u6790&#xff0c;\u53c8\u4e0d\u4f1a\u5e72\u6270\u8bbe\u5907\u3002<\/p>\n<h4>6.2 tick \u7cbe\u5ea6&#xff1a;CONFIG_HZ<\/h4>\n<p>\/proc\/stat \u91cc\u7684\u6570\u503c\u5355\u4f4d\u662f tick\u3002\u6bcf\u4e2a tick \u7684\u65f6\u957f\u53d6\u51b3\u4e8e\u5185\u6838\u7f16\u8bd1\u65f6\u7684 CONFIG_HZ&#xff1a;<\/p>\n<table>\n<tr>CONFIG_HZ\u6bcf tick \u65f6\u957f\u5e38\u89c1\u5e73\u53f0<\/tr>\n<tbody>\n<tr>\n<td align=\"center\">100<\/td>\n<td align=\"center\">10ms<\/td>\n<td align=\"left\">\u90e8\u5206\u65e7\u5185\u6838<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">250<\/td>\n<td align=\"center\">4ms<\/td>\n<td align=\"left\">MTK \u5e73\u53f0\u5e38\u89c1<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">300<\/td>\n<td align=\"center\">3.3ms<\/td>\n<td align=\"left\">\u90e8\u5206\u9ad8\u901a\u5e73\u53f0<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">1000<\/td>\n<td align=\"center\">1ms<\/td>\n<td align=\"left\">\u670d\u52a1\u5668\/\u684c\u9762 Linux<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u53ef\u901a\u8fc7 adb shell getconf CLK_TCK \u67e5\u770b\u8bbe\u5907\u7684 HZ \u503c\u3002<\/p>\n<p>HZ&#061;100 \u65f6&#xff0c;\u4e00\u4e2a\u8fd0\u884c\u4e86 5ms \u7684\u77ed\u4efb\u52a1\u53ef\u80fd\u4e0d\u4f1a\u88ab\u8bb0\u5f55&#xff08;\u4e0d\u5230 1 tick&#xff09;\u3002\u5bf9\u5927\u90e8\u5206\u6027\u80fd\u6d4b\u8bd5\u573a\u666f&#xff08;\u95f4\u9694 \u2265 5 \u79d2&#xff09;&#xff0c;\u8fd9\u4e2a\u7cbe\u5ea6\u9650\u5236\u53ef\u4ee5\u5ffd\u7565\u3002<\/p>\n<hr \/>\n<h3>\u4e03\u3001\u5b8c\u6574\u91c7\u96c6\u6d41\u7a0b<\/h3>\n<p>\u628a\u524d\u9762\u7684\u5185\u5bb9\u4e32\u8d77\u6765&#xff0c;\u4e00\u6b21\u5b8c\u6574\u7684 CPU \u91c7\u96c6\u5206\u4e09\u6b65&#xff1a;<\/p>\n<p>\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502  Step 1&#xff1a;\u7b2c 1 \u6b21\u91c7\u6837                                    \u2502<br \/>\n\u2502                                                       \u2502<br \/>\n\u2502  \u00b7 \u8bfb \/proc\/stat \u2192 \u53d6\u7b2c\u4e00\u884c                            \u2502<br \/>\n\u2502    \u2192 \u89e3\u6790 8 \u4e2a\u5b57\u6bb5                                     \u2502<br \/>\n\u2502    \u2192 total\u2081 &#061; 8 \u4e2a\u5b57\u6bb5\u4e4b\u548c                             \u2502<br \/>\n\u2502    \u2192 idle\u2081  &#061; \u7b2c 4 \u4e2a\u5b57\u6bb5                              \u2502<br \/>\n\u2502                                                       \u2502<br \/>\n\u2502  \u00b7 \u8bfb \/proc\/{pid}\/stat                                \u2502<br \/>\n\u2502    \u2192 \u53d6\u7b2c 14~17 \u5b57\u6bb5                                   \u2502<br \/>\n\u2502    \u2192 process_time\u2081 &#061; utime &#043; stime &#043; cutime &#043; cstime  \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                        \u2502<br \/>\n                        \u2502  \u7b49\u5f85 N \u79d2&#xff08;\u63a8\u8350 10 \u79d2&#xff09;<br \/>\n                        \u25bc<br \/>\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502  Step 2&#xff1a;\u7b2c 2 \u6b21\u91c7\u6837&#xff08;\u540c\u6837\u6b65\u9aa4&#xff09;                         \u2502<br \/>\n\u2502                                                       \u2502<br \/>\n\u2502    \u2192 total\u2082, idle\u2082, process_time\u2082                     \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                        \u2502<br \/>\n                        \u25bc<br \/>\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502  Step 3&#xff1a;\u4ee3\u5165\u516c\u5f0f                                      \u2502<br \/>\n\u2502                                                       \u2502<br \/>\n\u2502  \u0394total   &#061; total\u2082 \u2212 total\u2081                          \u2502<br \/>\n\u2502  \u0394idle    &#061; idle\u2082 \u2212 idle\u2081                             \u2502<br \/>\n\u2502  \u0394process &#061; process_time\u2082 \u2212 process_time\u2081             \u2502<br \/>\n\u2502                                                       \u2502<br \/>\n\u2502  \u6574\u673a CPU% &#061; (\u0394total \u2212 \u0394idle) \/ \u0394total \u00d7 100         \u2502<br \/>\n\u2502  \u8fdb\u7a0b CPU% &#061; \u0394process \/ \u0394total \u00d7 100                  \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<hr \/>\n<h3>\u5c0f\u7ed3<\/h3>\n<table>\n<tr>\u77e5\u8bc6\u70b9\u4e00\u53e5\u8bdd<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">CPU% \u7684\u672c\u8d28<\/td>\n<td align=\"left\">\u975e\u7a7a\u95f2 tick \u5360\u603b tick \u7684\u6bd4\u4f8b<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u6838\u5fc3\u516c\u5f0f<\/td>\n<td align=\"left\">\u6574\u673a (\u0394total\u2212\u0394idle)\/\u0394total&#xff0c;\u8fdb\u7a0b \u0394process\/\u0394total<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u6574\u673a\u6570\u636e\u6e90<\/td>\n<td align=\"left\">\/proc\/stat \u7b2c\u4e00\u884c&#xff08;\u6c47\u603b\u884c&#xff0c;\u4e0d\u9700\u8981\u624b\u52a8\u52a0\u5404\u6838&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u8fdb\u7a0b\u6570\u636e\u6e90<\/td>\n<td align=\"left\">\/proc\/{pid}\/stat \u7b2c 14~17 \u5b57\u6bb5<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">total \u600e\u4e48\u7b97<\/td>\n<td align=\"left\">\u6c47\u603b\u884c 8 \u4e2a\u6570\u503c\u5b57\u6bb5\u5168\u90e8\u76f8\u52a0<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u63a8\u8350\u91c7\u96c6\u65b9\u5f0f<\/td>\n<td align=\"left\">\u76f4\u63a5\u8bfb \/proc\/stat&#xff0c;\u4e0d\u7528 top \/ dumpsys<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u63a8\u8350\u91c7\u96c6\u95f4\u9694<\/td>\n<td align=\"left\">10 \u79d2&#xff08;\u957f\u65f6\u95f4\u538b\u6d4b&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u7cbe\u5ea6\u4e0a\u9650<\/td>\n<td align=\"left\">CONFIG_HZ \u51b3\u5b9a&#xff0c;\u901a\u5e38 4~10ms<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u638c\u63e1\u4e86\u8fd9\u4e9b\u57fa\u7840&#xff0c;\u4f60\u5c31\u80fd\u770b\u61c2\u4efb\u4f55 CPU \u91c7\u96c6\u5de5\u5177\u7684\u539f\u7406\u4e86\u3002\u4e0b\u4e00\u7bc7\u6211\u4eec\u8bb2\u8fd9\u4e2a&#034;\u7b80\u5355\u516c\u5f0f&#034;\u91cc\u85cf\u7740\u7684 8 \u4e2a\u5751\u2014\u2014\u6bcf\u4e2a\u90fd\u53ef\u80fd\u8ba9\u4f60\u7684\u6570\u636e\u4e25\u91cd\u5931\u771f\u3002<\/p>\n<p>\u63d0\u793a&#xff1a;\u672c\u7bc7\u8bb2\u7684 CPU% \u8861\u91cf\u7684\u662f&#034;\u65f6\u95f4\u7247\u5360\u6bd4&#034;&#xff08;Raw CPU%&#xff09;\u3002\u8bbe\u5907\u964d\u9891\u65f6&#xff0c;\u540c\u6837\u7684 CPU% \u5bf9\u5e94\u7684\u5b9e\u9645\u7b97\u529b\u4f1a\u5927\u5e45\u7f29\u6c34\u3002\u8fd9\u4e2a\u95ee\u9898\u4ee5\u53ca\u5bf9\u5e94\u7684 Normalized CPU% \u65b9\u6848&#xff0c;\u4f1a\u5728\u7b2c 7 \u7bc7\u548c\u7b2c 8 \u7bc7\u5c55\u5f00\u3002<\/p>\n<hr \/>\n<p>\u7cfb\u5217\u76ee\u5f55<\/p>\n<ul>\n<li>\u7b2c 1 \u7bc7&#xff1a;\u5185\u5b58\u6cc4\u6f0f\u81ea\u52a8\u68c0\u6d4b&#xff08;\u4e0a&#xff09;\u2014\u2014\u91c7\u96c6\u5c42\u8bbe\u8ba1<\/li>\n<li>\u7b2c 2 \u7bc7&#xff1a;\u5185\u5b58\u6cc4\u6f0f\u81ea\u52a8\u68c0\u6d4b&#xff08;\u4e2d&#xff09;\u2014\u2014\u68c0\u6d4b\u5c42\u8bbe\u8ba1<\/li>\n<li>\u7b2c 3 \u7bc7&#xff1a;\u5185\u5b58\u6cc4\u6f0f\u81ea\u52a8\u68c0\u6d4b&#xff08;\u4e0b&#xff09;\u2014\u2014\u54cd\u5e94\u5c42\u8bbe\u8ba1<\/li>\n<li>\u7b2c 4 \u7bc7&#xff1a;Android \u5185\u5b58\u91c7\u96c6\u907f\u5751\u6307\u5357<\/li>\n<li>\u7b2c 5 \u7bc7&#xff08;\u672c\u7bc7&#xff09;&#xff1a;Android CPU \u4f7f\u7528\u7387\u91c7\u96c6\u5165\u95e8<\/li>\n<li>\u7b2c 6 \u7bc7&#xff08;\u4e0b\u4e00\u7bc7&#xff09;&#xff1a;CPU \u91c7\u96c6\u7684 8 \u4e2a\u5751<\/li>\n<li>\u7b2c 7 \u7bc7&#xff1a;CPU \u964d\u9891\u4e86&#xff0c;\u4f60\u7684\u91c7\u96c6\u6570\u636e\u8fd8\u51c6\u5417&#xff1f;<\/li>\n<li>\u7b2c 8 \u7bc7&#xff1a;CPU \u5355\u6838\u5206\u6790\u4e0e\u5f52\u4e00\u5316\u65b9\u6848<\/li>\n<\/ul>\n<hr \/>\n<p>\u6211\u662f\u6d4b\u8bd5\u5de5\u574a&#xff0c;\u4e13\u6ce8 Android \u7cfb\u7edf\u7ea7\u6027\u80fd\u5de5\u7a0b\u3002 \u5982\u679c\u4f60\u4e5f\u5728\u505a CPU \u76f8\u5173\u7684\u6027\u80fd\u6d4b\u8bd5&#xff0c;\u6b22\u8fce\u8bc4\u8bba\u533a\u4ea4\u6d41 &#x1f447; \u5173\u6ce8\u6211&#xff0c;\u540e\u7eed\u66f4\u65b0\u4e0d\u8ff7\u8def\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u505a Android \u6027\u80fd\u6d4b\u8bd5&#xff0c;CPU \u4f7f\u7528\u7387\u662f\u6700\u57fa\u7840\u7684\u6307\u6807\u3002\u4f46\u5f88\u591a\u4eba\u53ea\u4f1a\u7528 top \u770b\u4e00\u773c&#xff0c;\u5bf9\u80cc\u540e\u7684\u6570\u636e\u6e90\u548c\u8ba1\u7b97\u903b\u8f91\u5e76\u4e0d\u6e05\u695a\u3002 \u672c\u7bc7\u4ece\u6982\u5ff5\u8bb2\u8d77&#xff0c;\u5148\u7ed9\u516c\u5f0f\u3001\u518d\u770b\u6570\u636e\u6e90\u3001\u6700\u540e\u7528\u771f\u5b9e\u6570\u636e\u8d70\u4e00\u904d\u5b8c\u6574\u8ba1\u7b97\u3002 \u4e00\u3001CPU \u4f7f\u7528\u7387\u5230\u5e95\u5728\u5ea6\u91cf\u4ec0\u4e48<br \/>\n\u5148\u660e\u786e\u4e00\u4e2a\u6982\u5ff5&#xff1a;CPU \u4f7f\u7528\u7387\u8861\u91cf\u7684\u662f\\&#8221;\u65f6\u95f4\u7247\u7684\u5206\u914d\u6bd4\u4f8b\\&#8221;&#xff0c;\u4e0d\u662f\\&#8221;\u7b97\u529b\u7684\u6d88\u8017\u6bd4\u4f8b\\&#8221;\u3002<br \/>\nLinux \u5185\u6838\u7528\u4e00\u4e2a\u53eb tick \u7684\u65f6\u95f4\u7247\u6765\u8c03\u5ea6\u4efb\u52a1\u3002\u6bcf\u4e2a tick \u5927\u7ea6 4~10 <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[84,56],"topic":[],"class_list":["post-76370","post","type-post","status-publish","format-standard","hentry","category-server","tag-android","tag-56"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Android CPU \u4f7f\u7528\u7387\u91c7\u96c6\uff1a\/proc\/stat \u8ba1\u7b97\u516c\u5f0f\u4e0e\u5b8c\u6574\u65b9\u6848\uff08\u9644\u5b9e\u4f8b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/76370.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android CPU \u4f7f\u7528\u7387\u91c7\u96c6\uff1a\/proc\/stat \u8ba1\u7b97\u516c\u5f0f\u4e0e\u5b8c\u6574\u65b9\u6848\uff08\u9644\u5b9e\u4f8b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u505a Android \u6027\u80fd\u6d4b\u8bd5&#xff0c;CPU \u4f7f\u7528\u7387\u662f\u6700\u57fa\u7840\u7684\u6307\u6807\u3002\u4f46\u5f88\u591a\u4eba\u53ea\u4f1a\u7528 top \u770b\u4e00\u773c&#xff0c;\u5bf9\u80cc\u540e\u7684\u6570\u636e\u6e90\u548c\u8ba1\u7b97\u903b\u8f91\u5e76\u4e0d\u6e05\u695a\u3002 \u672c\u7bc7\u4ece\u6982\u5ff5\u8bb2\u8d77&#xff0c;\u5148\u7ed9\u516c\u5f0f\u3001\u518d\u770b\u6570\u636e\u6e90\u3001\u6700\u540e\u7528\u771f\u5b9e\u6570\u636e\u8d70\u4e00\u904d\u5b8c\u6574\u8ba1\u7b97\u3002 \u4e00\u3001CPU \u4f7f\u7528\u7387\u5230\u5e95\u5728\u5ea6\u91cf\u4ec0\u4e48 \u5148\u660e\u786e\u4e00\u4e2a\u6982\u5ff5&#xff1a;CPU \u4f7f\u7528\u7387\u8861\u91cf\u7684\u662f&quot;\u65f6\u95f4\u7247\u7684\u5206\u914d\u6bd4\u4f8b&quot;&#xff0c;\u4e0d\u662f&quot;\u7b97\u529b\u7684\u6d88\u8017\u6bd4\u4f8b&quot;\u3002 Linux \u5185\u6838\u7528\u4e00\u4e2a\u53eb tick \u7684\u65f6\u95f4\u7247\u6765\u8c03\u5ea6\u4efb\u52a1\u3002\u6bcf\u4e2a tick \u5927\u7ea6 4~10\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/76370.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-22T02:41:33+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/76370.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/76370.html\",\"name\":\"Android CPU \u4f7f\u7528\u7387\u91c7\u96c6\uff1a\/proc\/stat \u8ba1\u7b97\u516c\u5f0f\u4e0e\u5b8c\u6574\u65b9\u6848\uff08\u9644\u5b9e\u4f8b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-22T02:41:33+00:00\",\"dateModified\":\"2026-02-22T02:41:33+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/76370.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/76370.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/76370.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android CPU \u4f7f\u7528\u7387\u91c7\u96c6\uff1a\/proc\/stat \u8ba1\u7b97\u516c\u5f0f\u4e0e\u5b8c\u6574\u65b9\u6848\uff08\u9644\u5b9e\u4f8b\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Android CPU \u4f7f\u7528\u7387\u91c7\u96c6\uff1a\/proc\/stat \u8ba1\u7b97\u516c\u5f0f\u4e0e\u5b8c\u6574\u65b9\u6848\uff08\u9644\u5b9e\u4f8b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/76370.html","og_locale":"zh_CN","og_type":"article","og_title":"Android CPU \u4f7f\u7528\u7387\u91c7\u96c6\uff1a\/proc\/stat \u8ba1\u7b97\u516c\u5f0f\u4e0e\u5b8c\u6574\u65b9\u6848\uff08\u9644\u5b9e\u4f8b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u505a Android \u6027\u80fd\u6d4b\u8bd5&#xff0c;CPU \u4f7f\u7528\u7387\u662f\u6700\u57fa\u7840\u7684\u6307\u6807\u3002\u4f46\u5f88\u591a\u4eba\u53ea\u4f1a\u7528 top \u770b\u4e00\u773c&#xff0c;\u5bf9\u80cc\u540e\u7684\u6570\u636e\u6e90\u548c\u8ba1\u7b97\u903b\u8f91\u5e76\u4e0d\u6e05\u695a\u3002 \u672c\u7bc7\u4ece\u6982\u5ff5\u8bb2\u8d77&#xff0c;\u5148\u7ed9\u516c\u5f0f\u3001\u518d\u770b\u6570\u636e\u6e90\u3001\u6700\u540e\u7528\u771f\u5b9e\u6570\u636e\u8d70\u4e00\u904d\u5b8c\u6574\u8ba1\u7b97\u3002 \u4e00\u3001CPU \u4f7f\u7528\u7387\u5230\u5e95\u5728\u5ea6\u91cf\u4ec0\u4e48 \u5148\u660e\u786e\u4e00\u4e2a\u6982\u5ff5&#xff1a;CPU \u4f7f\u7528\u7387\u8861\u91cf\u7684\u662f\"\u65f6\u95f4\u7247\u7684\u5206\u914d\u6bd4\u4f8b\"&#xff0c;\u4e0d\u662f\"\u7b97\u529b\u7684\u6d88\u8017\u6bd4\u4f8b\"\u3002 Linux \u5185\u6838\u7528\u4e00\u4e2a\u53eb tick \u7684\u65f6\u95f4\u7247\u6765\u8c03\u5ea6\u4efb\u52a1\u3002\u6bcf\u4e2a tick \u5927\u7ea6 4~10","og_url":"https:\/\/www.wsisp.com\/helps\/76370.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-22T02:41:33+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/76370.html","url":"https:\/\/www.wsisp.com\/helps\/76370.html","name":"Android CPU \u4f7f\u7528\u7387\u91c7\u96c6\uff1a\/proc\/stat \u8ba1\u7b97\u516c\u5f0f\u4e0e\u5b8c\u6574\u65b9\u6848\uff08\u9644\u5b9e\u4f8b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-22T02:41:33+00:00","dateModified":"2026-02-22T02:41:33+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/76370.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/76370.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/76370.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Android CPU \u4f7f\u7528\u7387\u91c7\u96c6\uff1a\/proc\/stat \u8ba1\u7b97\u516c\u5f0f\u4e0e\u5b8c\u6574\u65b9\u6848\uff08\u9644\u5b9e\u4f8b\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/76370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=76370"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/76370\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=76370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=76370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=76370"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=76370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}