• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html>
2<html>
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5    <title>quickstart_systemtrace</title>
6
7    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
9    <style>
10      code[class*='smartperf-'],
11      pre[class*='smartperf-'] {
12        color: #333333;
13        background: none;
14        font-family: Helvetica;
15        line-height: 1.6;
16        text-align: left;
17        white-space: pre;
18        -moz-tab-size: 9;
19        -o-tab-size: 9;
20        tab-size: 8;
21        -webkit-hyphens: none;
22        -moz-hyphens: none;
23        -ms-hyphens: none;
24        hyphens: none;
25      }
26
27      /* Code blocks */
28      pre[class*='smartperf-'] {
29        padding: 0.9em;
30        overflow: auto;
31        border-radius: 2px;
32        background: #f5f5f4;
33      }
34
35      /* Inline code */
36      :not(pre) > code[class*='smartperf-'] {
37        white-space: normal;
38        background: #fcf8f8;
39        padding: 1px 0.2em;
40        border-radius: 1px 0.3em;
41      }
42
43      .tk.comment,
44      .tk.blockquote {
45        color: #8c918c;
46      }
47
48      .tk.cdata {
49        color: #183898;
50      }
51
52      .tk.doctype,
53      .tk.punctuation,
54      .tk.variable,
55      .tk.macro.property {
56        color: #424242;
57      }
58
59      .tk.operator,
60      .tk.important,
61      .tk.keyword,
62      .tk.rule,
63      .tk.builtin {
64        color: #b71d65;
65      }
66
67      .tk.string,
68      .tk.url,
69      .tk.regex,
70      .tk.attr-value {
71        color: #16338d;
72      }
73
74      .tk.property,
75      .tk.number,
76      .tk.boolean,
77      .tk.entity,
78      .tk.atrule,
79      .tk.constant,
80      .tk.symbol,
81      .tk.command,
82      .tk.code {
83        color: #037aa2;
84      }
85
86      .tk.tag,
87      .tk.selector,
88      .tk.prolog {
89        color: #69ad62;
90      }
91
92      .tk.function,
93      .tk.namespace,
94      .tk.pseudo-element,
95      .tk.class,
96      .tk.class-name,
97      .tk.pseudo-class,
98      .tk.id,
99      .tk.url-reference .tk.variable,
100      .tk.attr-name {
101        color: #775d9d;
102      }
103
104      .tk.entity {
105        cursor: help;
106      }
107
108      .tk.title,
109      .tk.title .tk.punctuation {
110        font-weight: bold;
111        color: #1a3773;
112      }
113
114      .tk.list {
115        color: #f56940;
116      }
117
118      .tk.inserted {
119        background-color: #eaffea;
120        color: #509b2f;
121      }
122
123      .tk.deleted {
124        background-color: #fae1e1;
125        color: #ad2d06;
126      }
127
128      .tk.bold {
129        font-weight: bolder;
130      }
131
132      .tk.italic {
133        font-style: normal;
134      }
135
136      /* JSON */
137      .smartperf-json .tk.property {
138        color: #19358c;
139      }
140
141      .smartperf-markup .tk.tag .tk.punctuation {
142        color: #2c2b2b;
143      }
144
145      /* CSS */
146      code.smartperf-css,
147      .smartperf-css .tk.function {
148        color: #047ca4;
149      }
150
151      /* YAML */
152      .smartperf-yaml .tk.atrule {
153        color: #609b5a;
154      }
155
156      code.smartperf-yaml {
157        color: #153491;
158      }
159
160      /* Ruby */
161      .smartperf-ruby .tk.function {
162        color: #3f3e3e;
163      }
164
165      /* Markdown */
166      .smartperf-markdown .tk.url {
167        color: #6e5298;
168      }
169
170      /* Makefile */
171      .smartperf-makefile .tk.symbol {
172        color: #6c5393;
173      }
174
175      .smartperf-makefile .tk.variable {
176        color: #183488;
177      }
178
179      .smartperf-makefile .tk.builtin {
180        color: #027ba4;
181      }
182
183      /* Bash */
184      .smartperf-bash .tk.keyword {
185        color: #027fa9;
186      }
187
188      /* highlight */
189      pre[dl] {
190        position: relative;
191        padding: 1em 1px 1px 0.9em;
192      }
193
194      pre[dl] .line-highlight-wrapper {
195        position: absolute;
196        top: 1px;
197        left: 1px;
198        background-color: transparent;
199        display: block;
200        width: 99%;
201      }
202
203      pre[dl] .line-highlight {
204        position: absolute;
205        left: 1px;
206        right: 1px;
207        padding: inherit;
208        margin-top: 0.9em;
209        background: hsla(25, 21%, 50%, 0.08);
210        background: linear-gradient(to right, hsla(24, 20%, 50%, 0.1) 70%, hsla(24, 20%, 50%, 0));
211        pointer-events: none;
212        line-height: inherit;
213        white-space: pre;
214      }
215
216      pre[dl] .line-highlight:before,
217      pre[dl] .line-highlight[data-end]:after {
218        content: attr(data-start);
219        position: absolute;
220        text-shadow: none;
221        top: 0.3em;
222        left: 0.7em;
223        min-width: 0.9em;
224        padding: 1px 0.6em;
225        background-color: hsla(24, 20%, 47%, 0.4);
226        color: hsl(20, 11%, 95%);
227        text-align: center;
228        vertical-align: 0.2em;
229        border-radius: 10000px;
230        box-shadow: 1px 2px #fdf6f6;
231      }
232
233      pre[dl] .line-highlight[data-end]:after {
234        content: attr(data-end);
235        top: auto;
236        bottom: 0.5em;
237      }
238
239      html body {
240        line-height: 1.6;
241        font-size: 16px;
242        color: #333333;
243        overflow: initial;
244        background-color: #ffffff;
245        word-wrap: break-word;
246        font-family: Helvetica;
247        box-sizing: border-box;
248      }
249
250      html body > :first-child {
251        margin-top: 0px;
252      }
253
254      html body h1,
255      html body h2,
256      html body h3,
257      html body h4,
258      html body h5,
259      html body h6 {
260        margin-top: 1em;
261        margin-bottom: 16px;
262        color: #000000;
263        line-height: 1.2;
264      }
265
266      html body h1 {
267        font-weight: 300;
268        font-size: 2.25em;
269        padding-bottom: 0.3em;
270      }
271
272      html body h2 {
273        font-weight: 410;
274        font-size: 1.74em;
275        padding-bottom: 0.2em;
276      }
277
278      html body h3 {
279        font-size: 1.6em;
280        font-weight: 501;
281      }
282
283      html body h4 {
284        font-size: 1.26em;
285        font-weight: 601;
286      }
287
288      html body h5 {
289        font-size: 1.2em;
290        font-weight: 601;
291      }
292
293      html body h6 {
294        font-size: 0.9em;
295        font-weight: 601;
296      }
297
298      html body h1,
299      html body h2,
300      html body h3,
301      html body h4,
302      html body h5 {
303        font-weight: 601;
304      }
305
306      html body h5 {
307        font-size: 0.9em;
308      }
309
310      html body h6 {
311        color: #5c5c5c;
312      }
313
314      html body strong {
315        color: #090909;
316      }
317
318      html body del {
319        color: #525252;
320      }
321
322      html body a:not([href]) {
323        color: inherit;
324        text-decoration: none;
325      }
326
327      html body a {
328        color: #0192da;
329        text-decoration: none;
330      }
331
332      html body a:hover {
333        color: #029dea;
334        text-decoration: none;
335      }
336
337      html body img {
338        max-width: 99%;
339      }
340
341      html body > p {
342        margin-top: 1px;
343        margin-bottom: 15px;
344        word-wrap: break-word;
345      }
346
347      html body > ul,
348      html body > ol {
349        margin-bottom: 15px;
350      }
351
352      html body ul,
353      html body ol {
354        padding-left: 1.9em;
355      }
356
357      html body ul.no-list,
358      html body ol.no-list {
359        padding: 0px;
360        list-style-type: none;
361      }
362
363      html body ul ul,
364      html body ul ol,
365      html body ol ol,
366      html body ol ul {
367        margin-top: 1px;
368        margin-bottom: 1px;
369      }
370
371      html body li {
372        margin-bottom: 1px;
373      }
374
375      html body li.task-list-item {
376        list-style: none;
377      }
378
379      html body li > p {
380        margin-top: 1px;
381        margin-bottom: 1px;
382      }
383
384      html body .task-list-item-checkbox {
385        margin: 0 0.3em 0.24em -1.7em;
386        vertical-align: middle;
387      }
388
389      html body .task-list-item-checkbox:hover {
390        cursor: pointer;
391      }
392
393      html body blockquote {
394        padding: 0.1px 15px 0 0.1px;
395        font-size: inherit;
396        color: #5c5c5c;
397        margin: 16px 0.1px 0 0.1px;
398        border-left: 3px solid #cbc9c9;
399        background-color: #e8e6e6;
400      }
401
402      html body blockquote > :first-child {
403        margin-top: 0.2px;
404      }
405
406      html body blockquote > :last-child {
407        margin-bottom: 0.1px;
408      }
409
410      html body hr {
411        height: 5px;
412        background-color: #cbcaca;
413        margin: 32px 0 0.1px 0;
414        border: 0 none;
415      }
416
417      html body table {
418        overflow: auto;
419        border-collapse: collapse;
420        margin: 15px 0.1px 20px 0.1px;
421        border-spacing: 0;
422      }
423
424      html body table th {
425        font-weight: bold;
426        color: #000000;
427      }
428
429      html body table td,
430      html body table th {
431        border: 1px solid #d6d6d6;
432        padding: 2px 14px;
433      }
434
435      html body dl {
436        padding: 0px;
437      }
438
439      html body dl dt {
440        padding: 0px;
441        margin-top: 15px;
442        font-size: 0.9em;
443        font-style: italic;
444        font-weight: bold;
445      }
446
447      html body dl dd {
448        padding: 0px 17px;
449        margin-bottom: 17px;
450      }
451
452      html body code {
453        font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
454        font-size: 0.86em !important;
455        color: #000000;
456        background-color: #f0f0f0;
457        border-radius: 4px;
458        padding: 0.3em 0px;
459      }
460
461      html body code::before,
462      html body code::after {
463        letter-spacing: -0.1em;
464        content: '\00a0';
465      }
466
467      html body pre > code {
468        padding: 1px;
469        margin: 0px;
470        font-size: 0.86em !important;
471        word-break: normal;
472        white-space: pre;
473        background: transparent;
474        border: 0px;
475      }
476
477      html body .highlight {
478        margin-bottom: 17px;
479      }
480
481      html body .highlight pre,
482      html body pre {
483        padding: 0.9em;
484        overflow: auto;
485        font-size: 0.86em !important;
486        line-height: 1.46;
487        border: #d6d6d6;
488        border-radius: 4px;
489      }
490
491      html body .highlight pre {
492        margin-bottom: 0px;
493        word-break: normal;
494      }
495
496      html body pre code,
497      html body pre tt {
498        display: inline;
499        max-width: initial;
500        padding: 1px;
501        margin: 1px;
502        overflow: initial;
503        line-height: inherit;
504        word-wrap: normal;
505        background-color: transparent;
506        border: 1px;
507      }
508
509      html body pre code:before,
510      html body pre tt:before,
511      html body pre code:after,
512      html body pre tt:after {
513        content: normal;
514      }
515
516      html body p,
517      html body blockquote,
518      html body ul,
519      html body ol,
520      html body dl,
521      html body pre {
522        margin-top: 1px;
523        margin-bottom: 17px;
524      }
525
526      html body kbd {
527        color: #000000;
528        border: 3px solid #d6d6d6;
529        border-bottom: 3px solid #c7c7c7;
530        padding: 3px 5px;
531        background-color: #f0f0f0;
532        border-radius: 2px;
533      }
534
535      @media print {
536        html body {
537          background-color: #ffffff;
538        }
539
540        html body h1,
541        html body h2,
542        html body h3,
543        html body h4,
544        html body h5,
545        html body h6 {
546          color: #000000;
547          page-break-after: avoid;
548        }
549
550        html body blockquote {
551          color: #5c5c53;
552        }
553
554        html body pre {
555          page-break-inside: avoid;
556        }
557
558        html body table {
559          display: table;
560        }
561
562        html body img {
563          display: block;
564          max-width: 99%;
565          max-height: 99%;
566        }
567
568        html body pre,
569        html body code {
570          word-wrap: break-word;
571          white-space: pre;
572        }
573      }
574
575      .smartperf-preview {
576        width: 99%;
577        height: 99%;
578        box-sizing: border-box;
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        top: 1px;
662        left: 1px;
663        margin: 1px;
664        padding: 1px;
665        overflow: auto;
666      }
667
668      html body[for='html-export']:not([dpm]) .smartperf-preview {
669        position: relative;
670        top: 1px;
671      }
672
673      @media screen and (min-width: 914px) {
674        html body[for='html-export']:not([dpm]) .smartperf-preview {
675          padding: 2em calc(50% - 458px + 2em);
676        }
677      }
678
679      @media screen and (max-width: 914px) {
680        html body[for='html-export']:not([dpm]) .smartperf-preview {
681          padding: 1.9em;
682        }
683      }
684
685      @media screen and (max-width: 450px) {
686        html body[for='html-export']:not([dpm]) .smartperf-preview {
687          font-size: 15px !important;
688          padding: 1.1em;
689        }
690      }
691
692      @media print {
693        html body[for='html-export']:not([dpm]) #sidebar-toc-btn {
694          display: none;
695        }
696      }
697
698      html body[for='html-export']:not([dpm]) #sidebar-toc-btn {
699        position: fixed;
700        bottom: 9px;
701        left: 9px;
702        font-size: 28px;
703        cursor: pointer;
704        color: inherit;
705        z-index: 99;
706        width: 31px;
707        text-align: center;
708        opacity: 0.5;
709      }
710
711      html body[for='html-export']:not([dpm])[hsst] #sidebar-toc-btn {
712        opacity: 1;
713      }
714
715      html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc {
716        position: fixed;
717        top: 1px;
718        left: 1px;
719        width: 300px;
720        height: 99%;
721        padding: 32px 0 48px 0;
722        font-size: 14px;
723        box-shadow: 1px 1px 4px rgba(150, 150, 150, 0.33);
724        box-sizing: border-box;
725        overflow: auto;
726        background-color: inherit;
727      }
728
729      html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc::-webkit-scrollbar {
730        width: 9px;
731      }
732
733      html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc::-webkit-scrollbar-track {
734        border-radius: 11px;
735        background-color: transparent;
736      }
737
738      html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc::-webkit-scrollbar-thumb {
739        border-radius: 6px;
740        background-color: rgba(150, 150, 150, 0.66);
741        border: 3px solid rgba(150, 150, 150, 0.66);
742        background-clip: content-box;
743      }
744
745      html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc a {
746        text-decoration: none;
747      }
748
749      html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc ul {
750        padding: 1px 1.7em;
751        margin-top: 0.9em;
752      }
753
754      html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc li {
755        margin-bottom: 0.8em;
756      }
757
758      html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc ul {
759        list-style-type: none;
760      }
761
762      html body[for='html-export']:not([dpm])[hsst] .smartperf-preview {
763        left: 301px;
764        width: calc(100% - 300px);
765        padding: 2em calc(50% - 457px - 150px);
766        margin: 1px;
767        box-sizing: border-box;
768      }
769
770      @media screen and (max-width: 1274px) {
771        html body[for='html-export']:not([dpm])[hsst] .smartperf-preview {
772          padding: 1.9em;
773        }
774      }
775
776      @media screen and (max-width: 450px) {
777        html body[for='html-export']:not([dpm])[hsst] .smartperf-preview {
778          width: 99%;
779        }
780      }
781
782      html body[for='html-export']:not([dpm]):not([hsst]) .smartperf-preview {
783        left: 50%;
784        transform: translateX(-50%);
785      }
786
787      html body[for='html-export']:not([dpm]):not([hsst]) .md-sidebar-toc {
788        display: none;
789      }
790    </style>
791  </head>
792  <body for="html-export" id="body">
793    <div class="smartperf smartperf-preview">
794      <h1 class="mume-header fontColor">web端加载trace说明</h1>
795
796      <p class="fontColor">从web端查看trace文件,进行性能检测的分析。</p>
797      <h2 class="mume-header fontColor">文件加载入口</h2>
798
799      <p class="fontColor">
800        将抓取的trace导入查看。<br />
801        <img src="../figures/Web/opentrace.jpg" alt="GitHub Logo" />
802      </p>
803      <p class="fontColor">说明:</p>
804      <ul class="fontColor">
805        <li>Open trace file:导入离线trace文件入口。</li>
806        <li>Record new trace:抓取新的trace文件入口。</li>
807      </ul>
808      <h2 class="mume-header fontColor">导入trace文件后显示页面</h2>
809
810      <p class="fontColor">
811        <img src="../figures/Web/trace.jpg" alt="GitHub Logo" /><br />
812        说明:
813      </p>
814      <ul class="fontColor">
815        <li>
816          操作说明:在当前页面可以通过键盘上的wasd四个键位操纵当前的时间轴进行缩放,w为放大,s为缩小,a为左移,d为右移。
817        </li>
818      </ul>
819      <h2 class="mume-header fontColor">trace功能介绍</h2>
820
821      <p class="fontColor">
822        trace模块从上往下主要展示时间轴、cpu使用率、cpu使用情况、进程间通讯数据的方法调用情况、进程、线程和方法调用情况。
823      </p>
824      <h3 class="mume-header fontColor">时间轴和cpu使用率</h3>
825
826      <p class="fontColor">
827        <img src="../figures/Web/time.jpg" alt="GitHub Logo" /><br />
828        最上方带刻度的为时间轴,主要展示当前抓取数据的总时长和时间刻度的分布情况,如上图所示,左下角展示总时长。<br />
829        中间区域展示的是抓取数据时间段内的cpu使用率,颜色越深代表cpu使用率越高,颜色越浅代表cpu使用率越低。<br />
830        <img src="../figures/Web/highlit.jpg" alt="GitHub Logo" /><br />
831        在白色背景时间轴区域内可以点击后拖拽鼠标,可以对从鼠标按下到拖拽完成鼠标松开的区域内的数据进行筛选,高亮显示的部分为当前所选区域,如上图所示。
832      </p>
833      <h3 class="mume-header fontColor">cpu使用情况</h3>
834
835      <p class="fontColor"><img src="../figures/Web/cpu.jpg" alt="GitHub Logo" /></p>
836      <p class="fontColor">
837        如上图所示,当前抓取数据有4个cpu工作,前四组数据对应的是当前调用cpu的线程和对应的进程情况,以颜色作为区分。后四组数据则为cpu的使用频率信息。鼠标移动到相应的线程上还会将当前选中的进程信息全部置为高亮,其他的进程会置灰,如下图所示。<br />
838        <img src="../figures/Web/gray.jpg" alt="GitHub Logo" />
839      </p>
840      <h4 class="mume-header fontColor">cpu使用情况的框选功能</h4>
841
842      <p class="fontColor">
843        可以对cpu的数据进行框选,框选后在最下方的弹出层中会展示框选数据的统计表格,总共有七个tab页。<br />
844        CPU by
845        thread的Tab页,主要显示了在框选时间区间内的进程名、进程号、线程名、线程号、总运行时长、平均运行时长和调度次数信息。<br />
846        <img src="../figures/Web/cpubythread.jpg" alt="GitHub Logo" /><br />
847        CPU by process的Tab页,主要显示了在框选时间区间内的进程名、进程号、总运行时长、平均运行时长和调度次数信息。<br />
848        <img src="../figures/Web/cpubyprocess.jpg" alt="GitHub Logo" /><br />
849        CPU Usage的Tab页,主要显示了在框选时间区间内,该频率时间占比前三的信息。<br />
850        <img src="../figures/Web/cpusage.jpg" alt="GitHub Logo" /><br />
851        States
852        List的Tab页,按状态&gt;进程&gt;线程的维度去统计,需要呈现该状态的线程名、该状态次数、该状态下时长、最大最小时长、平均时长、最大时长。<br />
853        <img src="../figures/Web/StatesList.jpg" alt="GitHub Logo" /><br />
854        Switches List的Tab页,按照进程&gt;线程&gt;状态,统计对应状态下的次数。<br />
855        <img src="../figures/Web/Switchlist.jpg" alt="GitHub Logo" /><br />
856        Thread
857        States的Tab页,按进程&gt;线程&gt;状态的维度去统计,需要呈现该状态的线程名、进入该状态次数、该状态下时长、最小时长、平均时长、最大时长。<br />
858        <img src="../figures/Web/threadstates.jpg" alt="GitHub Logo" /><br />
859        Thread Switches的Tab页,按照状态&gt;进程&gt;线程,统计对应状态下的次数。<br />
860        <img src="../figures/Web/threadswitches.jpg" alt="GitHub Logo" /><br />
861        States List、Switches List、Thread States、Thread
862        Switches的4个Tab页,点击移动到某一行,鼠标会变成一个小手的标志,点击一下,就会进入辅助信息界面,会将选中行的辅助信息展示出来,包括开始时间、进程、线程、线程状态、对应的CPU、优先级等信息如下图。<br />
863        <img src="../figures/Web/details.jpg" alt="GitHub Logo" />
864      </p>
865      <h4 class="mume-header fontColor">cpu使用情况的单选功能</h4>
866
867      <p class="fontColor">
868        单选CPU使用情况数据会在选中的色块外层加上深色边框,能够突出当前选中色块,弹出层中会展示当前CPU上的进程名,线程名,开始时间和运行时长,线程运行状态等信息。<br />
869        <img src="../figures/Web/cpuclick.jpg" alt="GitHub Logo" />
870      </p>
871      <h3 class="mume-header fontColor">进程、线程和方法数据</h3>
872
873      <p class="fontColor">
874        下图是进程数据,左边部分展示进程名称和id,右边显示线程切换关系,线程的调用方法,进程间内存信息等。<br />
875        <img src="../figures/Web/process.jpg" alt="GitHub Logo" /><br />
876        点击进程名前面向下箭头可以展开对应的线程进行查看,展开后的线程如下图,如果存在堆内存占用情况,就会显示在第一行,如果出现两个名字和id一样的线程,则第一个为线程的使用情况,第二为线程内的方法栈调用情况。<br />
877        <img src="../figures/Web/threadinfo.jpg" alt="GitHub Logo" />
878      </p>
879      <h4 class="mume-header fontColor">进程、线程和方法数据的框选功能</h4>
880
881      <p class="fontColor">
882        可以对线程的数据进行框选,框选后在最下方的弹出层中会展示框选数据的统计表格,包含线程运行状态,线程调用栈的统计情况。当框选的数据中同时存在线程运行状态和线程调用栈数据,下方的弹出层中就会出现多个tab选项,可以进行切换。
883      </p>
884      <p class="fontColor">
885        下图是线程运行状态框选统计信息,包括进程名、进程号、线程名、线程号、线程状态、状态持续时间、平均持续时间、该线程状态发生的次数。<br />
886        <img src="../figures/Web/threadselect.jpg" alt="GitHub Logo" />
887      </p>
888      <p class="fontColor">
889        下图是线程调用栈框选统计信息,包括方法名、持续时间、平均持续时间、调用的次数。<br />
890        <img src="../figures/Web/callstackselect.jpg" alt="GitHub Logo" />
891      </p>
892      <h4 class="mume-header fontColor">进程、线程和方法数据的单选功能</h4>
893
894      <p class="fontColor">
895        单选线程的state数据时,会展示当前选中线程的状态数据,开始时间和持续时长,线程状态,所在进程名称。<br />
896        <img src="../figures/Web/threadclick.jpg" alt="GitHub Logo" /><br />
897        单选调用栈数据,单击方法会在选中的方法外层加上黑色边框,能够突出当前选中的方法,弹出层中会展示当前方法的名称、开始时间和运行时长信息。<br />
898        <img src="../figures/Web/callstackclick.jpg" alt="GitHub Logo" />
899      </p>
900      <h4 class="mume-header fontColor">线程的跳转功能</h4>
901
902      <p class="fontColor">
903        点击画红框处的带箭头的标志,会从CPU的线程概览视图跳转到线程的详情视图,同时从线程的详情视图也能跳转到CPU的线程概览视图。<br />
904        <img src="../figures/Web/jumpthread.jpg" alt="GitHub Logo" />
905      </p>
906      <h3 class="mume-header fontColor">trace的其他功能</h3>
907
908      <h4 class="mume-header fontColor">小旗标志的功能</h4>
909
910      <p class="fontColor">
911        将选中数据的时间点通过小旗的方式在时间轴上展示,直观的展示选中数据的时间。<br />
912        <img src="../figures/Web/flag.jpg" alt="GitHub Logo" /><br />
913        在下方输入空输入文字:我是trace,可以给小旗打备注。<br />
914        <img src="../figures/Web/flaginput.jpg" alt="GitHub Logo" />
915      </p>
916      <h4 class="mume-header fontColor">收藏置顶功能</h4>
917
918      <p class="fontColor">
919        鼠标移动到某个页签,会出现星形的标志,点击该星形,可以将该行收藏置顶。<br />
920        <img src="../figures/Web/stars.jpg" alt="GitHub Logo" />
921      </p>
922      <h4 class="mume-header fontColor">勾选功能</h4>
923
924      <p class="fontColor">
925        框选某一区域,该区域左边会出现CheckBox的复选框,选中的区域的复选框会出现打勾的状态,可以取消勾选,也可以重新勾选。<br />
926        <img src="../figures/Web/checkbox.jpg" alt="GitHub Logo" />
927      </p>
928      <h4 class="mume-header fontColor">搜索功能</h4>
929
930      <p class="fontColor">
931        在搜索框中,可以输入线程,线程号等搜索自己想要的信息,搜索完成会高亮显示。<br />
932        <img src="../figures/Web/search.jpg" alt="GitHub Logo" /><br />
933        在搜索框中输入调用栈的方法名,会跳转到对应的调用栈。<br />
934        <img src="../figures/Web/searchcallstack.jpg" alt="GitHub Logo" />
935      </p>
936      <h4 class="mume-header fontColor">M键测量功能</h4>
937
938      <p class="fontColor">
939        放大trace中的色块,选中色块,键盘按下M,会出现像尺子一样的形状。<br />
940        <img src="../figures/Web/M.jpg" alt="GitHub Logo" />
941      </p>
942    </div>
943
944    <script>
945      window.onload = () => {
946        let isDark = window.location.search;
947        if (isDark.indexOf('?') != -1) {
948          isDark = isDark.substr(1, isDark.length - 1);
949        }
950        if (isDark == 'true') {
951          document.getElementById('body').setAttribute('style', 'background-color:#272C34;');
952          let header = document.getElementsByClassName('fontColor');
953          for (let i = 0; i < header.length; i++) {
954            header[i].style.color = '#fff';
955          }
956          let lightBackGround = document.getElementsByClassName('light');
957          for (let i = 0; i < lightBackGround.length; i++) {
958            lightBackGround[i].style.backgroundColor = '#32373F';
959          }
960        }
961      };
962    </script>
963  </body>
964</html>
965