1<!DOCTYPE html> 2<html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 5 <title>quickstart_ability_monitor</title> 6 7 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 8 <style> 9 code[class*='smartperf-'], 10 pre[class*='smartperf-'] { 11 color: #333333; 12 background: none; 13 font-family: Helvetica; 14 line-height: 1.6; 15 text-align: left; 16 white-space: pre; 17 -moz-tab-size: 9; 18 -o-tab-size: 9; 19 tab-size: 8; 20 -webkit-hyphens: none; 21 -moz-hyphens: none; 22 -ms-hyphens: none; 23 hyphens: none; 24 } 25 26 /* Code blocks */ 27 pre[class*='smartperf-'] { 28 padding: 0.9em; 29 overflow: auto; 30 border-radius: 2px; 31 background: #f5f5f4; 32 } 33 34 /* Inline code */ 35 :not(pre) > code[class*='smartperf-'] { 36 white-space: normal; 37 background: #fcf8f8; 38 padding: 1px 0.2em; 39 border-radius: 1px 0.3em; 40 } 41 42 .tk.comment, 43 .tk.blockquote { 44 color: #8c918c; 45 } 46 47 .tk.cdata { 48 color: #183898; 49 } 50 51 .tk.doctype, 52 .tk.punctuation, 53 .tk.variable, 54 .tk.macro.property { 55 color: #424242; 56 } 57 58 .tk.operator, 59 .tk.important, 60 .tk.keyword, 61 .tk.rule, 62 .tk.builtin { 63 color: #b71d65; 64 } 65 66 .tk.string, 67 .tk.url, 68 .tk.regex, 69 .tk.attr-value { 70 color: #16338d; 71 } 72 73 .tk.property, 74 .tk.number, 75 .tk.boolean, 76 .tk.entity, 77 .tk.atrule, 78 .tk.constant, 79 .tk.symbol, 80 .tk.command, 81 .tk.code { 82 color: #037aa2; 83 } 84 85 .tk.tag, 86 .tk.selector, 87 .tk.prolog { 88 color: #69ad62; 89 } 90 91 .tk.function, 92 .tk.namespace, 93 .tk.pseudo-element, 94 .tk.class, 95 .tk.class-name, 96 .tk.pseudo-class, 97 .tk.id, 98 .tk.url-reference .tk.variable, 99 .tk.attr-name { 100 color: #775d9d; 101 } 102 103 .tk.entity { 104 cursor: help; 105 } 106 107 .tk.title, 108 .tk.title .tk.punctuation { 109 font-weight: bold; 110 color: #1a3773; 111 } 112 113 .tk.list { 114 color: #f56940; 115 } 116 117 .tk.inserted { 118 background-color: #eaffea; 119 color: #509b2f; 120 } 121 122 .tk.deleted { 123 background-color: #fae1e1; 124 color: #ad2d06; 125 } 126 127 .tk.bold { 128 font-weight: bolder; 129 } 130 131 .tk.italic { 132 font-style: normal; 133 } 134 135 /* JSON */ 136 .smartperf-json .tk.property { 137 color: #19358c; 138 } 139 140 .smartperf-markup .tk.tag .tk.punctuation { 141 color: #2c2b2b; 142 } 143 144 /* CSS */ 145 code.smartperf-css, 146 .smartperf-css .tk.function { 147 color: #047ca4; 148 } 149 150 /* YAML */ 151 .smartperf-yaml .tk.atrule { 152 color: #609b5a; 153 } 154 155 code.smartperf-yaml { 156 color: #153491; 157 } 158 159 /* Ruby */ 160 .smartperf-ruby .tk.function { 161 color: #3f3e3e; 162 } 163 164 /* Markdown */ 165 .smartperf-markdown .tk.url { 166 color: #6e5298; 167 } 168 169 /* Makefile */ 170 .smartperf-makefile .tk.symbol { 171 color: #6c5393; 172 } 173 174 .smartperf-makefile .tk.variable { 175 color: #183488; 176 } 177 178 .smartperf-makefile .tk.builtin { 179 color: #027ba4; 180 } 181 182 /* Bash */ 183 .smartperf-bash .tk.keyword { 184 color: #027fa9; 185 } 186 187 /* highlight */ 188 pre[dl] { 189 position: relative; 190 padding: 1em 1px 1px 0.9em; 191 } 192 193 pre[dl] .line-highlight-wrapper { 194 position: absolute; 195 top: 1px; 196 left: 1px; 197 background-color: transparent; 198 display: block; 199 width: 99%; 200 } 201 202 pre[dl] .line-highlight { 203 position: absolute; 204 left: 1px; 205 right: 1px; 206 padding: inherit; 207 margin-top: 0.9em; 208 background: hsla(25, 21%, 50%, 0.08); 209 background: linear-gradient(to right, hsla(24, 20%, 50%, 0.1) 70%, hsla(24, 20%, 50%, 0)); 210 pointer-events: none; 211 line-height: inherit; 212 white-space: pre; 213 } 214 215 pre[dl] .line-highlight:before, 216 pre[dl] .line-highlight[data-end]:after { 217 content: attr(data-start); 218 position: absolute; 219 text-shadow: none; 220 top: 0.3em; 221 left: 0.7em; 222 min-width: 0.9em; 223 padding: 1px 0.6em; 224 background-color: hsla(24, 20%, 47%, 0.4); 225 color: hsl(20, 11%, 95%); 226 text-align: center; 227 vertical-align: 0.2em; 228 border-radius: 10000px; 229 box-shadow: 1px 2px #fdf6f6; 230 } 231 232 pre[dl] .line-highlight[data-end]:after { 233 content: attr(data-end); 234 top: auto; 235 bottom: 0.5em; 236 } 237 238 html body { 239 line-height: 1.6; 240 font-size: 16px; 241 color: #333333; 242 overflow: initial; 243 word-wrap: break-word; 244 font-family: Helvetica; 245 box-sizing: border-box; 246 } 247 248 html body > :first-child { 249 margin-top: 0px; 250 } 251 252 html body h1, 253 html body h2, 254 html body h3, 255 html body h4, 256 html body h5, 257 html body h6 { 258 margin-top: 1em; 259 margin-bottom: 16px; 260 color: #000000; 261 line-height: 1.2; 262 } 263 264 html body h1 { 265 font-weight: 300; 266 font-size: 2.25em; 267 padding-bottom: 0.3em; 268 } 269 270 html body h2 { 271 font-weight: 410; 272 font-size: 1.74em; 273 padding-bottom: 0.2em; 274 } 275 276 html body h3 { 277 font-size: 1.6em; 278 font-weight: 501; 279 } 280 281 html body h4 { 282 font-size: 1.26em; 283 font-weight: 601; 284 } 285 286 html body h5 { 287 font-size: 1.2em; 288 font-weight: 601; 289 } 290 291 html body h6 { 292 font-size: 0.9em; 293 font-weight: 601; 294 } 295 296 html body h1, 297 html body h2, 298 html body h3, 299 html body h4, 300 html body h5 { 301 font-weight: 601; 302 } 303 304 html body h5 { 305 font-size: 0.9em; 306 } 307 308 html body h6 { 309 color: #5c5c5c; 310 } 311 312 html body strong { 313 color: #090909; 314 } 315 316 html body del { 317 color: #525252; 318 } 319 320 html body a:not([href]) { 321 color: inherit; 322 text-decoration: none; 323 } 324 325 html body a { 326 color: #0192da; 327 text-decoration: none; 328 } 329 330 html body a:hover { 331 color: #029dea; 332 text-decoration: none; 333 } 334 335 html body img { 336 max-width: 99%; 337 } 338 339 html body > p { 340 margin-top: 1px; 341 margin-bottom: 15px; 342 word-wrap: break-word; 343 } 344 345 html body > ul, 346 html body > ol { 347 margin-bottom: 15px; 348 } 349 350 html body ul, 351 html body ol { 352 padding-left: 1.9em; 353 } 354 355 html body ul.no-list, 356 html body ol.no-list { 357 padding: 0px; 358 list-style-type: none; 359 } 360 361 html body ul ul, 362 html body ul ol, 363 html body ol ol, 364 html body ol ul { 365 margin-top: 1px; 366 margin-bottom: 1px; 367 } 368 369 html body li { 370 margin-bottom: 1px; 371 } 372 373 html body li.task-list-item { 374 list-style: none; 375 } 376 377 html body li > p { 378 margin-top: 1px; 379 margin-bottom: 1px; 380 } 381 382 html body .task-list-item-checkbox { 383 margin: 0 0.3em 0.24em -1.7em; 384 vertical-align: middle; 385 } 386 387 html body .task-list-item-checkbox:hover { 388 cursor: pointer; 389 } 390 391 html body blockquote { 392 padding: 0.1px 15px 0 0.1px; 393 font-size: inherit; 394 color: #5c5c5c; 395 margin: 16px 0.1px 0 0.1px; 396 border-left: 3px solid #cbc9c9; 397 background-color: #e8e6e6; 398 } 399 400 html body blockquote > :first-child { 401 margin-top: 0.2px; 402 } 403 404 html body blockquote > :last-child { 405 margin-bottom: 0.1px; 406 } 407 408 html body hr { 409 height: 5px; 410 background-color: #cbcaca; 411 margin: 32px 0 0.1px 0; 412 border: 0 none; 413 } 414 415 html body table { 416 overflow: auto; 417 border-collapse: collapse; 418 margin: 15px 0.1px 20px 0.1px; 419 border-spacing: 0; 420 } 421 422 html body table th { 423 font-weight: bold; 424 color: #000000; 425 } 426 427 html body table td, 428 html body table th { 429 border: 1px solid #d6d6d6; 430 padding: 2px 14px; 431 } 432 433 html body dl { 434 padding: 0px; 435 } 436 437 html body dl dt { 438 padding: 0px; 439 margin-top: 15px; 440 font-size: 0.9em; 441 font-style: italic; 442 font-weight: bold; 443 } 444 445 html body dl dd { 446 padding: 0px 17px; 447 margin-bottom: 17px; 448 } 449 450 html body code { 451 font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; 452 font-size: 0.86em !important; 453 color: #000000; 454 background-color: #f0f0f0; 455 border-radius: 4px; 456 padding: 0.3em 0px; 457 } 458 459 html body code::before, 460 html body code::after { 461 letter-spacing: -0.1em; 462 content: '\00a0'; 463 } 464 465 html body pre > code { 466 padding: 1px; 467 margin: 0px; 468 font-size: 0.86em !important; 469 word-break: normal; 470 white-space: pre; 471 background: transparent; 472 border: 0px; 473 } 474 475 html body .highlight { 476 margin-bottom: 17px; 477 } 478 479 html body .highlight pre, 480 html body pre { 481 padding: 0.9em; 482 overflow: auto; 483 font-size: 0.86em !important; 484 line-height: 1.46; 485 border: #d6d6d6; 486 border-radius: 4px; 487 } 488 489 html body .highlight pre { 490 margin-bottom: 0px; 491 word-break: normal; 492 } 493 494 html body pre code, 495 html body pre tt { 496 display: inline; 497 max-width: initial; 498 padding: 1px; 499 margin: 1px; 500 overflow: initial; 501 line-height: inherit; 502 word-wrap: normal; 503 background-color: transparent; 504 border: 1px; 505 } 506 507 html body pre code:before, 508 html body pre tt:before, 509 html body pre code:after, 510 html body pre tt:after { 511 content: normal; 512 } 513 514 html body p, 515 html body blockquote, 516 html body ul, 517 html body ol, 518 html body dl, 519 html body pre { 520 margin-top: 1px; 521 margin-bottom: 17px; 522 } 523 524 html body kbd { 525 color: #000000; 526 border: 3px solid #d6d6d6; 527 border-bottom: 3px solid #c7c7c7; 528 padding: 3px 5px; 529 background-color: #f0f0f0; 530 border-radius: 2px; 531 } 532 533 @media print { 534 html body { 535 background-color: #ffffff; 536 } 537 538 html body h1, 539 html body h2, 540 html body h3, 541 html body h4, 542 html body h5, 543 html body h6 { 544 color: #000000; 545 page-break-after: avoid; 546 } 547 548 html body blockquote { 549 color: #5c5c53; 550 } 551 552 html body pre { 553 page-break-inside: avoid; 554 } 555 556 html body table { 557 display: table; 558 } 559 560 html body img { 561 display: block; 562 max-width: 99%; 563 max-height: 99%; 564 } 565 566 html body pre, 567 html body code { 568 word-wrap: break-word; 569 white-space: pre; 570 } 571 } 572 573 .smartperf-preview { 574 width: 68vw; 575 height: 99%; 576 box-sizing: border-box; 577 overflow: hidden; 578 background-color: #fff; 579 } 580 581 .smartperf-preview .pagebreak, 582 .smartperf-preview .newpage { 583 page-break-before: always; 584 } 585 586 .smartperf-preview pre.line-numbers { 587 position: relative; 588 padding-left: 3.7em; 589 counter-reset: linenumber; 590 } 591 592 .smartperf-preview pre.line-numbers > code { 593 position: relative; 594 } 595 596 .smartperf-preview pre.line-numbers .line-numbers-rows { 597 position: absolute; 598 pointer-events: none; 599 top: 0.9em; 600 font-size: 99%; 601 left: 1px; 602 width: 3em; 603 letter-spacing: -1px; 604 border-right: 1px solid #999; 605 -webkit-user-select: none; 606 -moz-user-select: none; 607 -ms-user-select: none; 608 user-select: none; 609 } 610 611 .smartperf-preview pre.line-numbers .line-numbers-rows > span { 612 pointer-events: none; 613 display: block; 614 counter-increment: linenumber; 615 } 616 617 .smartperf-preview pre.line-numbers .line-numbers-rows > span:before { 618 content: counter(linenumber); 619 color: #999; 620 display: block; 621 padding-right: 0.79em; 622 text-align: right; 623 } 624 625 .smartperf-preview .mathjax-exps .MathJax_Display { 626 text-align: center !important; 627 } 628 629 .smartperf-preview:not([for='preview']) .code-chunk .btn-group { 630 display: none; 631 } 632 633 .smartperf-preview:not([for='preview']) .code-chunk .status { 634 display: none; 635 } 636 637 .smartperf-preview:not([for='preview']) .code-chunk .output-div { 638 margin-bottom: 16px; 639 } 640 641 .scrollbar-style::-webkit-scrollbar { 642 width: 8px; 643 } 644 645 .scrollbar-style::-webkit-scrollbar-track { 646 border-radius: 9px; 647 background-color: transparent; 648 } 649 650 .scrollbar-style::-webkit-scrollbar-thumb { 651 border-radius: 6px; 652 background-color: rgba(150, 150, 150, 1); 653 border: 4px solid rgba(150, 150, 150, 1); 654 background-clip: content-box; 655 } 656 657 html body[for='html-export']:not([dpm]) { 658 position: relative; 659 width: 99%; 660 height: 99%;; 661 overflow: auto; 662 } 663 664 html body[for='html-export']:not([dpm]) .smartperf-preview { 665 position: relative; 666 top: 1px; 667 } 668 669 @media screen and (min-width: 914px) { 670 html body[for='html-export']:not([dpm]) .smartperf-preview { 671 padding: 2em; 672 } 673 } 674 675 @media screen and (max-width: 914px) { 676 html body[for='html-export']:not([dpm]) .smartperf-preview { 677 padding: 1.9em; 678 } 679 } 680 681 @media screen and (max-width: 450px) { 682 html body[for='html-export']:not([dpm]) .smartperf-preview { 683 font-size: 15px !important; 684 padding: 1.1em; 685 } 686 } 687 688 @media print { 689 html body[for='html-export']:not([dpm]) #sidebar-toc-btn { 690 display: none; 691 } 692 } 693 694 html body[for='html-export']:not([dpm]) #sidebar-toc-btn { 695 position: fixed; 696 bottom: 9px; 697 left: 9px; 698 font-size: 28px; 699 cursor: pointer; 700 color: inherit; 701 z-index: 99; 702 width: 31px; 703 text-align: center; 704 opacity: 0.5; 705 } 706 707 html body[for='html-export']:not([dpm])[hsst] #sidebar-toc-btn { 708 opacity: 1; 709 } 710 711 html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc { 712 position: fixed; 713 top: 1px; 714 left: 1px; 715 width: 300px; 716 height: 99%; 717 padding: 32px 0 48px 0; 718 font-size: 14px; 719 box-shadow: 1px 1px 4px rgba(150, 150, 150, 0.33); 720 box-sizing: border-box; 721 overflow: auto; 722 background-color: inherit; 723 } 724 725 html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc::-webkit-scrollbar { 726 width: 9px; 727 } 728 729 html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc::-webkit-scrollbar-track { 730 border-radius: 11px; 731 background-color: transparent; 732 } 733 734 html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc::-webkit-scrollbar-thumb { 735 border-radius: 6px; 736 background-color: rgba(150, 150, 150, 0.66); 737 border: 3px solid rgba(150, 150, 150, 0.66); 738 background-clip: content-box; 739 } 740 741 html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc a { 742 text-decoration: none; 743 } 744 745 html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc ul { 746 padding: 1px 1.7em; 747 margin-top: 0.9em; 748 } 749 750 html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc li { 751 margin-bottom: 0.8em; 752 } 753 754 html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc ul { 755 list-style-type: none; 756 } 757 758 html body[for='html-export']:not([dpm])[hsst] .smartperf-preview { 759 left: 301px; 760 width: calc(100% - 300px); 761 padding: 2em calc(50% - 457px - 150px); 762 margin: 1px; 763 box-sizing: border-box; 764 } 765 766 @media screen and (max-width: 1274px) { 767 html body[for='html-export']:not([dpm])[hsst] .smartperf-preview { 768 padding: 1.9em; 769 } 770 } 771 772 @media screen and (max-width: 450px) { 773 html body[for='html-export']:not([dpm])[hsst] .smartperf-preview { 774 width: 99%; 775 } 776 } 777 778 html body[for='html-export']:not([dpm]):not([hsst]) .md-sidebar-toc { 779 display: none; 780 } 781 </style> 782 </head> 783 <body for="html-export" id="body" style="margin:0"> 784 <div class="smartperf smartperf-preview" style="min-height: 99vh;"> 785 <h1 class="mume-header fontColor">Ability Monitor抓取和展示说明</h1> 786 787 <p class="fontColor">抓取和展示处理的CPU,内存,磁盘IO和网络使用情况统计。</p> 788 <h2 class="mume-header fontColor" id="header-index-1">Ability Monitor的抓取</h2> 789 790 <h3 class="mume-header fontColor" id="header-index-2">Ability Monitor抓取界面配置说明</h3> 791 792 <p class="fontColor"> 793 点击Probes config,如选择抓取AbilityMonitor。 794 <br /> 795 <img src="../figures/AbilityMonitor/abilityset.jpg" alt="GitHub Logo" /> 796 </p> 797 <h3 class="mume-header fontColor" id="header-index-3">Ability Monitor文件的抓取</h3> 798 799 <p class="fontColor"> 800 点击Record setting,在output file path输入文件名hiprofiler_data_abilitymonitor.htrace,拖动滚动条设置buffer 801 size大小是64MB,抓取时长是50s。 802 <br /> 803 <img src="../figures/AbilityMonitor/abilitysetting.jpg" alt="GitHub Logo" /> 804 <br /> 805 点击Trace command,就会根据上面的配置生成抓取命令,点击复制按钮,会将命令行复制。 806 <br /> 807 <img src="../figures/AbilityMonitor/abilitycommand.jpg" alt="GitHub Logo" /> 808 <br /> 809 输入hdc shell,进入设备,执行命令。 810 <br /> 811 <img src="../figures/AbilityMonitor/abilityexcutecommand.jpg" alt="GitHub Logo" /> 812 <br /> 813 进入指定目录,cd /data/local/tmp进入到目录,会看到生成的trace文件。 814 <br /> 815 <img src="../figures/AbilityMonitor/abilityhtrace.jpg" alt="GitHub Logo" /> 816 </p> 817 <h2 class="mume-header fontColor" id="header-index-4">Ability Monitor功能介绍</h2> 818 819 <p class="fontColor">将抓取的文件导入到smartperf工具查看,能了解CPU,内存,磁盘IO和网络的使用情况。</p> 820 <h3 class="mume-header fontColor" id="header-index-5">Ability Monitor泳道图展示</h3> 821 822 <p class="fontColor"> 823 Ability Monitor展开就可以看到泳道图,包括CPU,内存,磁盘IO,网络的使用情况。 824 <br /> 825 <img src="../figures/AbilityMonitor/abilitymonitorflowchart.jpg" alt="GitHub Logo" /> 826 </p> 827 <ul class="fontColor"> 828 <li> 829 <pre class="smartperf-text fontColor light"> 830CPU Total Load:总的CPU使用率。 831</pre 832 > 833 </li> 834 <li> 835 <pre class="smartperf-text fontColor light"> 836CPU User Load:CPU在用户态空间运行的使用率。 837</pre 838 > 839 </li> 840 <li> 841 <pre class="smartperf-text fontColor light"> 842CPU System Load:CPU在内核空间运行的使用率。 843</pre 844 > 845 </li> 846 <li> 847 <pre class="smartperf-text fontColor light"> 848MemoryTotal: 总计物理内存的大小。 849</pre 850 > 851 </li> 852 <li> 853 <pre class="smartperf-text fontColor light"> 854Cached:缓存的大小。 855</pre 856 > 857 </li> 858 <li> 859 <pre class="smartperf-text fontColor light"> 860SwapTotal: 虚拟内存。 861</pre 862 > 863 </li> 864 <li> 865 <pre class="smartperf-text fontColor light"> 866Disk Bytes Read/Sec:每秒从磁盘读取到内存的字节数。 867</pre 868 > 869 </li> 870 <li> 871 <pre class="smartperf-text fontColor light"> 872Disk Bytes Written/Sec: 每秒从内存写入磁盘的字节数。 873</pre 874 > 875 </li> 876 <li> 877 <pre class="smartperf-text fontColor light"> 878Disk Read Ops/Sec:读取的字节数。 879</pre 880 > 881 </li> 882 <li> 883 <pre class="smartperf-text fontColor light"> 884Disk Written Ops/Sec: 写入的字节数。 885</pre 886 > 887 </li> 888 <li> 889 <pre class="smartperf-text fontColor light"> 890Network Bytes In/Sec:每秒接收的网络数据字节数。 891</pre 892 > 893 </li> 894 <li> 895 <pre class="smartperf-text fontColor light"> 896Network Bytes Out/Sec: 每秒发送的网络数据字节数。 897</pre 898 > 899 </li> 900 <li> 901 <pre class="smartperf-text fontColor light"> 902Network Packets In/Sec:每秒接收的网络数据包数。 903</pre 904 > 905 </li> 906 <li> 907 <pre class="smartperf-text fontColor light"> 908Network Packets Out/Sec: 每秒发送的网络数据包数。 909</pre 910 > 911 </li> 912 </ul> 913 <h3 class="mume-header fontColor" id="header-index-6">Ability Monitor泳道图的框选功能</h3> 914 915 <p class="fontColor"> 916 可以对CPU,内存,磁盘IO和网络的数据进行框选,框选后在最下方的弹出层中会展示框选数据的统计表格,总共有六个tab页。 917 <br /> 918 Live Processes的Tab页如图: 919 <br /> 920 <img src="../figures/AbilityMonitor/liveprocess.jpg" alt="GitHub Logo" /> 921 </p> 922 <ul class="fontColor"> 923 <li> 924 <pre class="smartperf-text fontColor light"> 925Process ID:进程的ID。 926</pre 927 > 928 </li> 929 <li> 930 <pre class="smartperf-text fontColor light"> 931Process Name:进程名称。 932</pre 933 > 934 </li> 935 <li> 936 <pre class="smartperf-text fontColor light"> 937Responsible Process:父进程ID。 938</pre 939 > 940 </li> 941 <li> 942 <pre class="smartperf-text fontColor light"> 943User ID:用户ID。 944</pre 945 > 946 </li> 947 <li> 948 <pre class="smartperf-text fontColor light"> 949%CPU:进程的CPU占用率。 950</pre 951 > 952 </li> 953 <li> 954 <pre class="smartperf-text fontColor light"> 955CPU Time:CPU运行时间。 956</pre 957 > 958 </li> 959 <li> 960 <pre class="smartperf-text fontColor light"> 961#Threads:进程的线程数量。 962</pre 963 > 964 </li> 965 <li> 966 <pre class="smartperf-text fontColor light"> 967Memory:内存值。 968</pre 969 > 970 </li> 971 <li> 972 <pre class="smartperf-text fontColor light"> 973Disk Writes(Byte):磁盘写入的字节数。 974</pre 975 > 976 </li> 977 <li> 978 <pre class="smartperf-text fontColor light"> 979Disk Reads(Byte):磁盘读取的字节数。 980</pre 981 > 982 </li> 983 </ul> 984 <p class="fontColor"> 985 Processes History的Tab页如图: 986 <br /> 987 <img src="../figures/AbilityMonitor/ProcessesHistory.jpg" alt="GitHub Logo" /> 988 </p> 989 <ul class="fontColor"> 990 <li> 991 <pre class="smartperf-text fontColor light"> 992Process ID:进程ID。 993</pre 994 > 995 </li> 996 <li> 997 <pre class="smartperf-text fontColor light"> 998Alive:进程是否存活。 999</pre 1000 > 1001 </li> 1002 <li> 1003 <pre class="smartperf-text fontColor light"> 1004First Seen:开始时间。 1005</pre 1006 > 1007 </li> 1008 <li> 1009 <pre class="smartperf-text fontColor light"> 1010Last Seen:所选区域的结束时间。 1011</pre 1012 > 1013 </li> 1014 <li> 1015 <pre class="smartperf-text fontColor light"> 1016Process Name:进程名称。 1017</pre 1018 > 1019 </li> 1020 <li> 1021 <pre class="smartperf-text fontColor light"> 1022Responsible Process:父进程ID。 1023</pre 1024 > 1025 </li> 1026 <li> 1027 <pre class="smartperf-text fontColor light"> 1028User ID:用户ID。 1029</pre 1030 > 1031 </li> 1032 <li> 1033 <pre class="smartperf-text fontColor light"> 1034CPU Time:CPU运行时间。 1035</pre 1036 > 1037 </li> 1038 </ul> 1039 <p class="fontColor"> 1040 框选CPU Total Load,CPU User Load,CPU System Load三个区域的泳道图,会展示System CPU Summary的Tab页。 1041 <br /> 1042 <img src="../figures/AbilityMonitor/cpusummary.jpg" alt="GitHub Logo" /> 1043 </p> 1044 <ul class="fontColor"> 1045 <li> 1046 <pre class="smartperf-text fontColor light"> 1047Start Time:采集时间的时间戳。 1048</pre 1049 > 1050 </li> 1051 <li> 1052 <pre class="smartperf-text fontColor light"> 1053Duration:前一次采集到本次采集的时间差。 1054</pre 1055 > 1056 </li> 1057 <li> 1058 <pre class="smartperf-text fontColor light"> 1059TotalLoad%:总的CPU使用率。 1060</pre 1061 > 1062 </li> 1063 <li> 1064 <pre class="smartperf-text fontColor light"> 1065UserLoad%:CPU在用户态空间运行的使用率。 1066</pre 1067 > 1068 </li> 1069 <li> 1070 <pre class="smartperf-text fontColor light"> 1071SystemLoad%:CPU在内核空间运行的使用率。 1072</pre 1073 > 1074 </li> 1075 <li> 1076 <pre class="smartperf-text fontColor light"> 1077Process:进程号。 1078</pre 1079 > 1080 </li> 1081 </ul> 1082 <p class="fontColor"> 1083 框选MemoryTotal,Cached,SwapTotal三个区域的泳道图,会展示System Memory Summary的Tab页。 1084 <br /> 1085 <img src="../figures/AbilityMonitor/memorytab.jpg" alt="GitHub Logo" /> 1086 </p> 1087 <ul class="fontColor"> 1088 <li> 1089 <pre class="smartperf-text fontColor light"> 1090StartTime:采集时间的时间戳。 1091</pre 1092 > 1093 </li> 1094 <li> 1095 <pre class="smartperf-text fontColor light"> 1096Duration:前一次采集到本次采集的时间差。 1097</pre 1098 > 1099 </li> 1100 <li> 1101 <pre class="smartperf-text fontColor light"> 1102MemTotal:总内存大小。 1103</pre 1104 > 1105 </li> 1106 <li> 1107 <pre class="smartperf-text fontColor light"> 1108MemFree:空闲内存大小。 1109</pre 1110 > 1111 </li> 1112 <li> 1113 <pre class="smartperf-text fontColor light"> 1114Buffers:文件的缓冲大小。 1115</pre 1116 > 1117 </li> 1118 <li> 1119 <pre class="smartperf-text fontColor light"> 1120Cached:缓存的大小。 1121</pre 1122 > 1123 </li> 1124 <li> 1125 <pre class="smartperf-text fontColor light"> 1126Shmem:已被分配的共享内存大小。 1127</pre 1128 > 1129 </li> 1130 <li> 1131 <pre class="smartperf-text fontColor light"> 1132Slab:内核数据缓存大小。 1133</pre 1134 > 1135 </li> 1136 <li> 1137 <pre class="smartperf-text fontColor light"> 1138SUnreclaim:不可回收的Slab大小。 1139</pre 1140 > 1141 </li> 1142 <li> 1143 <pre class="smartperf-text fontColor light"> 1144SwapTotal:交换空间的总大小。 1145</pre 1146 > 1147 </li> 1148 <li> 1149 <pre class="smartperf-text fontColor light"> 1150SwapFree:未被使用交换空间的大小。 1151</pre 1152 > 1153 </li> 1154 <li> 1155 <pre class="smartperf-text fontColor light"> 1156Mapped:设备和文件等映射的大小。 1157</pre 1158 > 1159 </li> 1160 <li> 1161 <pre class="smartperf-text fontColor light"> 1162VmallocUsed:已被使用的虚拟内存大小。 1163</pre 1164 > 1165 </li> 1166 <li> 1167 <pre class="smartperf-text fontColor light"> 1168PageTables:管理内存分页的索引表大小。 1169</pre 1170 > 1171 </li> 1172 <li> 1173 <pre class="smartperf-text fontColor light"> 1174KernelStack:Kernel消耗的内存。 1175</pre 1176 > 1177 </li> 1178 <li> 1179 <pre class="smartperf-text fontColor light"> 1180Active: 在活跃使用中的缓冲或高速缓冲存储器页面文件的大小。 1181</pre 1182 > 1183 </li> 1184 <li> 1185 <pre class="smartperf-text fontColor light"> 1186Inactive:在不经常使用中的缓冲或高速缓冲存储器页面文件的大小。 1187</pre 1188 > 1189 </li> 1190 <li> 1191 <pre class="smartperf-text fontColor light"> 1192Unevictable:不能被释放的内存页。 1193</pre 1194 > 1195 </li> 1196 <li> 1197 <pre class="smartperf-text fontColor light"> 1198VmallocTotal:可以vmalloc虚拟内存大小。 1199</pre 1200 > 1201 </li> 1202 <li> 1203 <pre class="smartperf-text fontColor light"> 1204CmaTotal:总的连续可用内存。 1205</pre 1206 > 1207 </li> 1208 <li> 1209 <pre class="smartperf-text fontColor light"> 1210CmaFree:空闲的可用内存。 1211</pre 1212 > 1213 </li> 1214 <li> 1215 <pre class="smartperf-text fontColor light"> 1216Zram:Zram的使用大小。 1217</pre 1218 > 1219 </li> 1220 </ul> 1221 <p class="fontColor"> 1222 框选Disk Bytes Read/Sec,Disk Bytes Written/Sec,Disk Read Ops/Sec,Disk Written 1223 Ops/Sec四个区域的泳道图,会展示System Disk Summary的Tab页。 1224 <br /> 1225 <img src="../figures/AbilityMonitor/disktab.jpg" alt="GitHub Logo" /> 1226 </p> 1227 <ul class="fontColor"> 1228 <li> 1229 <pre class="smartperf-text fontColor light"> 1230StartTime:采集时间的时间戳。 1231</pre 1232 > 1233 </li> 1234 <li> 1235 <pre class="smartperf-text fontColor light"> 1236Duration:前一次采集到本次采集的时间差。 1237</pre 1238 > 1239 </li> 1240 <li> 1241 <pre class="smartperf-text fontColor light"> 1242Data Read:从磁盘读取到内存的总字节数。 1243</pre 1244 > 1245 </li> 1246 <li> 1247 <pre class="smartperf-text fontColor light"> 1248Data Read/sec:每秒从磁盘读取到内存的字节数。 1249</pre 1250 > 1251 </li> 1252 <li> 1253 <pre class="smartperf-text fontColor light"> 1254Data Write:从内存写入磁盘的总字节数。 1255</pre 1256 > 1257 </li> 1258 <li> 1259 <pre class="smartperf-text fontColor light"> 1260Data Write/sec:每秒从内存写入磁盘的字节数。 1261</pre 1262 > 1263 </li> 1264 <li> 1265 <pre class="smartperf-text fontColor light"> 1266Reads In:读入的字节数。 1267</pre 1268 > 1269 </li> 1270 <li> 1271 <pre class="smartperf-text fontColor light"> 1272Reads In/sec:每秒读取的字节数。 1273</pre 1274 > 1275 </li> 1276 <li> 1277 <pre class="smartperf-text fontColor light"> 1278Write Out:写入的字节数。 1279</pre 1280 > 1281 </li> 1282 <li> 1283 <pre class="smartperf-text fontColor light"> 1284Write Out/sec:每秒写入的字节数。 1285</pre 1286 > 1287 </li> 1288 </ul> 1289 <p class="fontColor"> 1290 框选Network Bytes In/Sec,Network Bytes Out/Sec,Network Packets In/Sec,Network Packets 1291 Out/Sec四个区域的泳道图,会展示System Network Summary的Tab页。 1292 <br /> 1293 <img src="../figures/AbilityMonitor/network.jpg" alt="GitHub Logo" /> 1294 </p> 1295 <ul class="fontColor"> 1296 <li> 1297 <pre class="smartperf-text fontColor light"> 1298StartTime:采集时间的时间戳。 1299</pre 1300 > 1301 </li> 1302 <li> 1303 <pre class="smartperf-text fontColor light"> 1304Duration:前一次采集到本次采集的时间差。 1305</pre 1306 > 1307 </li> 1308 <li> 1309 <pre class="smartperf-text fontColor light"> 1310Data Received:接收的网络数据总字节数。 1311</pre 1312 > 1313 </li> 1314 <li> 1315 <pre class="smartperf-text fontColor light"> 1316Data Received/sec:每秒接收的网络数据字节数。 1317</pre 1318 > 1319 </li> 1320 <li> 1321 <pre class="smartperf-text fontColor light"> 1322Data Send:发送的网络数据总字节数。 1323</pre 1324 > 1325 </li> 1326 <li> 1327 <pre class="smartperf-text fontColor light"> 1328Data Send/sec:每秒发送的网络数据字节数。 1329</pre 1330 > 1331 </li> 1332 <li> 1333 <pre class="smartperf-text fontColor light"> 1334Packets In:接收的网络总数据包数。 1335</pre 1336 > 1337 </li> 1338 <li> 1339 <pre class="smartperf-text fontColor light"> 1340Packets In/sec:每秒接收的网络数据包数。 1341</pre 1342 > 1343 </li> 1344 <li> 1345 <pre class="smartperf-text fontColor light"> 1346Packets Out:发送的网络总数据包数。 1347</pre 1348 > 1349 </li> 1350 <li> 1351 <pre class="smartperf-text fontColor light"> 1352Packets Out/sec:每秒发送的网络数据包数。 1353</pre 1354 > 1355 </li> 1356 </ul> 1357 </div> 1358 1359 <script> 1360 window.onload = () => { 1361 let isDark = getURLParameter('dark'); 1362 let targetId = getURLParameter('targetId'); 1363 let isBack = getURLParameter('isBack'); 1364 if (isDark === 'true') { 1365 document.getElementById('body').setAttribute('style', 'background-color:#272C34;'); 1366 let header = document.getElementsByClassName('fontColor'); 1367 for (let i = 0; i < header.length; i++) { 1368 header[i].style.color = '#fff'; 1369 } 1370 let lightBackGround = document.getElementsByClassName('light'); 1371 for (let i = 0; i < lightBackGround.length; i++) { 1372 lightBackGround[i].style.backgroundColor = '#32373F'; 1373 } 1374 } 1375 function getURLParameter(name) { 1376 return (new URL(document.location)).searchParams.get(name); 1377 } 1378 1379 if ( targetId !== null ) { 1380 let targetElement = document.getElementById(targetId); 1381 targetElement.scrollIntoView({ behavior: 'smooth' }); 1382 } 1383 }; 1384 </script> 1385 </body> 1386</html> 1387