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