• 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_parsing_ability</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        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: 68vw;
576        height: 99%;
577        box-sizing: border-box;
578        overflow: hidden;
579        background-color: #fff;
580      }
581
582      .smartperf-preview .pagebreak,
583      .smartperf-preview .newpage {
584        page-break-before: always;
585      }
586
587      .smartperf-preview pre.line-numbers {
588        position: relative;
589        padding-left: 3.7em;
590        counter-reset: linenumber;
591      }
592
593      .smartperf-preview pre.line-numbers > code {
594        position: relative;
595      }
596
597      .smartperf-preview pre.line-numbers .line-numbers-rows {
598        position: absolute;
599        pointer-events: none;
600        top: 0.9em;
601        font-size: 99%;
602        left: 1px;
603        width: 3em;
604        letter-spacing: -1px;
605        border-right: 1px solid #999;
606        -webkit-user-select: none;
607        -moz-user-select: none;
608        -ms-user-select: none;
609        user-select: none;
610      }
611
612      .smartperf-preview pre.line-numbers .line-numbers-rows > span {
613        pointer-events: none;
614        display: block;
615        counter-increment: linenumber;
616      }
617
618      .smartperf-preview pre.line-numbers .line-numbers-rows > span:before {
619        content: counter(linenumber);
620        color: #999;
621        display: block;
622        padding-right: 0.79em;
623        text-align: right;
624      }
625
626      .smartperf-preview .mathjax-exps .MathJax_Display {
627        text-align: center !important;
628      }
629
630      .smartperf-preview:not([for='preview']) .code-chunk .btn-group {
631        display: none;
632      }
633
634      .smartperf-preview:not([for='preview']) .code-chunk .status {
635        display: none;
636      }
637
638      .smartperf-preview:not([for='preview']) .code-chunk .output-div {
639        margin-bottom: 16px;
640      }
641
642      .scrollbar-style::-webkit-scrollbar {
643        width: 8px;
644      }
645
646      .scrollbar-style::-webkit-scrollbar-track {
647        border-radius: 9px;
648        background-color: transparent;
649      }
650
651      .scrollbar-style::-webkit-scrollbar-thumb {
652        border-radius: 6px;
653        background-color: rgba(150, 150, 150, 1);
654        border: 4px solid rgba(150, 150, 150, 1);
655        background-clip: content-box;
656      }
657
658      html body[for='html-export']:not([dpm]) {
659        position: relative;
660        width: 99%;
661        height: 99%;;
662        overflow: auto;
663      }
664
665      html body[for='html-export']:not([dpm]) .smartperf-preview {
666        position: relative;
667        top: 1px;
668      }
669
670      @media screen and (min-width: 914px) {
671        html body[for='html-export']:not([dpm]) .smartperf-preview {
672          padding: 2em;
673        }
674      }
675
676      @media screen and (max-width: 914px) {
677        html body[for='html-export']:not([dpm]) .smartperf-preview {
678          padding: 1.9em;
679        }
680      }
681
682      @media screen and (max-width: 450px) {
683        html body[for='html-export']:not([dpm]) .smartperf-preview {
684          font-size: 15px !important;
685          padding: 1.1em;
686        }
687      }
688
689      @media print {
690        html body[for='html-export']:not([dpm]) #sidebar-toc-btn {
691          display: none;
692        }
693      }
694
695      html body[for='html-export']:not([dpm]) #sidebar-toc-btn {
696        position: fixed;
697        bottom: 9px;
698        left: 9px;
699        font-size: 28px;
700        cursor: pointer;
701        color: inherit;
702        z-index: 99;
703        width: 31px;
704        text-align: center;
705        opacity: 0.5;
706      }
707
708      html body[for='html-export']:not([dpm])[hsst] #sidebar-toc-btn {
709        opacity: 1;
710      }
711
712      html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc {
713        position: fixed;
714        top: 1px;
715        left: 1px;
716        width: 300px;
717        height: 99%;
718        padding: 32px 0 48px 0;
719        font-size: 14px;
720        box-shadow: 1px 1px 4px rgba(150, 150, 150, 0.33);
721        box-sizing: border-box;
722        overflow: auto;
723        background-color: inherit;
724      }
725
726      html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc::-webkit-scrollbar {
727        width: 9px;
728      }
729
730      html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc::-webkit-scrollbar-track {
731        border-radius: 11px;
732        background-color: transparent;
733      }
734
735      html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc::-webkit-scrollbar-thumb {
736        border-radius: 6px;
737        background-color: rgba(150, 150, 150, 0.66);
738        border: 3px solid rgba(150, 150, 150, 0.66);
739        background-clip: content-box;
740      }
741
742      html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc a {
743        text-decoration: none;
744      }
745
746      html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc ul {
747        padding: 1px 1.7em;
748        margin-top: 0.9em;
749      }
750
751      html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc li {
752        margin-bottom: 0.8em;
753      }
754
755      html body[for='html-export']:not([dpm])[hsst] .md-sidebar-toc ul {
756        list-style-type: none;
757      }
758
759      html body[for='html-export']:not([dpm])[hsst] .smartperf-preview {
760        left: 301px;
761        width: calc(100% - 300px);
762        padding: 2em calc(50% - 457px - 150px);
763        margin: 1px;
764        box-sizing: border-box;
765      }
766
767      @media screen and (max-width: 1274px) {
768        html body[for='html-export']:not([dpm])[hsst] .smartperf-preview {
769          padding: 1.9em;
770        }
771      }
772
773      @media screen and (max-width: 450px) {
774        html body[for='html-export']:not([dpm])[hsst] .smartperf-preview {
775          width: 99%;
776        }
777      }
778
779      html body[for='html-export']:not([dpm]):not([hsst]) .md-sidebar-toc {
780        display: none;
781      }
782    </style>
783  </head>
784  <body for="html-export" id="body" style="margin:0">
785    <div class="smartperf smartperf-preview" style="min-height: 99vh;">
786      <h1 class="mume-header fontColor">Trace解析能力增强</h1>
787
788      <p class="fontColor">Trace解析能力增强主要是提高Trace的解析能力。</p>
789      <h3 class="mume-header fontColor" id="header-index-1">焦点问题trace切割,选择焦点trace,聚焦问题发生时间范围,单独打开</h3>
790
791      <p class="fontColor">
792        焦点问题切割是将现有的trace加载到界面时,对指定时间进行框选,截取框选时间范围内的trace数据通过跳转的方式去打开新的trace界面,新界面的trace数据就是按照这段时间范围去切割的。如下图框选一段时间范围,点击右上方的小剪刀图标对框选时间范围数据进行剪切。
793        <br />
794        <img src="../figures/parsingability/cuttrace_bytime.jpg" alt="GitHub Logo" />
795      </p>
796      <h3 class="mume-header fontColor" id="header-index-2">超大trace分段打开,超大trace按照固定大小切割,分段打开显示</h3>
797
798      <p class="fontColor">
799        超大trace分段打开是对现有配置抓取的同一种时钟源数据源的。也就是配置命令下发的抓取有效。Htrace数据按照端侧切割的大小分成多个文件,并将不能切割的hiperf、ebpf、arkts的数据单独存储。IDE通过将这几种源文件数据存储在IndexedDB,并调用trace
800        streamer去进行切割数据,并在IDE侧过滤筛选出切割的数据进行展示。
801      </p>
802      <h4 class="mume-header fontColor">超大trace浏览器用户数据目录配置说明</h4>
803
804      <p class="fontColor">
805        由于大文件切割的数据是保存在浏览器的IndexedDb中,默认存储在系统盘,所以需要修改用户目录数据存放位置。
806      </p>
807      <h5 class="mume-header fontColor">
808        找到浏览器的exe执行文件位置(或者浏览器exe的快捷方式位置), 在cmd窗口执行以下命令(edge浏览器)
809      </h5>
810
811      <pre class="smartperf-text fontColor light">
812D:\deskTop\msedge.exe.lnk --user-data-dir=D:\Edgedata
813	D:\deskTop\msedge.exe.lnk    浏览器的exe执行文件位置(或者浏览器exe的快捷方式位置)
814	--user-data-dir=D:\Edgedata   指定用户目录数据位置,本地除系统盘外的位置都可以,内存尽量大一点
815</pre
816      >
817      <h5 class="mume-header fontColor">浏览器exe或者exe快捷方式目录和名称不能有带空格</h5>
818
819      <pre class="smartperf-text fontColor light">
820错误:D:\desk Top\Microsoft Edge.exe.lnk --user-data-dir=D:\Edgedata
821正确:D:\deskTop\MicrosoftEdge.exe.lnk --user-data-dir=D:\Edgedata
822</pre
823      >
824      <h5 class="mume-header fontColor">配置完成后, 查看【用户配置路径】是否是配置的路径</h5>
825
826      <pre class="smartperf-text fontColor light">
827edge浏览器:     edge://version/
828</pre
829      >
830      <h4 class="mume-header fontColor">超大trace抓取配置说明</h4>
831
832      <p class="fontColor"><img src="../figures/parsingability/bigtracerecord.jpg" alt="GitHub Logo" /></p>
833      <ul class="fontColor">
834        <li>
835          <pre class="smartperf-text fontColor light">
836Long Trace Mode: 超大trace抓取模式。
837</pre
838          >
839        </li>
840        <li>
841          <pre class="smartperf-text fontColor light">
842Single file max size: trace文件分割的大小。
843</pre
844          >
845        </li>
846      </ul>
847      <h4 class="mume-header fontColor">本地导入超大trace</h4>
848
849      <p class="fontColor">
850        本地导入超大trace是导入文件夹,将该文件夹中所有文件导入。如下图从Open long trace file入口导入。
851        <br />
852        <img src="../figures/parsingability/longtraceload.jpg" alt="GitHub Logo" />
853        <br />
854        本地导入以后,点击右上方的切页图标可以切页。
855        <br />
856        <img src="../figures/parsingability/longtraceswitch.jpg" alt="GitHub Logo" />
857      </p>
858      <h3 class="mume-header fontColor" id="header-index-3">web端支持已打开的trace文件转换成systrace,并可下载</h3>
859
860      <p class="fontColor">
861        已打开的trace界面,增加convert to systrace按钮,支持将htrace和row trace转为systrace。
862        <br />
863        <img src="../figures/parsingability/traceconvert.jpg" alt="GitHub Logo" />
864      </p>
865      <h3 class="mume-header fontColor" id="header-index-4">
866        tracestreamer离线执行sql和metrics语句,对标trace_processor_shell –q和—run-metrics
867      </h3>
868
869      <p class="fontColor">
870        trace_streamer_shell
871        –q可以直接将sql查询结果显示在命令行里,如下图bytrace.ftrace是需要解析的文件,a.txt是sql语句。
872        <br />
873        <img src="../figures/parsingability/tracestreamer_q.jpg" alt="GitHub Logo" />
874        <br />
875        trace_streamer_shell
876        –m可以直接将metric接口的查询结果显示在命令行里,如下图bytrace.ftrace是需要解析的文件,trace_stats是metric接口名。
877        <br />
878        <img src="../figures/parsingability/tsmetric.jpg" alt="GitHub Logo" />
879      </p>
880
881      <h3 class="mume-header fontColor" id="header-index-5">
882        Hangs抓取和展示说明
883      </h3>
884      <p class="fontColor">
885        挂起(hang)是离散用户交互中的明显延迟,并且它几乎总是主线程上长时间运行工作的结果。
886        仅当主线程在大约 50 毫秒到 100 毫秒或更长时间内无响应时,离散交互延迟才会开始变得明显。
887      </p>
888      <h4 class="mume-header fontColor">Hangs的抓取</h4>
889      <h4 class="mume-header fontColor">Hangs抓取配置参数</h4>
890      <p class="fontColor">
891        进入Probes config页面,打开Record mode开关,勾选notification可以抓取Hangs数据(此选项为默认勾选)。
892      </p>
893      <br />
894      <img src="../figures/parsingability/hangsrecord.jpg" alt="GitHub Logo" />
895      <p class="fontColor">
896        解析时需要打开Flags页面的Hangs Detection开关(Disabled切换为Enabled)。
897      </p>
898      <br />
899      <img src="../figures/parsingability/hangsdetection.jpg" alt="GitHub Logo" />
900      <h4 class="mume-header fontColor">Hangs展示说明</h4>
901      <p class="fontColor">
902        将抓取的trace文件导入到smartperf工具中,查看挂起的情况。
903      </p>
904      <h4 class="mume-header fontColor">泳道图展示</h4>
905      <img src="../figures/parsingability/hangstrace.jpg" alt="GitHub Logo" />
906      <h4 class="mume-header fontColor">类型说明</h4>
907      <img src="../figures/parsingability/hangsttype.jpg" alt="GitHub Logo" />
908      <p class="fontColor">
909        点击Hangs Detection开关下的选项可以选择展示的不同类型。
910      </p>
911      <p class="fontColor">
912        根据duration大小将hang划分为4个type,即Instant、Circumstantial、Micro、Severe。4个type分别对应时长为
913        33ms&lt;d&lt;100ms、100ms&le;d&lt;250ms、250ms&le;d&lt;500ms、500ms&le;d。
914      </p>
915      <p class="fontColor">
916        颜色按type由浅及深:Instant蓝色、Circumstantial黄色、Micro橙色、Severe红色。
917      </p>
918      <p class="fontColor">
919        选择不同类型展示出的泳道会不一样: 选择Instant会显示Instant、Circumstantial、Micro、Severe,如图一;
920        选择Circumstantial则显示Circumstantial、Micro、Severe,如图二,以此类推。
921      </p>
922      <img src="../figures/parsingability/Instant.jpg" alt="GitHub Logo" />
923      <p class="fontColor">
924        图一
925      </p>
926      <img src="../figures/parsingability/Circumstantial.jpg" alt="GitHub Logo" />
927      <p class="fontColor">
928        图二
929      </p>
930      <h4 class="mume-header fontColor">Hangs泳道图的点选功能</h4>
931      <p class="fontColor">
932        可以对hangs的各个slice进行点选,点选后在最下方的弹出层中会展示点选数据的统计的tab页。点击Hang type右侧蓝色箭头,会跳转到该hang对应的trace点。
933      </p>
934      <img src="../figures/parsingability/hangdetails.jpg" alt="GitHub Logo" />
935      <br />
936      <img src="../figures/parsingability/hangname.jpg" alt="GitHub Logo" />
937      <p class="fontColor">
938        Trace点的name依次对应tab页的Sender tid、Send time、Expect handle time、Task name/ID、Prio、Sender。
939      </p>
940      <ul class="fontColor">
941        <li>
942          <pre class="smartperf-text fontColor light">
943StartTime(Relative):开始时间(相对时间)。
944</pre>
945        </li>
946        <li>
947          <pre class="smartperf-text fontColor light">
948StartTime(Absolute):开始时间(绝对时间)。
949</pre>
950        </li>
951        <li>
952          <pre class="smartperf-text fontColor light">
953Duration:持续时间。
954</pre>
955        </li>
956        <li>
957          <pre class="smartperf-text fontColor light">
958Hang Type:挂起类型。
959</pre>
960        </li>
961        <li>
962          <pre class="smartperf-text fontColor light">
963Sender tid:发送event的线程ID。
964</pre>
965        </li>
966        <li>
967          <pre class="smartperf-text fontColor light">
968Send time:事件发送时间。
969</pre>
970        </li>
971        <li>
972          <pre class="smartperf-text fontColor light">
973Expect handle time:期望事件开始时间。
974</pre>
975        </li>
976        <li>
977          <pre class="smartperf-text fontColor light">
978Task name/Id:事件名/事件ID。
979</pre>
980        </li>
981        <li>
982          <pre class="smartperf-text fontColor light">
983Prio:优先级。
984</pre>
985        </li>
986        <li>
987          <pre class="smartperf-text fontColor light">
988Sender:发送者。
989</pre>
990        </li>
991      </ul>
992      <h4 class="mume-header fontColor">Hangs泳道图的框选功能</h4>
993      <p class="fontColor">
994        框选Hangs的泳道图,展示Hangs的tab页,右侧第一个下拉框可以选择类型,也能根据process ,sender去搜索。
995      </p>
996      <img src="../figures/parsingability/hangstab.jpg" alt="GitHub Logo" />
997      <ul class="fontColor">
998        <li>
999          <pre class="smartperf-text fontColor light">
1000StartTime:开始时间。
1001</pre>
1002        </li>
1003        <li>
1004          <pre class="smartperf-text fontColor light">
1005Duration:持续时间。
1006</pre>
1007        </li>
1008        <li>
1009          <pre class="smartperf-text fontColor light">
1010Hang Type:挂起类型。
1011</pre>
1012        </li>
1013        <li>
1014          <pre class="smartperf-text fontColor light">
1015Process:进程名。
1016</pre>
1017        </li>
1018        <li>
1019          <pre class="smartperf-text fontColor light">
1020Sender tid:发送event的线程ID。
1021</pre>
1022        </li>
1023        <li>
1024          <pre class="smartperf-text fontColor light">
1025Send time:事件发送时间。
1026</pre>
1027        </li>
1028        <li>
1029          <pre class="smartperf-text fontColor light">
1030Expect handle time:期望事件开始时间。
1031</pre>
1032        </li>
1033        <li>
1034          <pre class="smartperf-text fontColor light">
1035Task name/Id:事件名/事件ID。
1036</pre>
1037        </li>
1038        <li>
1039          <pre class="smartperf-text fontColor light">
1040Prio:优先级。
1041</pre>
1042        </li>
1043        <li>
1044          <pre class="smartperf-text fontColor light">
1045Sender:发送者。
1046</pre>
1047        </li>
1048      </ul>
1049      <p class="fontColor">
1050        框选Hangs的泳道图,展示Summary的tab页。
1051      </p>
1052      <img src="../figures/parsingability/Summary.jpg" alt="GitHub Logo" />
1053      <ul class="fontColor">
1054        <li>
1055          <pre class="smartperf-text fontColor light">
1056Type/Process/Hang:根据类型显示挂起情况。
1057</pre>
1058        </li>
1059        <li>
1060          <pre class="smartperf-text fontColor light">
1061Count:各类型的数量。
1062</pre>
1063        </li>
1064      </ul>
1065      <h4 class="mume-header fontColor">Hangs归一化泳道</h4>
1066      <p class="fontColor">
1067        为了方便查看hangs数据,对不同进程下的hangs泳道进行了归一化处理
1068      </p>
1069      <img src="../figures/parsingability/normalization.jpg" alt="GitHub Logo" />
1070    </div>
1071
1072    <script>
1073      window.onload = () => {
1074        let isDark = getURLParameter('dark');
1075        let targetId = getURLParameter('targetId');
1076        let isBack = getURLParameter('isBack');
1077        if (isDark === 'true') {
1078          document.getElementById('body').setAttribute('style', 'background-color:#272C34;');
1079          let header = document.getElementsByClassName('fontColor');
1080          for (let i = 0; i < header.length; i++) {
1081            header[i].style.color = '#fff';
1082          }
1083          let lightBackGround = document.getElementsByClassName('light');
1084          for (let i = 0; i < lightBackGround.length; i++) {
1085            lightBackGround[i].style.backgroundColor = '#32373F';
1086          }
1087        }
1088        function getURLParameter(name) {
1089          return (new URL(document.location)).searchParams.get(name);
1090        }
1091
1092        if ( targetId !== null ) {
1093          let targetElement = document.getElementById(targetId);
1094          targetElement.scrollIntoView({ behavior: 'smooth' });
1095        }
1096      };
1097    </script>
1098  </body>
1099</html>
1100