• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html>
2<html>
3<head>
4    <title>Sql分析和Metrics说明</title>
5    <meta charset="utf-8">
6    <meta name="viewport" content="width=device-width, initial-scale=1.0">
7    <style>
8        code[class*="font-"],
9        pre[class*="font-"] {
10            color: #333333;
11            background: none;
12            font-family: Helvetica;
13            line-height: 1.6;
14            text-align: left;
15            white-space: pre;
16            -moz-tab-size: 9;
17            -o-tab-size: 9;
18            tab-size: 8;
19        }
20
21        /* Code blocks */
22        pre[class*="font-"] {
23            border-radius: 3px;
24            background: #fcf8f8;
25            padding: 1px .8em;
26            overflow: auto;
27        }
28
29        /* Inline code */
30        :not(pre) > code[class*="font-"] {
31            white-space: normal;
32            background: #fcf8f8;
33            padding: 1px .2em;
34            border-radius: 1px .3em;
35        }
36
37        .nothing.cpps,
38        .nothing.qutee {
39            color: #8c918c;
40        }
41
42        .nothing.cdata {
43            color: #183898;
44        }
45
46        .nothing.doctype,
47        .nothing.punctuation,
48        .nothing.variable,
49        .nothing.macro.property {
50            color: #424242;
51        }
52
53        .nothing.operator,
54        .nothing.important,
55        .nothing.keyword,
56        .nothing.rule,
57        .nothing.builtin {
58            color: #b71d65;
59        }
60
61        .nothing.string,
62        .nothing.url,
63        .nothing.regex,
64        .nothing.attr-value {
65            color: #16338d;
66        }
67
68        .nothing.property,
69        .nothing.number,
70        .nothing.boolean,
71        .nothing.entity,
72        .nothing.atrule,
73        .nothing.constant,
74        .nothing.symbol,
75        .nothing.command,
76        .nothing.code {
77            color: #037aa2;
78        }
79
80        .nothing.tag,
81        .nothing.selector,
82        .nothing.prolog {
83            color: #69ad62;
84        }
85
86        .nothing.function,
87        .nothing.namespace,
88        .nothing.pseudo-element,
89        .nothing.class,
90        .nothing.class-name,
91        .nothing.pseudo-class,
92        .nothing.id,
93        .nothing.url-reference .nothing.variable,
94        .nothing.attr-name {
95            color: #775d9d;
96        }
97
98        .nothing.entity {
99            cursor: help;
100        }
101
102        .nothing.title,
103        .nothing.title .nothing.punctuation {
104            font-weight: bolder;
105            color: #1a3773;
106        }
107
108        .nothing.list {
109            color: #f56940;
110        }
111
112        .nothing.inserted {
113            background-color: #efffef;
114            color: #509b2f;
115        }
116
117        .nothing.deleted {
118            background-color: #fae1e1;
119            color: #ad2d06;
120        }
121
122        .nothing.bold {
123            font-weight: bolder;
124        }
125
126        .nothing.italic {
127            font-style: normal;
128        }
129
130
131        /* JSON */
132        .font-json .nothing.property {
133            color: #19358c;
134        }
135
136        .font-markup .nothing.tag .nothing.punctuation {
137            color: #2c2b2b;
138        }
139
140        /* CSS */
141        code.font-css,
142        .font-css .nothing.function {
143            color: #047ca4;
144        }
145
146        /* YAML */
147        .font-yaml .nothing.atrule {
148            color: #609b5a;
149        }
150
151        code.font-yaml {
152            color: #153491;
153        }
154
155        /* Ruby */
156        .font-ruby .nothing.function {
157            color: #3f3e3e;
158        }
159
160        /* Markdown */
161        .font-markdown .nothing.url {
162            color: #6e5298;
163        }
164
165        /* Makefile */
166        .font-makefile .nothing.symbol {
167            color: #6c5393;
168        }
169
170        .font-makefile .nothing.variable {
171            color: #183488;
172        }
173
174        .font-makefile .nothing.builtin {
175            color: #027ba4;
176        }
177
178        /* Bash */
179        .font-bash .nothing.keyword {
180            color: #027fa9;
181        }
182
183        /* highlight */
184        pre[ddline] {
185            position: relative;
186            padding: 1em 1px 1px .9em;
187        }
188
189
190        pre[ddline] .line-highlight-wrapper {
191            position: absolute;
192            left: 1px;
193            display: block;
194            top: 1px;
195            width: 99%;
196            background-color: transparent;
197        }
198
199        pre[ddline] .line-highlight:before,
200        pre[ddline] .line-highlight[data-end]:after {
201            content: attr(data-start);
202            position: absolute;
203            text-shadow: none;
204            top: .3em;
205            left: .7em;
206            min-width: .9em;
207            padding: 1px .6em;
208            background-color: hsla(24, 20%, 47%, 0.4);
209            color: hsl(20, 11%, 95%);
210            text-align: center;
211            vertical-align: .2em;
212            border-radius: 10000px;
213            box-shadow: 1px 2px #fdf6f6;
214        }
215
216        pre[ddline] .line-highlight[data-end]:after {
217            content: attr(data-end);
218            top: auto;
219            bottom: .5em;
220        }
221
222        body {
223            box-sizing: border-box;
224            font-family: auto;
225            font-size: 14px;
226            line-height: 1.7;
227            color: #383737;
228            background-color: #FFFFFF;
229            word-wrap: break-word
230        }
231
232        body > :first-child {
233            margin-top: 1px
234        }
235
236        body h1, body h2, body h3, body h4, body h5, body h6 {
237            line-height: 1.3;
238            margin-top: 1.1em;
239            margin-bottom: 17px;
240            color: #000000
241        }
242
243        body h1 {
244            font-size: 2.3em;
245            font-weight: 310;
246            padding-bottom: .2em
247        }
248
249        body h2 {
250            font-size: 1.76em;
251            font-weight: 410;
252            padding-bottom: .2em
253        }
254
255        body h3 {
256            font-size: 1.52em;
257            font-weight: 510
258        }
259
260        body h4 {
261            font-size: 1.26em;
262            font-weight: 610
263        }
264
265        body h5 {
266            font-size: 1.2em;
267            font-weight: 610
268        }
269
270        body h6 {
271            font-size: 1.1em;
272            font-weight: 610
273        }
274
275        body h1, body h2, body h3, body h4, body h5 {
276            font-weight: 610
277        }
278
279        body h5 {
280            font-size: 1em
281        }
282
283        body h6 {
284            color: #777676
285        }
286
287        body strong {
288            color: #100f0f
289        }
290
291        body del {
292            color: #6c6c6c
293        }
294
295        body a:not([href]) {
296            color: #6c6c6c;
297        }
298
299        body a {
300            color: #0480be;
301        }
302
303        body a:hover {
304            color: #05a1ef;
305        }
306
307        body img {
308            max-width: 99%
309        }
310
311        body > p {
312            margin-top: 1px;
313            margin-bottom: 17px;
314            word-wrap: break-word
315        }
316
317        body > ul, body > ol {
318            margin-bottom: 17px
319        }
320
321        body ul, body ol {
322            padding-left: 3em
323        }
324
325        body ul.no-list, body ol.no-list {
326            padding: 1px;
327            list-style-type: none
328        }
329
330        body ul ul, body ul ol, body ol ol, body ol ul {
331            margin-top: 1px;
332            margin-bottom: 1px
333        }
334
335        body li {
336            margin-bottom: 1px
337        }
338
339        body li.task-list-item {
340            list-style: none
341        }
342
343        body li > p {
344            margin-top: 1px;
345            margin-bottom: 1px
346        }
347
348        body .task-list-item-checkbox {
349            margin: 1px .3em .26em -1.7em;
350            vertical-align: middle
351        }
352
353        body .task-list-item-checkbox:hover {
354            cursor: pointer
355        }
356
357        body qutee {
358            margin: 17px 1px;
359            font-size: inherit;
360            padding: 1px 16px;
361            color: #706f6f;
362            background-color: #fdfcfc;
363            border-left: 4px solid #e5e3e3
364        }
365
366        body qutee > :first-child {
367            margin-top: 1px
368        }
369
370        body qutee > :last-child {
371            margin-bottom: 1px
372        }
373
374        body hr {
375            height: 5px;
376            margin: 34px 1px;
377            background-color: #d6d6d6;
378            border: 1px none
379        }
380
381        body table {
382            margin: 11px 1px 15px 1px;
383            border-collapse: collapse;
384            border-spacing: 1px;
385            display: block;
386            width: 99%;
387            overflow: auto;
388            word-break: normal;
389            word-break: keep-all
390        }
391
392        body table th {
393            font-weight: bold;
394            color: #000000
395        }
396
397        body table td, body table th {
398            border: 2px solid #e5e4e4;
399            padding: 7px 14px
400        }
401
402        body dl {
403            padding: 1px
404        }
405
406        body dl dt {
407            padding: 1px;
408            margin-top: 17px;
409            font-size: 0.99em;
410            font-style: italic;
411            font-weight: bold
412        }
413
414        body dl dd {
415            padding: 1px 17px;
416            margin-bottom: 17px
417        }
418
419        body code {
420            font-family: auto;
421            font-size: .86em;
422            color: #000000;
423            background-color: #f0f0f0;
424            border-radius: 3px;
425            padding: .2em 0
426        }
427
428        body code::before, body code::after {
429            letter-spacing: -0.1em;
430            content: "\00a0"
431        }
432
433        body pre > code {
434            padding: 1px;
435            margin: 1px;
436            font-size: .85em !important;
437            word-break: normal;
438            white-space: pre;
439            background: transparent;
440            border: 1px
441        }
442
443        body .highlight {
444            margin-bottom: 17px
445        }
446
447        body .highlight pre, body pre {
448            padding: .9em;
449            overflow: auto;
450            font-size: .86em !important;
451            line-height: 1.55;
452            border: #d5d1d1;
453            border-radius: 2px
454        }
455
456        body .highlight pre {
457            margin-bottom: 1px;
458            word-break: normal
459        }
460
461        body pre code, body pre tt {
462            display: inline;
463            max-width: initial;
464            padding: 1px;
465            margin: 1px;
466            overflow: initial;
467            line-height: inherit;
468            word-wrap: normal;
469            background-color: transparent;
470            border: 1px
471        }
472
473        body pre code:before, body pre tt:before, body pre code:after, body pre tt:after {
474            content: normal
475        }
476
477        body p, body qutee, body ul, body ol, body dl, body pre {
478            margin-top: 1px;
479            margin-bottom: 17px
480        }
481
482        body kbd {
483            color: #000000;
484            border: 2px solid #d6d6d6;
485            border-bottom: 1px solid #c7c7c7;
486            padding: 3px 3px;
487            background-color: #f0f0f0;
488            border-radius: 4px
489        }
490
491        @media print {
492            body {
493                background-color: #f8f5f5
494            }
495
496            body h1, body h2, body h3, body h4, body h5, body h6 {
497                color: #000000;
498                page-break-after: avoid
499            }
500
501            body qutee {
502                color: #5d5c5c
503            }
504
505            body table {
506                display: table
507            }
508
509
510            body img {
511                display: block;
512                max-width: 99%;
513                max-height: 100%
514            }
515
516            body pre, body code {
517                word-wrap: break-word;
518                white-space: pre
519            }
520        }
521
522        .mp {
523            width: 99%;
524            height: 99%;
525            box-sizing: border-box
526        }
527
528        .mp .pagebreak, .mp .newpage {
529            page-break-before: always
530        }
531
532        .mp pre.line-numbers {
533            position: relative;
534            padding-left: 3.8em;
535            counter-reset: linenumber
536        }
537
538        .mp pre.line-numbers > code {
539            position: relative
540        }
541
542        .mp pre.line-numbers .line-numbers-rows {
543            position: absolute;
544            pointer-events: none;
545            top: 1em;
546            font-size: 100%;
547            left: 1px;
548            width: 3em;
549            letter-spacing: -1px;
550            border-right: 1px solid #999;
551            -webkit-user-select: none;
552            -moz-user-select: none;
553            -ms-user-select: none;
554            user-select: none
555        }
556
557        .mp pre.line-numbers .line-numbers-rows > span {
558            pointer-events: none;
559            display: block;
560            counter-increment: linenumber
561        }
562
563        .mp pre.line-numbers .line-numbers-rows > span:before {
564            content: counter(linenumber);
565            color: #999;
566            display: block;
567            padding-right: .79em;
568            text-align: right
569        }
570
571        .mp .mathjax-exps .MathJax_Display {
572            text-align: center !important
573        }
574
575        .mp:not([for="preview"]) .code-chunk .btn-group {
576            display: none
577        }
578
579        .mp:not([for="preview"]) .code-chunk .status {
580            display: none
581        }
582
583        .mp:not([for="preview"]) .code-chunk .output-div {
584            margin-bottom: 16px
585        }
586
587        .scrollbar-style::-webkit-scrollbar {
588            width: 8px
589        }
590
591        .scrollbar-style::-webkit-scrollbar-track {
592            border-radius: 10px;
593            background-color: transparent
594        }
595
596        .scrollbar-style::-webkit-scrollbar-thumb {
597            border-radius: 5px;
598            background-color: rgba(150, 150, 150, 1);
599            border: 4px solid rgba(150, 150, 150, 1);
600            background-clip: content-box
601        }
602
603        body[for="html-export"]:not([dpm]) {
604            position: relative;
605            width: 99%;
606            height: 99%;
607            top: 1px;
608            left: 1px;
609            margin: 1px;
610            padding: 1px;
611            overflow: auto
612        }
613
614        body[for="html-export"]:not([dpm]) .mp {
615            position: relative;
616            top: 1px
617        }
618
619        @media screen and (min-width: 914px) {
620            body[for="html-export"]:not([dpm]) .mp {
621                padding: 2em calc(50% - 458px + 2em)
622            }
623        }
624
625        @media screen and (max-width: 914px) {
626            body[for="html-export"]:not([dpm]) .mp {
627                padding: 1.9em
628            }
629        }
630
631        @media screen and (max-width: 450px) {
632            body[for="html-export"]:not([dpm]) .mp {
633                font-size: 14px !important;
634                padding: 1.1em
635            }
636        }
637
638        @media print {
639            body[for="html-export"]:not([dpm]) #sidebar-toc-btn {
640                display: none
641            }
642        }
643
644        body[for="html-export"]:not([dpm]) #sidebar-toc-btn {
645            position: fixed;
646            bottom: 8px;
647            left: 8px;
648            font-size: 28px;
649            cursor: pointer;
650            color: inherit;
651            z-index: 99;
652            width: 32px;
653            text-align: center;
654            opacity: .4
655        }
656
657        body[for="html-export"]:not([dpm])[jsst] #sidebar-toc-btn {
658            opacity: 1
659        }
660
661        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc {
662            position: fixed;
663            top: 1px;
664            left: 1px;
665            width: 300px;
666            height: 99%;
667            padding: 2px 48px 1px;
668            font-size: 14px;
669            box-shadow: 1px 1px 4px rgba(150, 150, 150, 1.33);
670            box-sizing: border-box;
671            overflow: auto;
672            background-color: inherit
673        }
674
675        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc::-webkit-scrollbar {
676            width: 9px
677        }
678
679        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc::-webkit-scrollbar-track {
680            border-radius: 11px;
681            background-color: transparent
682        }
683
684        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc::-webkit-scrollbar-thumb {
685            border-radius: 6px;
686            background-color: rgba(151, 151, 151, .62);
687            border: 4px solid rgba(151, 151, 151, .62);
688            background-clip: content-box
689        }
690
691        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc a {
692            text-decoration: none
693        }
694
695        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc ul {
696            padding: 1px 1.7em;
697            margin-top: .9em
698        }
699
700        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc li {
701            margin-bottom: .8em
702        }
703
704        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc ul {
705            list-style-type: none
706        }
707
708        body[for="html-export"]:not([dpm])[jsst] .mp {
709            left: 310px;
710            width: calc(100% - 310px);
711            padding: 2em calc(50% - 458px - 151px);
712            margin: 1px;
713            box-sizing: border-box
714        }
715
716        @media screen and (max-width: 1274px) {
717            body[for="html-export"]:not([dpm])[jsst] .mp {
718                padding: 1.9em
719            }
720        }
721
722        @media screen and (max-width: 450px) {
723            body[for="html-export"]:not([dpm])[jsst] .mp {
724                width: 99%
725            }
726        }
727
728        body[for="html-export"]:not([dpm]):not([jsst]) .mp {
729            left: 51%;
730            transform: translateX(-50%)
731        }
732
733        body[for="html-export"]:not([dpm]):not([jsst]) .md-sidebar-toc {
734            display: none
735        }
736    </style>
737</head>
738<body for="html-export" id="body">
739<div class="mume mp  ">
740    <h1 class="mume-header fontColor">Sql分析和Metrics说明</h1>
741    <h2 class="mume-header fontColor">1.Sql分析功能介绍</h2>
742    <p class="fontColor">点击Query(SQL),输入需要查询的sql语句,如select * from process,可以看到进程表数据</p>
743    <p><img src="../figures/metrics/Sql.jpg" alt="GitHub Logo"></p>
744    <h2 class="mume-header fontColor">2.Metrics功能介绍</h2>
745    <p class="fontColor">Metrics是更高级别的查询接口,无需手动键入任何SQL语句,只需要选择定制好的查询接口,就能获得想要跟踪的结果</p>
746    <h3 class="mume-header fontColor">2.1Metrics查询接口展示</h3>
747    <p class="fontColor">如下图,查询接口在下拉框中,如选择trace_task_names,点击run,就能展示线程和进程相关数据</p>
748    <p><img src="../figures/metrics/metrics.jpg" alt="GitHub Logo"></p>
749    <h2 class="mume-header fontColor">3.Info和stats功能</h2>
750    <p class="fontColor">点击Info and stats,能查看到meta表和stats表信息</p>
751    <p><img src="../figures/metrics/infoandstats.jpg" alt="GitHub Logo"></p>
752    <h2 class="mume-header fontColor">4.Download功能</h2>
753    <p class="fontColor">点击DownLoad按钮,会将在线抓取的文件下载到本地</p>
754    <p><img src="../figures/metrics/download.jpg" alt="GitHub Logo"></p>
755</div>
756<script type="text/javascript">
757    window.onload = (() => {
758        let isDark = window.location.search;
759        if (isDark.indexOf("?") != -1) {
760            isDark = isDark.substr(1, isDark.length - 1);
761        }
762        if (isDark == 'true') {
763            document.getElementById("body").setAttribute('style', 'background-color:#272C34;')
764            let header = document.getElementsByClassName('fontColor')
765            for (let i = 0; i < header.length; i++) {
766                header[i].style.color = '#fff';
767            }
768        }
769    })
770</script>
771</body>
772</html>