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