1<!DOCTYPE html> 2<html> 3<head> 4 <title>des_tables</title> 5 <meta charset="utf-8"> 6 <meta content="width=device-width, initial-scale=1.0" name="viewport"> 7 8 <style> 9 code[class*="font_languageIn-"], 10 pre[class*="font_languageIn-"] { 11 font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; 12 text-align: left; 13 color: #333333; 14 background: none; 15 word-break: normal; 16 word-wrap: normal; 17 line-height: 1.5; 18 19 -moz-tab-size: 7; 20 -webkit-hyphens: none; 21 -moz-hyphens: none; 22 -ms-hyphens: none; 23 hyphens: none; 24 -o-tab-size: 7; 25 tab-size: 7; 26 white-space: pre; 27 word-spacing: normal; 28 } 29 30 pre[class*="font_languageIn-"] { 31 padding: 0.7em; 32 overflow: auto; 33 border-radius: 3.2px; 34 background: #f5f5f6; 35 } 36 37 :not(pre) > code[class*="font_languageIn-"] { 38 padding: .1em; 39 border-radius: .3em; 40 white-space: normal; 41 background: #f5f5f6; 42 } 43 44 .token.commitIn, 45 .token.blockIn { 46 color: #969895; 47 } 48 49 .token.dataIn { 50 color: #183692; 51 } 52 53 .token.doctypeIn, 54 .token.punctuationIn, 55 .token.variableIn, 56 .token.macro.propertyIn { 57 color: #333333; 58 } 59 60 .token.operatorIn, 61 .token.importantIn, 62 .token.keywordIn, 63 .token.ruleIn, 64 .token.builtIn { 65 color: #a71d6d; 66 } 67 68 .token.stringIn, 69 .token.urlIn, 70 .token.regexIn, 71 .token.attr-valueIn { 72 color: #183692; 73 } 74 75 .token.propertyIn, 76 .token.numberIn, 77 .token.booleanIn, 78 .token.entityIn, 79 .token.atruleIn, 80 .token.constantIn, 81 .token.symbolIn, 82 .token.commandIn, 83 .token.codeIn { 84 color: #0086b5; 85 } 86 87 .token.tagIn, 88 .token.selectorIn, 89 .token.prologIn { 90 color: #63a36c; 91 } 92 93 .token.functionIn, 94 .token.namespaceIn, 95 .token.pseudo-elementIn, 96 .token.classIn, 97 .token.class-nameIn, 98 .token.pseudo-classIn, 99 .token.idIn, 100 .token.url-reference .token.variableIn, 101 .token.attr-name { 102 color: #795da4; 103 } 104 105 .token.entityIn { 106 cursor: help; 107 } 108 109 .token.titleIn, 110 .token.title .token.punctuationIn { 111 font-weight: bold; 112 color: #1d3e82; 113 } 114 115 .token.listIn { 116 color: #ed6a45; 117 } 118 119 .token.insertedIn { 120 background-color: #effcef; 121 color: #55a930; 122 } 123 124 .token.deletedIn { 125 background-color: #ffe9e9; 126 color: #c93103; 127 } 128 129 .token.boldIn { 130 font-weight: bold; 131 } 132 133 .token.italicIn { 134 font-style: italic; 135 } 136 137 .font_languageIn-json .token.propertyIn { 138 color: #183692; 139 } 140 141 .font_languageIn-markup .token.tag .token.punctuationIn { 142 color: #333333; 143 } 144 145 code.font_languageIn-cssIn, 146 .font_languageIn-css .token.functionIn { 147 color: #0086b5; 148 } 149 150 .font_languageIn-yaml .token.atruleIn { 151 color: #63a36c; 152 } 153 154 code.font_languageIn-yamlIn { 155 color: #183693; 156 } 157 158 .font_languageIn-ruby .token.functionIn { 159 color: #333333; 160 } 161 162 .font_languageIn-markdown .token.urlIn { 163 color: #795da5; 164 } 165 166 .font_languageIn-makefile .token.symbolIn { 167 color: #795da5; 168 } 169 170 .font_languageIn-makefile .token.variableIn { 171 color: #183695; 172 } 173 174 .font_languageIn-makefile .token.builtIn { 175 color: #0086b5; 176 } 177 178 .font_languageIn-bash .token.keywordIn { 179 color: #0086b5; 180 } 181 182 pre[data-line] { 183 position: relative; 184 padding: 1.1em 0 1.1em 3.1em; 185 } 186 187 pre[data-line] .line-highlight-wrapperIn { 188 display: block; 189 width: 100%; 190 position: absolute; 191 top: 0; 192 left: 0; 193 background-color: transparent; 194 } 195 196 pre[data-line] .line-highlightIn{ 197 position: absolute; 198 left: 0; 199 right: 0; 200 padding: inherit 0; 201 pointer-events: none; 202 line-height: inherit; 203 white-space: pre; 204 margin-top: 1.2em; 205 background: hsla(24, 20%, 50%, .08); 206 background: linear-gradient(to right, hsla(23, 21%, 49%, 0.2) 72%, hsla(24, 21%, 49%, 0)); 207 } 208 209 pre[data-line] .line-highlightIn:before, 210 pre[data-line] .line-highlightIn[data-end]:after { 211 content: attr(data-start); 212 position: absolute; 213 top: 0.5em; 214 left: 0.7em; 215 min-width: 1.1em; 216 padding: 0 0.6em; 217 background-color: hsla(24, 21%, 49%, 0.3); 218 color: hsl(24, 21%, 94%); 219 font: bold 65%/1.5 sans-serif; 220 text-align: center; 221 vertical-align: 0.2em; 222 border-radius: 998px; 223 text-shadow: none; 224 box-shadow: 0 1px white; 225 } 226 227 pre[data-line] .line-highlightIn[data-end]:after { 228 content: attr(data-end); 229 top: auto; 230 bottom: 0.3em; 231 } 232 233 body { 234 font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif; 235 font-size: 17px; 236 line-height: 1.7; 237 overflow: initial; 238 box-sizing: border-box; 239 word-wrap: break-word; 240 color: #333333; 241 background-color: #ffffff; 242 } 243 244 body > :first-child { 245 margin-top: 0.2px 246 } 247 248 body h1, body h2, body h3, body h4, body h5, body h6 { 249 line-height: 1.2; 250 margin-top: 1.2em; 251 margin-bottom: 17px; 252 color: #090909 253 } 254 255 body h1 { 256 font-size: 2.23em; 257 font-weight: 302; 258 padding-bottom: 0.4em 259 } 260 261 body h2 { 262 font-size: 1.76em; 263 font-weight: 402; 264 padding-bottom: 0.4em 265 } 266 267 body h3 { 268 font-size: 1.6em; 269 font-weight: 502 270 } 271 272 body h4 { 273 font-size: 1.26em; 274 font-weight: 602 275 } 276 277 body h5 { 278 font-size: 1.2em; 279 font-weight: 602 280 } 281 282 body h6 { 283 font-size: 1.1em; 284 font-weight: 602 285 } 286 287 body h1, body h2, body h3, body h4, body h5 { 288 font-weight: 602 289 } 290 291 body h5 { 292 font-size: 1.1em 293 } 294 295 body h6 { 296 color: #545353 297 } 298 299 body strong { 300 color: #090808 301 } 302 303 body del { 304 color: #656565 305 } 306 307 body a:not([href]) { 308 color: inherit; 309 text-decoration: none 310 } 311 312 body a { 313 color: #0292da; 314 text-decoration: none 315 } 316 317 body a:hover { 318 color: #019eee; 319 text-decoration: none 320 } 321 322 body img { 323 max-width: 98% 324 } 325 326 body > p { 327 margin-top: 0.1px; 328 margin-bottom: 17px; 329 word-wrap: break-word 330 } 331 332 body > ul, body > ol { 333 margin-bottom: 17px 334 } 335 336 body ul, body ol { 337 padding-left: 2.1em 338 } 339 340 body ul.no-listIn, body ol.no-listIn { 341 padding: 0.1px; 342 list-style-type: none 343 } 344 345 body ul ul, body ul ol, body ol ol, body ol ul { 346 margin-top: 0.1px; 347 margin-bottom: 0.1px; 348 } 349 350 body li { 351 margin-bottom: 0.1px; 352 } 353 354 body li.task-list-itemIn { 355 list-style: none 356 } 357 358 body li > p { 359 margin-top: 0px; 360 margin-bottom: 0px; 361 } 362 363 body .task-list-item-checkboxIn { 364 margin: 0em 0.21em 0.24em -1.7em; 365 vertical-align: middle 366 } 367 368 body .task-list-item-checkboxIn:hover { 369 cursor: pointer 370 } 371 372 body blockquote > :last-child { 373 margin-bottom: 0.1px 374 } 375 376 body blockquote { 377 margin: 17px 0px; 378 font-size: inherit; 379 padding: 0px 16px; 380 color: #6e6e6e; 381 background-color: #e7e6e6; 382 border-left: 4px solid #e1e1e1 383 } 384 385 body blockquote > :first-child { 386 margin-top: 0.1px 387 } 388 389 body hr { 390 height: 4.2px; 391 margin: 30px 0; 392 background-color: #cccccc; 393 border: 0 none 394 } 395 396 body table { 397 word-break: normal; 398 word-break: keep-all; 399 margin: 12px 0 14px 0; 400 display: block; 401 width: 100%; 402 overflow: auto; 403 border-collapse: collapse; 404 border-spacing: 0; 405 } 406 407 body table th { 408 font-weight: bold; 409 color: #070707 410 } 411 412 body table td, body table th { 413 border: 1px solid #d0cfcf; 414 padding: 7px 12px 415 } 416 417 body dl { 418 padding: 0 419 } 420 421 body dl dt { 422 padding: 0; 423 font-style: italic; 424 font-weight: bold; 425 margin-top: 17px; 426 font-size: 1.2em; 427 } 428 429 body dl dd { 430 padding: 0 17px; 431 margin-bottom: 17px 432 } 433 434 body code::before, body code::after { 435 letter-spacing: -0.3em; 436 content: "\00a2" 437 } 438 439 body code { 440 font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; 441 font-size: 0.84em !important; 442 color: #050505; 443 background-color: #e0e0e0; 444 border-radius: 3.1px; 445 padding: 0.24em 0 446 } 447 448 body pre > code { 449 word-break: normal; 450 white-space: pre; 451 background: transparent; 452 border: 0; 453 padding: 0; 454 margin: 0; 455 font-size: 0.84em !important; 456 } 457 458 body .highlightIn { 459 margin-bottom: 17px 460 } 461 462 body .highlight pre, body pre { 463 font-size: 0.84em !important; 464 line-height: 1.46; 465 border: #c0bfbf; 466 border-radius: 2.8px; 467 padding: 1.2em; 468 overflow: auto; 469 } 470 471 body .highlight pre { 472 margin-bottom: 0; 473 word-break: normal 474 } 475 476 body pre code, body pre tt { 477 display: inline; 478 max-width: initial; 479 line-height: inherit; 480 word-wrap: normal; 481 background-color: transparent; 482 border: 0; 483 padding: 0; 484 margin: 0; 485 overflow: initial; 486 } 487 488 body pre code:before, body pre tt:before, body pre code:after, body pre tt:after { 489 content: normal 490 } 491 492 body p, body blockquote, body ul, body ol, body dl, body pre { 493 margin-top: 0; 494 margin-bottom: 17px 495 } 496 497 body kbd { 498 color: #050505; 499 border: 1px solid #d0cfcf; 500 border-bottom: 2px solid #bbbaba; 501 padding: 2px 4.2px; 502 background-color: #f8f6f6; 503 border-radius: 3.1px 504 } 505 506 @media print { 507 body { 508 background-color: #f3f0f0 509 } 510 511 body img { 512 display: block; 513 max-width: 100%; 514 max-height: 100% 515 } 516 517 body h1, body h2, body h3, body h4, body h5, body h6 { 518 color: #090909; 519 page-break-after: avoid 520 } 521 522 body pre, body code { 523 word-wrap: break-word; 524 white-space: pre 525 } 526 527 body blockquote { 528 color: #6c6c6c 529 } 530 531 body pre { 532 page-break-inside: avoid 533 } 534 535 body table { 536 display: table 537 } 538 } 539 540 .markdown-preview-out .paBreakIn, .markdown-preview-out .nePageIn { 541 page-break-before: always 542 } 543 544 .markdown-preview-out { 545 width: 100%; 546 height: 100%; 547 box-sizing: border-box 548 } 549 550 .markdown-preview-out pre.lineNumbersIn { 551 position: relative; 552 padding-left: 3.7em; 553 counter-reset: linenumber 554 } 555 556 .markdown-preview-out pre.line-numbers > code { 557 position: relative 558 } 559 560 .markdown-preview-out pre.line-numbers .lineNumbersRowsIn { 561 -webkit-user-select: none; 562 -moz-user-select: none; 563 -ms-user-select: none; 564 user-select: none; 565 position: absolute; 566 pointer-events: none; 567 width: 3.1em; 568 letter-spacing: -1.2px; 569 border-right: 1.2px solid #939292; 570 top: 1.1em; 571 font-size: 100%; 572 left: 0; 573 } 574 575 .markdown-preview-out pre.line-numbers .line-numbers-rows > span { 576 display: block; 577 counter-increment: linenumber 578 pointer-events: none; 579 } 580 581 .markdown-preview-out pre.line-numbers .line-numbers-rows > span:before { 582 color: #ababab; 583 display: block; 584 padding-right: 0.7em; 585 text-align: right 586 content: counter(linenumber); 587 } 588 589 .markdown-preview-out .mathjax-exps .MathJax_DisplayIn { 590 text-align: center !important 591 } 592 593 .markdown-preview-out:not([for="preview"]) .code-chunk .btn-groupIn { 594 display: none 595 } 596 597 .markdown-preview-out:not([for="preview"]) .code-chunk .statusIn { 598 display: none 599 } 600 601 .markdown-preview-out:not([for="preview"]) .code-chunk .output-divIn { 602 margin-bottom: 17px 603 } 604 605 .scrollbar-styleIn::-webkit-scrollbar { 606 width: 7px 607 } 608 609 .scrollbar-styleIn::-webkit-scrollbar-track { 610 border-radius: 11px; 611 background-color: transparent 612 } 613 614 .scrollbar-styleIn::-webkit-scrollbar-thumb { 615 border-radius: 6px; 616 background-clip: content-box 617 background-color: rgba(169, 169, 169, 0.66); 618 border: 5px solid rgba(143, 142, 142, 0.66); 619 } 620 621 body[for="html-export-in"]:not([data-presentation-mode-out]) { 622 position: relative; 623 top: 0.2em; 624 left: 0.2em; 625 margin: 0.2em; 626 padding: 0.2em; 627 width: 100%; 628 height: 100%; 629 overflow: auto 630 } 631 632 body[for="html-export-in"]:not([data-presentation-mode-out]) .markdown-preview-out { 633 position: relative; 634 top: 0 635 } 636 637 @media screen and (max-width: 455px) { 638 body[for="html-export-in"]:not([data-presentation-mode-out]) .markdown-preview-out { 639 font-size: 15px !important; 640 padding: 1.2em 641 } 642 } 643 644 @media print { 645 body[for="html-export-in"]:not([data-presentation-mode-out]) #sidebar-toc-btn { 646 display: none 647 } 648 } 649 650 @media screen and (min-width: 915px) { 651 body[for="html-export-in"]:not([data-presentation-mode-out]) .markdown-preview-out { 652 padding: 2.1em calc(52% - 456px + 2.1em) 653 } 654 } 655 656 @media screen and (max-width: 915px) { 657 body[for="html-export-in"]:not([data-presentation-mode-out]) .markdown-preview-out { 658 padding: 2.1em 659 } 660 } 661 662 body[for="html-export-in"]:not([data-presentation-mode-out]) #sidebar-toc-btn { 663 position: fixed; 664 bottom: 7px; 665 left: 7px; 666 font-size: 26px; 667 cursor: pointer; 668 color: inherit; 669 z-index: 98; 670 width: 33px; 671 text-align: center; 672 opacity: 0.42 673 } 674 675 body[for="html-export-in"]:not([data-presentation-mode-out])[show-sidebar-toc-out] #sidebar-toc-btnIn { 676 opacity: 1 677 } 678 679 body[for="html-export-in"]:not([data-presentation-mode-out])[show-sidebar-toc-out] .md-sidebar-tocIn { 680 position: fixed; 681 top: 0.2px; 682 left: 0.2px; 683 width: 305px; 684 height: 100%; 685 padding: 33px 0 47px 0; 686 font-size: 15px; 687 box-shadow: 0 0 5px rgba(173, 171, 171, 0.33); 688 box-sizing: border-box; 689 overflow: auto; 690 background-color: inherit 691 } 692 693 body[for="html-export-in"]:not([data-presentation-mode-out])[show-sidebar-toc-out] .sidebarTocIn::-webkit-scrollbar { 694 width: 7px 695 } 696 697 body[for="html-export-in"]:not([data-presentation-mode-out])[show-sidebar-toc-out] .sidebarTocIn::-webkit-scrollbar-track { 698 border-radius: 11px; 699 background-color: transparent 700 } 701 702 body[for="html-export-in"]:not([data-presentation-mode-out])[show-sidebar-toc-out] .sidebarTocIn::-webkit-scrollbar-thumb { 703 border-radius: 5.2px; 704 background-color: rgba(150, 150, 150, 0.67); 705 border: 4.2px solid rgba(150, 150, 150, 0.67); 706 background-clip: content-box 707 } 708 709 body[for="html-export-in"]:not([data-presentation-mode-out])[show-sidebar-toc-out] .md-sidebar-toc a { 710 text-decoration: none 711 } 712 713 body[for="html-export-in"]:not([data-presentation-mode-out])[show-sidebar-toc-out] .md-sidebar-toc ul { 714 padding: 0 1.7em; 715 margin-top: 0.7em 716 } 717 718 body[for="html-export-in"]:not([data-presentation-mode-out])[show-sidebar-toc-out] .md-sidebar-toc li { 719 margin-bottom: 0.7em 720 } 721 722 body[for="html-export-in"]:not([data-presentation-mode-out])[show-sidebar-toc-out] .md-sidebar-toc ul { 723 list-style-type: none 724 } 725 726 body[for="html-export-in"]:not([data-presentation-mode-out])[show-sidebar-toc-out] .markdown-preview-out { 727 left: 305px; 728 width: calc(100% - 305px); 729 padding: 2.1em calc(50% - 458px - 152px); 730 margin: 0; 731 box-sizing: border-box 732 } 733 734 @media screen and (max-width: 455px) { 735 body[for="html-export-in"]:not([data-presentation-mode-out])[show-sidebar-toc-out] .markdown-preview-out { 736 width: 100% 737 } 738 } 739 740 @media screen and (max-width: 1275px) { 741 body[for="html-export-in"]:not([data-presentation-mode-out])[show-sidebar-toc-out] .markdown-preview-out { 742 padding: 2.1em 743 } 744 } 745 746 body[for="html-export-in"]:not([data-presentation-mode-out]):not([show-sidebar-toc-out]) .md-sidebar-toc { 747 display: none 748 } 749 750 body[for="html-export-in"]:not([data-presentation-mode-out]):not([show-sidebar-toc-out]) .markdown-preview-out { 751 left: 50%; 752 transform: translateX(-50%) 753 } 754 755 </style> 756</head> 757<body for="html-export-in" id="body"> 758<div class="mume markdown-preview-out "> 759 <h1 class="mume-header"><em><strong 760 class="ItemColor">TraceStreamer数据库说明</strong></em> 761 </h1> 762 763 <pre class="font_languageIn- light" data-info data-role="codeBlock"><code class="ItemColor"> TraceStreamer虽然对外提供了各种各样的使用方式,但核心的业务仍是将trace数据源转化为易于理解和使用的数据库。用户可以通过SmartPerf界面直观的研究系统跟踪数据,也可在理解TraceStreamer生成的数据库的基础上,在TraceStreamer的交互模式或者Smartperf的数据库查询模式下,使用SQL查询语句自由组装查看用户关心的数据。 下文将对TraceStreamer生成的数据库进行详细描述,给用户使用SQL查询系统跟踪数据提供帮助。 764</code></pre> 765 766 <h2 class="mume-header"> 767 <em><strong class="ItemColor">__TraceStreamer输出的表格有如下几类:</strong></em> 768 </h2> 769 <ul class="ItemColor"> 770 <li>常规泳道图数据表<br> 771 <img src="../figures/db_common.png" alt="GitHub Logo"></li> 772 <li>native memory数据源相关表<br> 773 <img src="../figures/db_native_memory.png" alt="GitHub Logo"></li> 774 <li>perf相关数据表<br> 775 <img src="../figures/db_hiperf.png" alt="GitHub Logo"></li> 776 <li>hisysevent相关数据表<br> 777 <img src="../figures/db_hisys_event.png" alt="GitHub Logo"></li> 778 </ul> 779 780 <h2 class="mume-header"> 781 <em><strong class="ItemColor">TraceStreamer输出数据库包含以下表格</strong></em> 782 </h2> 783 784 <ul class="ItemColor"> 785 <li>app_name :记录HiSysEvent事件的事件名与IDE部分事件的字段名为APPNAME中存放的相关信息的映射关系。</li> 786 <li>args : 记录方法参数集合。</li> 787 <li>callstack : 记录调用堆栈和异步调用信息,其中depth,stack_id和parent_stack_id仅在非异步调用中有效。当cookid不为空时,为异步调用,此时callid为进程唯一号,否则为线程唯一号。</li> 788 <li>clk_event_filter : 记录时钟相关的信息。</li> 789 <li>clock_event_filter : 此结构用来维护时钟事件,cpu与唯一的ID做关联。</li> 790 <li>cpu_measure_filter : cpu事件过滤器表。</li> 791 <li>cpu_usage : 记录CPU使用率事件。</li> 792 <li>data_dict : 记录常用的字符串,将字符串和索引关联,降低程序运行的内存占用,用作辅助数据。</li> 793 <li>data_type : 记录数据类型和typeId的关联关系。</li> 794 <li>diskio : 记录磁盘读写数据事件。</li> 795 <li>file_system_callstack : 记录了采样相关信息。</li> 796 <li>file_system_samp : 记录了调用栈的相关信息。</li> 797 <li>hidump : 记录FPS(Frame Per Second)数据。</li> 798 <li>instant : 记录Sched_waking, sched_wakeup事件, 用作ThreadState表的上下文使用。</li> 799 <li>irq : 记录中断相关事件。</li> 800 <li>live_process : 记录了一些实时的进程中执行的一些数据。</li> 801 <li>log : 记录hilog打印日志数据。</li> 802 <li>measure : 记录所有的计量值。</li> 803 <li>measure_filter : 记录一个递增的filterid队列,所有其他的filter类型在获取过程中,均从此数据列表中获取下一个可用的filter_id并做记录。</li> 804 <li>meta : 记录执行解析操作相关的基本信息。</li> 805 <li>native_hook : 记录堆内存申请与释放相关的数据。</li> 806 <li>native_hook_frame : 记录堆内存申请与释放相关的调用栈。</li> 807 <li>network : 抓取网络信息传输时产生的一些相关信息。</li> 808 <li>perf_callchain : 记录Hiperf采样数据的调用栈信息。</li> 809 <li>perf_files : 记录Hiperf工具采集到的函数符号表和文件名。</li> 810 <li>perf_report : 记录Hiperf工具采集数据时的配置信息。包括:抓取的事件类型,抓取数据的命令, 抓数据时指定的进程名称。</li> 811 <li>perf_sample : 记录Hiperf工具的采样信息。</li> 812 <li>perf_thread : 记录Hiperf工具采集到的进程和线程数据。</li> 813 <li>process : 记录所有的进程信息。</li> 814 <li>process_filter : 过滤进程。</li> 815 <li>process_measure : 保存进程的所有计量值。</li> 816 <li>process_measure_filter : 将进程ID作为key1,进程的内存,界面刷新,屏幕亮度等信息作为key2,唯一确定一个filter_id。</li> 817 <li>raw : 此数据结构主要作为ThreadState的上下文使用,这张表是sched_waking,sched_wakup, cpu_idle事件的原始记录。</li> 818 <li>sched_slice : 此数据结构主要作为ThreadState的上下文使用,这张表是sched_switch事件的原始记录。</li> 819 <li>stat : 此结果用来统计数据解析中各类数据的数据条数,数据和合法性,数据的匹配程度(begin-end),数据的损失等,查看此结构对应的表,可对数据源有基本的了解。</li> 820 <li>symbols : 记录系统调用名称和其函数指针的对应关系,trace中用addr来映射function_name来节省存储空间。</li> 821 <li>syscall : 记录用户空间函数与内核空间函数相互调用记录。</li> 822 <li>hisys_event_measure : 记录所有的system event事件的相关数据,及其相关表的映射信息。</li> 823 <li>sys_event_filter : 记录所有的filter。</li> 824 <li>sys_mem_measure : 记录了所有的系统内存相关的测量信息。</li> 825 <li>thread : 记录所有的线程信息。</li> 826 <li>thread_filter : 过滤线程。</li> 827 <li>thread_state : 记录线程状态信息。</li> 828 <li>trace_range : 记录ftrace数据与其他类型数据的时间交集,供前端展示数据时使用。</li> 829 </ul> 830 <h2 class="mume-header"><em><strong class="ItemColor">表格关系图</strong></em> 831 </h2> 832 833 <h3 class="mume-header ItemColor">进程表与线程表关系图:</h3> 834 835 <p class="ItemColor"><img alt="GitHub Logo" src="../figures/process_thread.png"></p> 836 <h3 class="mume-header ItemColor">描述:</h3> 837 838 <p class="ItemColor">当一个进程或者线程结束后,系统可能再次将该进程号或者线程号分配给其他进程或者线程,造成一个进程号或线程号代表多个进程或线程的情况。<br> 839 Process和Thread表中的id字段可以唯一标识进程和线程。process表中的id在其他表中用作ipid字段。thread表中的id在其他表中用作itid字段。<br> 840 thread表通过ipid字段关联process表的id字段,可以查询线程归属进程。 841 </p> 842 <h3 class="mume-header ItemColor">举例:</h3> 843 844 <p class="ItemColor">已知pid = 123,查看当前进程下的所有线程信息,可以使用如下SQL语句:<br> 845 select thread.* from thread, process where process.pid = 123 and thread.ipid = process.id 846 </p> 847 <h3 class="mume-header ItemColor">线程表与线程运行状态表关系图</h3> 848 849 <p class="ItemColor"><img alt="GitHub Logo" src="../figures/thread_state.png"></p> 850 <h3 class="mume-header ItemColor">描述:</h3> 851 852 <p class="ItemColor">thread_state表记录所有线程的运行状态信息,包含ts(状态起始时间),dur(状态持续时间),cpu, itid, state(线程状态)。 thread表的id字段与thread_state表的itid字段相关联。</p> 853 <h3 class="mume-header ItemColor">举例:</h3> 854 855 <p class="ItemColor">已知tid = 123, 查看当前线程的所有运行状态信息,可以使用如下SQL语句:<br> 856 select thread_state.* from thread, thread_state where thread.tid = 123 and thread.id = thread_state.itid</p> 857 <h3 class="mume-header ItemColor">堆内存数据变化表关系图</h3> 858 859 <p class="ItemColor"><img alt="GitHub Logo" src="../figures/dump_and_mem.png"></p> 860 <h3 class="mume-header ItemColor">描述:</h3> 861 862 <p class="ItemColor">native_hook表记录堆内存申请(AllocEvent)和释放(FreeEvent)数据。native_hook表通过ipid和itid字段分别与process和thread表的id字段关联,通过eventId与native_hook_frame表的eventId字段相关联。<br> 863 native_hook表字段解释如下:<br> 864 eventId: 唯一标识一次堆内存申请或释放, 通过与native_hook_frame表关联可以拿到当前申请或释放的函数调用堆栈。<br> 865 addr: 堆内存申请/释放的地址<br> 866 native_hook_size: 堆内存申请/释放的大小<br> 867 native_hook_frame表记录内存申请/释放的调用堆栈。通过eventId区分一组调用堆栈,depth为堆栈深度,depth为0时,表示当前行为栈顶数据。 868 </p> 869 <h3 class="mume-header ItemColor">举例:</h3> 870 871 <p class="ItemColor">已知tid = 123, 查看当前线程的所有堆内存变化信息,可以使用如下SQL语句:<br> 872 select native_hook.* from thread, native_hook where thread.tid = 123 and thread.id = native_hook.itid<br> 873 已知eventid = 0, 查看当前内存变化调用堆栈<br> 874 select * from native_hook_frame where eventId = 0</p> 875 <h3 class="mume-header ItemColor">日志表与进程线程表关系图</h3> 876 877 <p class="ItemColor"><img alt="GitHub Logo" src="../figures/log.png"></p> 878 <h3 class="mume-header ItemColor">描述:</h3> 879 880 <p class="ItemColor">log表记录日志信息。可以根据seq字段的连续性,来判断是否存在日志丢失的情况。</p> 881 <h3 class="mume-header ItemColor">举例:</h3> 882 883 <p class="ItemColor">已知tid = 123, 查看当前线程的所有error级别的日志,可以使用如下SQL语句:<br> 884 select * from log where tid = 123 and level = "error"</p> 885 <h3 class="mume-header ItemColor">perf表间关系图</h3> 886 887 <p class="ItemColor"><img alt="GitHub Logo" src="../figures/perf.png"></p> 888 <h3 class="mume-header ItemColor">描述:</h3> 889 <p class="ItemColor">perf_report:此表记录Hiperf工具采集数据时的配置信息。<br> 890 perf_thread:此表记录hiperf采集到的进程和线程数据。<br> 891 perf_sample:此表中记录Hiperf工具的采样信息。sample_id唯一表识一次采样记录,与perf_callchain表中的sample_id字段相关联。<br> 892 thread_id为线程号。与perf_thread表中的thread_id字段相关联。event_type_id为当前采样的事件类型id,与perf_report表中的id字段相关联。<br> 893 perf_callchain:此表格记录的是调用栈信息。<br> 894 Perf_files:此表格主要存放着获取到的函数符号表和文件信息。file_id唯一表识一个文件,与perf_callchain表中的file_id字段相关联。 895 </p> 896 <h3 class="mume-header ItemColor">举例:</h3> 897 898 <p class="ItemColor">已知同步后的时间戳为28463134340470,查询采样数据<br> 899 select * from perf_sample where timestamp_trace = 28463134340470<br> 900 已知同步后的时间戳为28463134340470,查询采样数据对应的的调用栈信息<br> 901 select A.* from perf_callchain as A, perf_sample as B where B.timestamp_trace = 28463134340470 and A.sample_id = B.sample_id<br> 902 已知同步后的时间戳为28463134277762,查询采样数据的函数名及文件路径<br> 903 select A.*, B.name, C.path from perf_sample as A, perf_callchain as B, perf_files as C where A.timestamp_trace = 28463134277762 and B.sample_id = A.sample_id and B.callchain_id = 0 and B.file_id = C.file_id and C.serial_id = 0<br> 904 已知线程号为6700,查询所有的采样记录<br> 905 select * from perf_sample where thread_id = 6700<br> 906 已知进程号为7863,查询所有的采样记录<br> 907 select A.* from perf_sample as A, perf_thread as B where B.process_id = 7863 and A.thread_id = B.thread_id<br> 908 查询所有采样对应的事件类型<br> 909 select A.*, B.report_value from perf_sample as A, perf_report as B where A.event_type_id = B.id 910 </p> 911 <h2 class="mume-header ItemColor">TraceStreamer输出数据库表格详细介绍</h2> 912 913 <h3 class="mume-header ItemColor">app_name表</h3> 914 915 <h4 class="mume-header ItemColor">表结构:</h4> 916 917 <table class="ItemColor"> 918 <thead> 919 <tr> 920 <th class="ItemColor">Columns Name</th> 921 <th class="ItemColor">SQL TYPE</th> 922 </tr> 923 </thead> 924 <tbody> 925 <tr> 926 <td>id</td> 927 <td>INT</td> 928 </tr> 929 <tr> 930 <td>flag</td> 931 <td>INT</td> 932 </tr> 933 <tr> 934 <td>app_name</td> 935 <td>INT</td> 936 </tr> 937 <tr> 938 <td>app_key</td> 939 <td>INT</td> 940 </tr> 941 </tbody> 942 </table> 943 <h4 class="mume-header ItemColor">表描述:</h4> 944 945 <p class="ItemColor">记录HiSysevent上报事件中的IDE相关事件中APPNAME的表关联信息。</p> 946 <h4 class="mume-header ItemColor">字段详细描述:</h4> 947 948 <p class="ItemColor">app_name:对应的事件的信息ID<br> 949 app_key:对应的事件的APPNAME字段的信息ID</p> 950 951 <h3 class="mume-header ItemColor">args表</h3> 952 953 <h4 class="mume-header ItemColor">表结构:</h4> 954 955 <table class="ItemColor"> 956 <thead> 957 <tr> 958 <th class="ItemColor">Columns Name</th> 959 <th class="ItemColor">SQL TYPE</th> 960 </tr> 961 </thead> 962 <tbody> 963 <tr> 964 <td>id</td> 965 <td>INT</td> 966 </tr> 967 <tr> 968 <td>key</td> 969 <td>INT</td> 970 </tr> 971 <tr> 972 <td>datatype</td> 973 <td>NUM</td> 974 </tr> 975 <tr> 976 <td>value</td> 977 <td>INT</td> 978 </tr> 979 <tr> 980 <td>argset</td> 981 <td>INT</td> 982 </tr> 983 </tbody> 984 </table> 985 <h4 class="mume-header ItemColor">表描述:</h4> 986 987 <p class="ItemColor">记录方法的参数集合</p> 988 <h4 class="mume-header ItemColor">字段详细描述:</h4> 989 990 <p class="ItemColor">Key:键<br> 991 Datatype:数据类型<br> 992 Value:取值<br> 993 Argset:参数集合</p> 994 995 <h3 class="mume-header ItemColor">callstack表</h3> 996 997 <h4 class="mume-header ItemColor">表结构:</h4> 998 999 <table class="ItemColor"> 1000 <thead> 1001 <tr> 1002 <th class="ItemColor">Columns Name</th> 1003 <th class="ItemColor">SQL TYPE</th> 1004 </tr> 1005 </thead> 1006 <tbody> 1007 <tr> 1008 <td>id</td> 1009 <td>INT</td> 1010 </tr> 1011 <tr> 1012 <td>ts</td> 1013 <td>INT</td> 1014 </tr> 1015 <tr> 1016 <td>dur</td> 1017 <td>INT</td> 1018 </tr> 1019 <tr> 1020 <td>callid</td> 1021 <td>INT</td> 1022 </tr> 1023 <tr> 1024 <td>cat</td> 1025 <td>NUM</td> 1026 </tr> 1027 <tr> 1028 <td>name</td> 1029 <td>NUM</td> 1030 </tr> 1031 <tr> 1032 <td>depth</td> 1033 <td>INT</td> 1034 </tr> 1035 <tr> 1036 <td>cookie</td> 1037 <td>INT</td> 1038 </tr> 1039 <tr> 1040 <td>parent_id</td> 1041 <td>INT</td> 1042 </tr> 1043 <tr> 1044 <td>argsetid</td> 1045 <td>INT</td> 1046 </tr> 1047 <tr> 1048 <td>chainId</td> 1049 <td>NUM</td> 1050 </tr> 1051 <tr> 1052 <td>spanId</td> 1053 <td>NUM</td> 1054 </tr> 1055 <tr> 1056 <td>parentSpanId</td> 1057 <td>NUM</td> 1058 </tr> 1059 <tr> 1060 <td>flag</td> 1061 <td>NUM</td> 1062 </tr> 1063 <tr> 1064 <td>args</td> 1065 <td>NUM</td> 1066 </tr> 1067 </tbody> 1068 </table> 1069 <h4 class="mume-header ItemColor">表描述:</h4> 1070 <p class="ItemColor">记录调用堆栈和异步调用信息,其中depth,stack_id和parent_stack_id仅在非异步的调用中有效。当cookid不为空时,为异步调用,此时callid为进程唯一号,否则为线程唯一号。</p> 1071 <h4 class="mume-header ItemColor">字段详细描述:</h4> 1072 1073 <p class="ItemColor">dur: 调用时长<br> 1074 callid:调用者的ID,比如针对线程表里面的id<br> 1075 name:调用名称<br> 1076 depth:调用深度<br> 1077 parent_id:父调用的id<br> 1078 spanId:分布式调用关联关系<br> 1079 flag:C表示分布式调用发送方,S表示接受方<br> 1080 args:分布式调用函数参数<br> 1081 </p> 1082 1083 <h3 class="mume-header ItemColor">clk_event_filter表</h3> 1084 1085 <h4 class="mume-header ItemColor">表结构:</h4> 1086 1087 <table class="ItemColor"> 1088 <thead> 1089 <tr> 1090 <th class="ItemColor">Columns Name</th> 1091 <th class="ItemColor">SQL TYPE</th> 1092 </tr> 1093 </thead> 1094 <tbody> 1095 <tr> 1096 <td>id</td> 1097 <td>INT</td> 1098 </tr> 1099 <tr> 1100 <td>type</td> 1101 <td>NUM</td> 1102 </tr> 1103 <tr> 1104 <td>name</td> 1105 <td>NUM</td> 1106 </tr> 1107 <tr> 1108 <td>cpu</td> 1109 <td>INT</td> 1110 </tr> 1111 </tbody> 1112 </table> 1113 <h4 class="mume-header ItemColor">表描述:</h4> 1114 1115 <p class="ItemColor">记录时钟信息</p> 1116 <h4 class="mume-header ItemColor">字段详细描述:</h4> 1117 1118 <p class="ItemColor">Type:时钟事件类型<br> 1119 Name:时钟事件名称</p> 1120 1121 <h3 class="mume-header ItemColor">clock_event_filter表</h3> 1122 1123 <h4 class="mume-header ItemColor">表结构:</h4> 1124 1125 <table class="ItemColor"> 1126 <thead> 1127 <tr> 1128 <th class="ItemColor">Columns Name</th> 1129 <th class="ItemColor">SQL TYPE</th> 1130 </tr> 1131 </thead> 1132 <tbody> 1133 <tr> 1134 <td>id</td> 1135 <td>INT</td> 1136 </tr> 1137 <tr> 1138 <td>type</td> 1139 <td>NUM</td> 1140 </tr> 1141 <tr> 1142 <td>name</td> 1143 <td>NUM</td> 1144 </tr> 1145 <tr> 1146 <td>cpu</td> 1147 <td>INT</td> 1148 </tr> 1149 </tbody> 1150 </table> 1151 <h4 class="mume-header ItemColor">表描述:</h4> 1152 1153 <p class="ItemColor">此结构用来维护时钟事件,cpu与唯一的ID做关联</p> 1154 <h4 class="mume-header ItemColor">主要字段描述:</h4> 1155 1156 <p class="ItemColor">Type:时钟事件类型<br> 1157 Name:时钟事件名称</p> 1158 1159 <h3 class="mume-header ItemColor">cpu_measure_filter表</h3> 1160 1161 <h4 class="mume-header ItemColor">表结构:</h4> 1162 1163 <table class="ItemColor"> 1164 <thead> 1165 <tr> 1166 <th class="ItemColor">Columns Name</th> 1167 <th class="ItemColor">SQL TYPE</th> 1168 </tr> 1169 </thead> 1170 <tbody> 1171 <tr> 1172 <td>id</td> 1173 <td>INT</td> 1174 </tr> 1175 <tr> 1176 <td>type</td> 1177 <td>NUM</td> 1178 </tr> 1179 <tr> 1180 <td>name</td> 1181 <td>NUM</td> 1182 </tr> 1183 <tr> 1184 <td>cpu</td> 1185 <td>INT</td> 1186 </tr> 1187 </tbody> 1188 </table> 1189 <h4 class="mume-header ItemColor">表描述:</h4> 1190 1191 <p class="ItemColor">将cpu号作为key1,cpu的频率,空闲等状态作为key2,唯一确定一个filter_id</p> 1192 <h4 class="mume-header ItemColor">主要字段描述:</h4> 1193 1194 <p class="ItemColor">Id(filterid), cpu:事件名称,cpu号</p> 1195 1196 <h3 class="mume-header ItemColor">cpu_usage表</h3> 1197 1198 <h4 class="mume-header ItemColor">表结构:</h4> 1199 1200 <table class="ItemColor"> 1201 <thead> 1202 <tr> 1203 <th class="ItemColor">Columns Name</th> 1204 <th class="ItemColor">SQL TYPE</th> 1205 </tr> 1206 </thead> 1207 <tbody> 1208 <tr> 1209 <td>ts</td> 1210 <td>INT</td> 1211 </tr> 1212 <tr> 1213 <td>dur</td> 1214 <td>INT</td> 1215 </tr> 1216 <tr> 1217 <td>total_load</td> 1218 <td>REAL</td> 1219 </tr> 1220 <tr> 1221 <td>user_load</td> 1222 <td>REAL</td> 1223 </tr> 1224 <tr> 1225 <td>system_load</td> 1226 <td>REAL</td> 1227 </tr> 1228 <tr> 1229 <td>process_num</td> 1230 <td>INT</td> 1231 </tr> 1232 </tbody> 1233 </table> 1234 <h4 class="mume-header ItemColor">表描述:</h4> 1235 1236 <p class="ItemColor">记录了与CPU使用率相关的数据</p> 1237 <h4 class="mume-header ItemColor">主要字段描述:</h4> 1238 1239 <p class="ItemColor">total_load:总负荷<br> 1240 user_load:用户负载<br> 1241 system_load:系统负载<br> 1242 process_num:线程数</p> 1243 1244 <h3 class="mume-header ItemColor">data_dict表</h3> 1245 1246 <h4 class="mume-header ItemColor">表结构:</h4> 1247 1248 <table class="ItemColor"> 1249 <thead> 1250 <tr> 1251 <th class="ItemColor">Columns Name</th> 1252 <th class="ItemColor">SQL TYPE</th> 1253 </tr> 1254 </thead> 1255 <tbody> 1256 <tr> 1257 <td>id</td> 1258 <td>INT</td> 1259 </tr> 1260 <tr> 1261 <td>data</td> 1262 <td>NUM</td> 1263 </tr> 1264 </tbody> 1265 </table> 1266 <h4 class="mume-header ItemColor">表描述:</h4> 1267 1268 <p class="ItemColor">此表记录了一个数据类型ID和字符串的映射。</p> 1269 <h4 class="mume-header ItemColor">主要字段描述:</h4> 1270 1271 <p class="ItemColor">id:索引值<br> 1272 data:字符串</p> 1273 1274 <h3 class="mume-header ItemColor">data_type表</h3> 1275 1276 <h4 class="mume-header ItemColor">表结构:</h4> 1277 1278 <table class="ItemColor"> 1279 <thead> 1280 <tr> 1281 <th class="ItemColor">Columns Name</th> 1282 <th class="ItemColor">SQL TYPE</th> 1283 </tr> 1284 </thead> 1285 <tbody> 1286 <tr> 1287 <td>id</td> 1288 <td>INT</td> 1289 </tr> 1290 <tr> 1291 <td>typeId</td> 1292 <td>INT</td> 1293 </tr> 1294 <tr> 1295 <td>desc</td> 1296 <td>NUM</td> 1297 </tr> 1298 </tbody> 1299 </table> 1300 <h4 class="mume-header ItemColor">表描述:</h4> 1301 1302 <p class="ItemColor">此表记录了一个数据类型ID和数据描述的映射。</p> 1303 <h4 class="mume-header ItemColor">主要字段描述:</h4> 1304 1305 <p class="ItemColor">typeId::数据类型id<br> 1306 Desc:数据类型描述</p> 1307 1308 <h3 class="mume-header ItemColor">diskio表</h3> 1309 1310 <h4 class="mume-header ItemColor">表结构:</h4> 1311 1312 <table class="ItemColor"> 1313 <thead> 1314 <tr> 1315 <th class="ItemColor">Columns Name</th> 1316 <th class="ItemColor">SQL TYPE</th> 1317 </tr> 1318 </thead> 1319 <tbody> 1320 <tr> 1321 <td>ts</td> 1322 <td>INT</td> 1323 </tr> 1324 <tr> 1325 <td>dur</td> 1326 <td>INT</td> 1327 </tr> 1328 <tr> 1329 <td>rd</td> 1330 <td>INT</td> 1331 </tr> 1332 <tr> 1333 <td>wr</td> 1334 <td>INT</td> 1335 </tr> 1336 <tr> 1337 <td>rd_speed</td> 1338 <td>REAL</td> 1339 </tr> 1340 <tr> 1341 <td>wr_speed</td> 1342 <td>REAL</td> 1343 </tr> 1344 <tr> 1345 <td>rd_count</td> 1346 <td>INT</td> 1347 </tr> 1348 <tr> 1349 <td>wr_count</td> 1350 <td>INT</td> 1351 </tr> 1352 <tr> 1353 <td>rd_count_speed</td> 1354 <td>REAL</td> 1355 </tr> 1356 <tr> 1357 <td>wr_count_speed</td> 1358 <td>REAL</td> 1359 </tr> 1360 </tbody> 1361 </table> 1362 <h4 class="mume-header ItemColor">表描述:</h4> 1363 1364 <p class="ItemColor">记录了与磁盘读写相关的数据</p> 1365 <h4 class="mume-header ItemColor">主要字段描述:</h4> 1366 1367 <p class="ItemColor">rd_sectors_kb:读数据的速度<br> 1368 wr_sectors_kb:写入数据的速度<br> 1369 ts:时间戳</p> 1370 1371 <h3 class="mume-header ItemColor">file_system_callstack表</h3> 1372 1373 <h4 class="mume-header ItemColor">表结构:</h4> 1374 1375 <table class="ItemColor"> 1376 <thead> 1377 <tr> 1378 <th class="ItemColor">Columns Name</th> 1379 <th class="ItemColor">SQL TYPE</th> 1380 </tr> 1381 </thead> 1382 <tbody> 1383 <tr> 1384 <td>callchain_id</td> 1385 <td>INT</td> 1386 </tr> 1387 <tr> 1388 <td>depth</td> 1389 <td>INT</td> 1390 </tr> 1391 <tr> 1392 <td>ip</td> 1393 <td>INT</td> 1394 </tr> 1395 <tr> 1396 <td>symbols_id</td> 1397 <td>INT</td> 1398 </tr> 1399 <tr> 1400 <td>file_path_id</td> 1401 <td>INT</td> 1402 </tr> 1403 </tbody> 1404 </table> 1405 <h4 class="mume-header ItemColor">表描述:</h4> 1406 1407 <p class="ItemColor">记录了采样相关信息。</p> 1408 <h4 class="mume-header ItemColor">主要字段描述:</h4> 1409 1410 <p class="ItemColor">callchain_id:调用栈信息<br> 1411 depth:采样深度<br> 1412 ip:表识着唯一的文件调用栈的地址<br> 1413 symbols_id:存放函数名ID与data_dict表关联可以取出函数名<br> 1414 file_path_id:文件路径ID</p> 1415 1416 <h3 class="mume-header ItemColor">file_system_sample表</h3> 1417 1418 <h4 class="mume-header ItemColor">表结构:</h4> 1419 1420 <table class="ItemColor"> 1421 <thead> 1422 <tr> 1423 <th class="ItemColor">Columns Name</th> 1424 <th class="ItemColor">SQL TYPE</th> 1425 </tr> 1426 </thead> 1427 <tbody> 1428 <tr> 1429 <td>callchain</td> 1430 <td>INT</td> 1431 </tr> 1432 <tr> 1433 <td>type</td> 1434 <td>INT</td> 1435 </tr> 1436 <tr> 1437 <td>ipid</td> 1438 <td>INT</td> 1439 </tr> 1440 <tr> 1441 <td>start_ts</td> 1442 <td>INT</td> 1443 </tr> 1444 <tr> 1445 <td>end_ts</td> 1446 <td>INT</td> 1447 </tr> 1448 <tr> 1449 <td>dur</td> 1450 <td>INT</td> 1451 </tr> 1452 <tr> 1453 <td>return_value</td> 1454 <td>INT</td> 1455 </tr> 1456 <tr> 1457 <td>error_code</td> 1458 <td>INT</td> 1459 </tr> 1460 <tr> 1461 <td>fd</td> 1462 <td>INT</td> 1463 </tr> 1464 <tr> 1465 <td>size</td> 1466 <td>INT</td> 1467 </tr> 1468 <tr> 1469 <td>first_argument</td> 1470 <td>INT</td> 1471 </tr> 1472 <tr> 1473 <td>second_argument</td> 1474 <td>INT</td> 1475 </tr> 1476 <tr> 1477 <td>third_argument</td> 1478 <td>INT</td> 1479 </tr> 1480 <tr> 1481 <td>fourth_argument</td> 1482 <td>INT</td> 1483 </tr> 1484 </tbody> 1485 </table> 1486 <h4 class="mume-header ItemColor">表描述:</h4> 1487 1488 <p class="ItemColor">记录了调用栈的相关信息。</p> 1489 <h4 class="mume-header ItemColor">主要字段描述:</h4> 1490 1491 <p class="ItemColor">callchain:调用栈信息ID与file_system_callstack表中call_chain_id字段相关联<br> 1492 type:对应文件操作open,close,read,write<br> 1493 ipid:线程所属的进程ID<br> 1494 start_ts:开始时间<br> 1495 end_ts:结束时间<br> 1496 dur:耗时<br> 1497 return_value:文件操作的返回值<br> 1498 error_code:文件操作发生错误时的错误码<br> 1499 fd:文件描述符fd<br> 1500 size:在type为read,write时对应的文件的读或者写的大小<br> 1501 first_argument:参数一<br> 1502 second_argument:参数二</p> 1503 third_argument:参数三</p> 1504 fourth_argument:参数四</p> 1505 1506 <h3 class="mume-header ItemColor">hidump表</h3> 1507 1508 <h4 class="mume-header ItemColor">表结构:</h4> 1509 1510 <table class="ItemColor"> 1511 <thead> 1512 <tr> 1513 <th class="ItemColor">Columns Name</th> 1514 <th class="ItemColor">SQL TYPE</th> 1515 </tr> 1516 </thead> 1517 <tbody> 1518 <tr> 1519 <td>id</td> 1520 <td>INT</td> 1521 </tr> 1522 <tr> 1523 <td>ts</td> 1524 <td>INT</td> 1525 </tr> 1526 <tr> 1527 <td>fps</td> 1528 <td>INT</td> 1529 </tr> 1530 </tbody> 1531 </table> 1532 <h4 class="mume-header ItemColor">表描述:</h4> 1533 1534 <p class="ItemColor">此表记录了设备的帧率信息,fps。</p> 1535 <h4 class="mume-header ItemColor">相关字段描述:</h4> 1536 1537 <p class="ItemColor">fps:帧率值</p> 1538 1539 <h3 class="mume-header ItemColor">instant表</h3> 1540 1541 <h4 class="mume-header ItemColor">表结构:</h4> 1542 1543 <table class="ItemColor"> 1544 <thead> 1545 <tr> 1546 <th class="ItemColor">Columns Name</th> 1547 <th class="ItemColor">SQL TYPE</th> 1548 </tr> 1549 </thead> 1550 <tbody> 1551 <tr> 1552 <td>ts</td> 1553 <td>INT</td> 1554 </tr> 1555 <tr> 1556 <td>name</td> 1557 <td>NUM</td> 1558 </tr> 1559 <tr> 1560 <td>ref</td> 1561 <td>INT</td> 1562 </tr> 1563 <tr> 1564 <td>ref_type</td> 1565 <td>NUM</td> 1566 </tr> 1567 </tbody> 1568 </table> 1569 <h4 class="mume-header ItemColor">表描述:</h4> 1570 1571 <p class="ItemColor">记录了系统中的waking和wakeup事件。</p> 1572 <h4 class="mume-header ItemColor">字段描述:</h4> 1573 1574 <p class="ItemColor">ts:唤醒时间<br> 1575 name:唤醒事件的名称<br> 1576 ref:索引号<br> 1577 ref_type:索引类型</p> 1578 1579 1580 <h3 class="mume-header ItemColor">irq表</h3> 1581 1582 <h4 class="mume-header ItemColor">表结构:</h4> 1583 1584 <table class="ItemColor"> 1585 <thead> 1586 <tr> 1587 <th class="ItemColor">Columns Name</th> 1588 <th class="ItemColor">SQL TYPE</th> 1589 </tr> 1590 </thead> 1591 <tbody> 1592 <tr> 1593 <td>id</td> 1594 <td>INT</td> 1595 </tr> 1596 <tr> 1597 <td>ts</td> 1598 <td>INT</td> 1599 </tr> 1600 <tr> 1601 <td>dur</td> 1602 <td>INT</td> 1603 </tr> 1604 <tr> 1605 <td>callid</td> 1606 <td>INT</td> 1607 </tr> 1608 <tr> 1609 <td>cat</td> 1610 <td>NUM</td> 1611 </tr> 1612 <tr> 1613 <td>name</td> 1614 <td>NUN</td> 1615 </tr> 1616 <tr> 1617 <td>depth</td> 1618 <td>INT</td> 1619 </tr> 1620 <tr> 1621 <td>cookie</td> 1622 <td>INT</td> 1623 </tr> 1624 <tr> 1625 <td>parent_id</td> 1626 <td>INT</td> 1627 </tr> 1628 <tr> 1629 <td>argsetid</td> 1630 <td>INT</td> 1631 </tr> 1632 <tr> 1633 <td>chainId</td> 1634 <td>NUM</td> 1635 </tr> 1636 <tr> 1637 <td>spanId</td> 1638 <td>NUM</td> 1639 </tr> 1640 <tr> 1641 <td>parentSpanId</td> 1642 <td>NUM</td> 1643 </tr> 1644 <tr> 1645 <td>flag</td> 1646 <td>NUM</td> 1647 </tr> 1648 <tr> 1649 <td>args</td> 1650 <td>NUM</td> 1651 </tr> 1652 1653 </tbody> 1654 </table> 1655 <h4 class="mume-header ItemColor">表描述:</h4> 1656 1657 <p class="ItemColor">记录中断相关事件。</p> 1658 <h4 class="mume-header ItemColor">字段描述:</h4> 1659 1660 <p class="ItemColor">dur:调用中断时长<br> 1661 callid:调用中断者的ID,比如针对线程表里面的id<br> 1662 name:调用中断的名称<br> 1663 depth:中断调用的深度<br> 1664 parent_id:父调用中断的id<br> 1665 spanId:分布式调用中断关联关系</p> 1666 1667 <h3 class="mume-header ItemColor">live_process表</h3> 1668 1669 <h4 class="mume-header ItemColor">表结构:</h4> 1670 1671 <table class="ItemColor"> 1672 <thead> 1673 <tr> 1674 <th class="ItemColor">Columns Name</th> 1675 <th class="ItemColor">SQL TYPE</th> 1676 </tr> 1677 </thead> 1678 <tbody> 1679 <tr> 1680 <td>ts</td> 1681 <td>INT</td> 1682 </tr> 1683 <tr> 1684 <td>dur</td> 1685 <td>INT</td> 1686 </tr> 1687 <tr> 1688 <td>cpu_time</td> 1689 <td>INT</td> 1690 </tr> 1691 <tr> 1692 <td>process_id</td> 1693 <td>INT</td> 1694 </tr> 1695 <tr> 1696 <td>process_name</td> 1697 <td>NUM</td> 1698 </tr> 1699 <tr> 1700 <td>parent_process_id</td> 1701 <td>INT</td> 1702 </tr> 1703 <tr> 1704 <td>uid</td> 1705 <td>INT</td> 1706 </tr> 1707 <tr> 1708 <td>user_name</td> 1709 <td>NUM</td> 1710 </tr> 1711 <tr> 1712 <td>cpu_usage</td> 1713 <td>REAL</td> 1714 </tr> 1715 <tr> 1716 <td>pss_info</td> 1717 <td>INT</td> 1718 </tr> 1719 <tr> 1720 <td>thread_num</td> 1721 <td>INT</td> 1722 </tr> 1723 <tr> 1724 <td>disk_writes</td> 1725 <td>INT</td> 1726 </tr> 1727 <tr> 1728 <td>disk_reads</td> 1729 <td>INT</td> 1730 </tr> 1731 </tbody> 1732 </table> 1733 <h4 class="mume-header ItemColor">表描述:</h4> 1734 1735 <p class="ItemColor">记录了一些实时的进程中执行的一些数据。</p> 1736 <h4 class="mume-header ItemColor">主要字段描述:</h4> 1737 1738 <p class="ItemColor">process_id:进程id<br> 1739 process_name:进程名<br> 1740 parent_process_id:父进程的id<br> 1741 uid:用户id<br> 1742 user_name:用户名<br> 1743 cpu_usage:cpu使用率<br> 1744 pss_info:进程信息<br> 1745 thread_num:线程数量<br> 1746 disk_writes:磁盘写量<br> 1747 disk_reads:磁盘读量</p> 1748 1749 <h3 class="mume-header ItemColor">log表</h3> 1750 1751 <h4 class="mume-header ItemColor">表结构:</h4> 1752 1753 <table class="ItemColor"> 1754 <thead> 1755 <tr> 1756 <th class="ItemColor">Columns Name</th> 1757 <th class="ItemColor">SQL TYPE</th> 1758 </tr> 1759 </thead> 1760 <tbody> 1761 <tr> 1762 <td>seq</td> 1763 <td>INT</td> 1764 </tr> 1765 <tr> 1766 <td>ts</td> 1767 <td>INT</td> 1768 </tr> 1769 <tr> 1770 <td>pid</td> 1771 <td>INT</td> 1772 </tr> 1773 <tr> 1774 <td>tid</td> 1775 <td>INT</td> 1776 </tr> 1777 <tr> 1778 <td>level</td> 1779 <td>NUM</td> 1780 </tr> 1781 <tr> 1782 <td>tag</td> 1783 <td>NUM</td> 1784 </tr> 1785 <tr> 1786 <td>context</td> 1787 <td>NUM</td> 1788 </tr> 1789 <tr> 1790 <td>origints</td> 1791 <td>INT</td> 1792 </tr> 1793 </tbody> 1794 </table> 1795 <h4 class="mume-header ItemColor">表描述:</h4> 1796 1797 <p class="ItemColor">记录日志信息。</p> 1798 <h4 class="mume-header ItemColor">关键字段描述:</h4> 1799 1800 <p class="ItemColor">Seq:日志序号,保证日志解析的准确性<br> 1801 Ts:打印日志时间<br> 1802 Pid:日志的进程号<br> 1803 Tid:日志的线程号<br> 1804 Level:日志级别<br> 1805 Tag:日志标签<br> 1806 Context:日志内容</p> 1807 1808 <h3 class="mume-header ItemColor">measure表</h3> 1809 1810 <h4 class="mume-header ItemColor">表结构:</h4> 1811 1812 <table class="ItemColor"> 1813 <thead> 1814 <tr> 1815 <th class="ItemColor">Columns Name</th> 1816 <th class="ItemColor">SQL TYPE</th> 1817 </tr> 1818 </thead> 1819 <tbody> 1820 <tr> 1821 <td>type</td> 1822 <td>NUM</td> 1823 </tr> 1824 <tr> 1825 <td>ts</td> 1826 <td>INT</td> 1827 </tr> 1828 <tr> 1829 <td>value</td> 1830 <td>INT</td> 1831 </tr> 1832 <tr> 1833 <td>filter_id</td> 1834 <td>INT</td> 1835 </tr> 1836 </tbody> 1837 </table> 1838 <h4 class="mume-header ItemColor">表描述:</h4> 1839 1840 <p class="ItemColor">记录所有的计量值。</p> 1841 <h4 class="mume-header ItemColor">关键字段描述:</h4> 1842 1843 <p class="ItemColor">ts:事件时间<br> 1844 value:数值<br> 1845 filter_id:对应filter表中的ID</p> 1846 1847 <h3 class="mume-header ItemColor">measure_filter表</h3> 1848 1849 <h4 class="mume-header ItemColor">表结构:</h4> 1850 1851 <table class="ItemColor"> 1852 <thead> 1853 <tr> 1854 <th class="ItemColor">Columns Name</th> 1855 <th class="ItemColor">SQL TYPE</th> 1856 </tr> 1857 </thead> 1858 <tbody> 1859 <tr> 1860 <td>id</td> 1861 <td>NUM</td> 1862 </tr> 1863 <tr> 1864 <td>type</td> 1865 <td>NUM</td> 1866 </tr> 1867 <tr> 1868 <td>name</td> 1869 <td>INT</td> 1870 </tr> 1871 <tr> 1872 <td>source_arg_set_id</td> 1873 <td>INT</td> 1874 </tr> 1875 </tbody> 1876 </table> 1877 <h4 class="mume-header ItemColor">表描述:</h4> 1878 <p class="ItemColor">记录一个递增的filterid队列,所有其他的filter类型在获取过程中,均从此数据列表中获取下一个可用的filter_id并做记录。</p> 1879 <h4 class="mume-header ItemColor">字段详细描述:</h4> 1880 1881 <p class="ItemColor">过滤分类(type),过滤名称(key2),数据ID(key1)。<br> 1882 数据ID在process_measure_filter, sys_event_filter中作为id。</p> 1883 1884 <h3 class="mume-header ItemColor">meta表</h3> 1885 1886 <h4 class="mume-header ItemColor">表结构:</h4> 1887 1888 <table class="ItemColor"> 1889 <thead> 1890 <tr> 1891 <th class="ItemColor">Columns Name</th> 1892 <th class="ItemColor">SQL TYPE</th> 1893 </tr> 1894 </thead> 1895 <tbody> 1896 <tr> 1897 <td>name</td> 1898 <td>NUM</td> 1899 </tr> 1900 <tr> 1901 <td>value</td> 1902 <td>NUM</td> 1903 </tr> 1904 </tbody> 1905 </table> 1906 <h4 class="mume-header ItemColor">表描述:</h4> 1907 1908 <p class="ItemColor">此表记录了数据解析或导出时的一些现场数据,比如使用的trace_streamer版本, 工具的发布时间,数据解析的时间,数据的持续时长,以及原始数据的格式。</p> 1909 <h4 class="mume-header ItemColor">主要字段描述:</h4> 1910 1911 <p class="ItemColor">Name:指定元数据的key<br> 1912 Value:指定元数据的value</p> 1913 1914 <h3 class="mume-header ItemColor">native_hook表</h3> 1915 1916 <h4 class="mume-header ItemColor">表结构:</h4> 1917 1918 <table class="ItemColor"> 1919 <thead> 1920 <tr> 1921 <th class="ItemColor">Columns Name</th> 1922 <th class="ItemColor">SQL TYPE</th> 1923 </tr> 1924 </thead> 1925 <tbody> 1926 <tr> 1927 <td>id</td> 1928 <td>INT</td> 1929 </tr> 1930 <tr> 1931 <td>eventId</td> 1932 <td>INT</td> 1933 </tr> 1934 <tr> 1935 <td>ipid</td> 1936 <td>INT</td> 1937 </tr> 1938 <tr> 1939 <td>itid</td> 1940 <td>INT</td> 1941 </tr> 1942 <tr> 1943 <td>event_type</td> 1944 <td>NUM</td> 1945 </tr> 1946 <tr> 1947 <td>sub_type</td> 1948 <td>NUM</td> 1949 </tr> 1950 <tr> 1951 <td>start_ts</td> 1952 <td>INT</td> 1953 </tr> 1954 <tr> 1955 <td>end_ts</td> 1956 <td>INT</td> 1957 </tr> 1958 <tr> 1959 <td>dur</td> 1960 <td>INT</td> 1961 </tr> 1962 <tr> 1963 <td>addr</td> 1964 <td>INT</td> 1965 </tr> 1966 <tr> 1967 <td>heap_size</td> 1968 <td>INT</td> 1969 </tr> 1970 <tr> 1971 <td>all_heap_size</td> 1972 <td>INT</td> 1973 </tr> 1974 <tr> 1975 <td>current_size_dur</td> 1976 <td>INT</td> 1977 </tr> 1978 </tbody> 1979 </table> 1980 <h4 class="mume-header ItemColor">表描述:</h4> 1981 1982 <p class="ItemColor">记录native_hook抓取的某个进程的堆内存,内存映射相关数据。</p> 1983 <h4 class="mume-header ItemColor">关键字段描述:</h4> 1984 1985 <p class="ItemColor">eventId:唯一标识一条native_hook数据<br> 1986 event_type:事件类型取值范围(AllocEvent,FreeEvent,MmapEvent, MunmapEvent)<br> 1987 sub_type:子事件类型(只有sub_type字段为MmapEvent时,该字段才会有值)<br> 1988 start_ts:申请内存开始时间<br> 1989 end_ts:释放内存时间<br> 1990 Dur:申请内存活跃时间<br> 1991 Addr:申请内存地址<br> 1992 mem_size:申请或释放内存大小<br> 1993 all_mem_size:从采集数据开始到当前时刻,申请并活跃的内存总量。 event_type为AllocEvent或者FreeEvent时,表示活跃的堆内存总量。当event_type为MmapEvent或者MunmapEvent时,表示活跃的映射内存总量<br> 1994 current_size_dur:表示当前活跃内存总量的持续时间</p> 1995 <h3 class="mume-header ItemColor">native_hook_frame表</h3> 1996 1997 <h4 class="mume-header ItemColor">表结构:</h4> 1998 1999 <table class="ItemColor"> 2000 <thead> 2001 <tr> 2002 <th class="ItemColor">Columns Name</th> 2003 <th class="ItemColor">SQL TYPE</th> 2004 </tr> 2005 </thead> 2006 <tbody> 2007 <tr> 2008 <td>id</td> 2009 <td>INT</td> 2010 </tr> 2011 <tr> 2012 <td>eventId</td> 2013 <td>INT</td> 2014 </tr> 2015 <tr> 2016 <td>depth</td> 2017 <td>INT</td> 2018 </tr> 2019 <tr> 2020 <td>ip</td> 2021 <td>INT</td> 2022 </tr> 2023 <tr> 2024 <td>sp</td> 2025 <td>INT</td> 2026 </tr> 2027 <tr> 2028 <td>symbol_name</td> 2029 <td>NUM</td> 2030 </tr> 2031 <tr> 2032 <td>file_path</td> 2033 <td>NUM</td> 2034 </tr> 2035 <tr> 2036 <td>offset</td> 2037 <td>INT</td> 2038 </tr> 2039 <tr> 2040 <td>symbol_offset</td> 2041 <td>INT</td> 2042 </tr> 2043 </tbody> 2044 </table> 2045 <h4 class="mume-header ItemColor">表描述:</h4> 2046 2047 <p class="ItemColor">记录了内存的申请和释放的堆栈。</p> 2048 <h4 class="mume-header ItemColor">相关字段描述:</h4> 2049 2050 <p class="ItemColor">eventID:标识一组调用堆栈<br> 2051 depth:调用栈深度<br> 2052 symbol_name:函数名 file_payh:函数所属文件<br> 2053 file_payh:函数所属文件</p> 2054 <h3 class="mume-header ItemColor">network表</h3> 2055 2056 <h4 class="mume-header ItemColor">表结构:</h4> 2057 2058 <table class="ItemColor"> 2059 <thead> 2060 <tr> 2061 <th class="ItemColor">Columns Name</th> 2062 <th class="ItemColor">SQL TYPE</th> 2063 </tr> 2064 </thead> 2065 <tbody> 2066 <tr> 2067 <td>ts</td> 2068 <td>INT</td> 2069 </tr> 2070 <tr> 2071 <td>dur</td> 2072 <td>INT</td> 2073 </tr> 2074 <tr> 2075 <td>tx</td> 2076 <td>INT</td> 2077 </tr> 2078 <tr> 2079 <td>rx</td> 2080 <td>INT</td> 2081 </tr> 2082 <tr> 2083 <td>tx_speed</td> 2084 <td>REAL</td> 2085 </tr> 2086 <tr> 2087 <td>rx_speed</td> 2088 <td>REAL</td> 2089 </tr> 2090 <tr> 2091 <td>packet_in</td> 2092 <td>INT</td> 2093 </tr> 2094 <tr> 2095 <td>packet_in_sec</td> 2096 <td>REAL</td> 2097 </tr> 2098 <tr> 2099 <td>packet_out</td> 2100 <td>INT</td> 2101 </tr> 2102 <tr> 2103 <td>packet_out_sec</td> 2104 <td>REAL</td> 2105 </tr> 2106 <tr> 2107 <td>net_type</td> 2108 <td>NUM</td> 2109 </tr> 2110 </tbody> 2111 </table> 2112 <h4 class="mume-header ItemColor">表描述:</h4> 2113 2114 <p class="ItemColor">记录了网络数据传输相关的信息。</p> 2115 <h4 class="mume-header ItemColor">主要字段描述:</h4> 2116 2117 <p class="ItemColor">tv_sec:时间,秒为单位<br> 2118 tv_nsec:时间,纳秒为单位<br> 2119 tx_bytes:网络数据的写入量<br> 2120 rx_bytes:网络数据的读取量</p> 2121 <h3 class="mume-header ItemColor">perf_callchain表</h3> 2122 2123 <h4 class="mume-header ItemColor">表结构:</h4> 2124 2125 <table class="ItemColor"> 2126 <thead> 2127 <tr> 2128 <th class="ItemColor">Columns Name</th> 2129 <th class="ItemColor">SQL TYPE</th> 2130 </tr> 2131 </thead> 2132 <tbody> 2133 <tr> 2134 <td>id</td> 2135 <td>INT</td> 2136 </tr> 2137 <tr> 2138 <td>sample_id</td> 2139 <td>INT</td> 2140 </tr> 2141 <tr> 2142 <td>callchain_id</td> 2143 <td>INT</td> 2144 </tr> 2145 <tr> 2146 <td>vaddr_in_file</td> 2147 <td>INT</td> 2148 </tr> 2149 <tr> 2150 <td>file_id</td> 2151 <td>INT</td> 2152 </tr> 2153 <tr> 2154 <td>symbol_id</td> 2155 <td>INT</td> 2156 </tr> 2157 </tbody> 2158 </table> 2159 <h4 class="mume-header ItemColor">表描述:</h4> 2160 2161 <p class="ItemColor">记录了Hiperf采样数据的调用栈信息。</p> 2162 <h4 class="mume-header ItemColor">主要字段描述:</h4> 2163 2164 <p class="ItemColor">Sample_id:与PerfSample中的Sample_id相关联。代表一次采样<br> 2165 callchain_id: 调用栈深度<br> 2166 vaddr_in_file:函数在文件中的虚拟地址<br> 2167 file_id:与PerfFiles中的file_id字段相关联<br> 2168 symbol_id:与PerfFiles中的symbol_id相关联</p> 2169 <h3 class="mume-header ItemColor">perf_files表</h3> 2170 2171 <h4 class="mume-header ItemColor">表结构:</h4> 2172 2173 <table class="ItemColor"> 2174 <thead> 2175 <tr> 2176 <th class="ItemColor">Columns Name</th> 2177 <th class="ItemColor">SQL TYPE</th> 2178 </tr> 2179 </thead> 2180 <tbody> 2181 <tr> 2182 <td>id</td> 2183 <td>INT</td> 2184 </tr> 2185 <tr> 2186 <td>file_id</td> 2187 <td>INT</td> 2188 </tr> 2189 <tr> 2190 <td>symbol</td> 2191 <td>NUM</td> 2192 </tr> 2193 <tr> 2194 <td>path</td> 2195 <td>NUM</td> 2196 </tr> 2197 </tbody> 2198 </table> 2199 <h4 class="mume-header ItemColor">表描述:</h4> 2200 2201 <p class="ItemColor">记录Hiperf工具采集到的函数符号表和文件名。</p> 2202 <h4 class="mume-header ItemColor">主要字段描述:</h4> 2203 2204 <p class="ItemColor">file_id:文件编号<br> 2205 serial_id:一个文件中可能有多个函数,serial_id表示函数的编号<br> 2206 symbol:函数名<br> 2207 path:文件路径</p> 2208 <h3 class="mume-header ItemColor">perf_report表</h3> 2209 2210 <h4 class="mume-header ItemColor">表结构:</h4> 2211 2212 <table class="ItemColor"> 2213 <thead> 2214 <tr> 2215 <th class="ItemColor">Columns Name</th> 2216 <th class="ItemColor">SQL TYPE</th> 2217 </tr> 2218 </thead> 2219 <tbody> 2220 <tr> 2221 <td>id</td> 2222 <td>INT</td> 2223 </tr> 2224 <tr> 2225 <td>report_type</td> 2226 <td>NUM</td> 2227 </tr> 2228 <tr> 2229 <td>report_value</td> 2230 <td>NUM</td> 2231 </tr> 2232 </tbody> 2233 </table> 2234 <h4 class="mume-header ItemColor">表描述:</h4> 2235 2236 <p class="ItemColor">记录Hiperf工具采集数据时的配置信息。包括:抓取的事件类型,抓取数据的命令, 抓数据时指定的进程名称。</p> 2237 <h4 class="mume-header ItemColor">主要字段描述:</h4> 2238 2239 <p class="ItemColor">report_type:数据类型。取值只有三种类型:config_name(事件类型), workload(抓取的进程名), cmdline(抓取命令)<br> 2240 report_value: 对应类型的取值</p> 2241 <h3 class="mume-header ItemColor">perf_sample表</h3> 2242 2243 <h4 class="mume-header ItemColor">表结构:</h4> 2244 2245 <table class="ItemColor"> 2246 <thead> 2247 <tr> 2248 <th class="ItemColor">Columns Name</th> 2249 <th class="ItemColor">SQL TYPE</th> 2250 </tr> 2251 </thead> 2252 <tbody> 2253 <tr> 2254 <td>id</td> 2255 <td>INT</td> 2256 </tr> 2257 <tr> 2258 <td>sample_id</td> 2259 <td>INT</td> 2260 </tr> 2261 <tr> 2262 <td>timestamp</td> 2263 <td>INT</td> 2264 </tr> 2265 <tr> 2266 <td>thread_id</td> 2267 <td>INT</td> 2268 </tr> 2269 <tr> 2270 <td>event_count</td> 2271 <td>INT</td> 2272 </tr> 2273 <tr> 2274 <td>event_type_id</td> 2275 <td>INT</td> 2276 </tr> 2277 <tr> 2278 <td>timestamp_trace</td> 2279 <td>INT</td> 2280 </tr> 2281 <tr> 2282 <td>cpu_id</td> 2283 <td>INT</td> 2284 </tr> 2285 <tr> 2286 <td>thread_state</td> 2287 <td>NUM</td> 2288 </tr> 2289 </tbody> 2290 </table> 2291 <h4 class="mume-header ItemColor">表描述:</h4> 2292 2293 <p class="ItemColor">记录Hiperf工具的采样信息。</p> 2294 <h4 class="mume-header ItemColor">主要字段描述:</h4> 2295 2296 <p class="ItemColor">sample_id:采样编码<br> 2297 timestamp:未进行时钟源同步的时间戳<br> 2298 thread_id:线程号<br> 2299 event_count:采样统计<br> 2300 event_type_id:事件类型编号。与PerfReport表的id字段相关联<br> 2301 timestamp_trace:时钟源同步后的时间戳<br> 2302 cpu_id:cpu核编号<br> 2303 thread_state:线程状态。采样对应Sched_Waking事件时,为Runing;对应Sched_Switch事件时,为Suspend。其余事件类型,为“-”</p> 2304 <h3 class="mume-header ItemColor">perf_thread表</h3> 2305 2306 <h4 class="mume-header ItemColor">表结构:</h4> 2307 2308 <table class="ItemColor"> 2309 <thead> 2310 <tr> 2311 <th class="ItemColor">Columns Name</th> 2312 <th class="ItemColor">SQL TYPE</th> 2313 </tr> 2314 </thead> 2315 <tbody> 2316 <tr> 2317 <td>id</td> 2318 <td>INT</td> 2319 </tr> 2320 <tr> 2321 <td>thread_id</td> 2322 <td>INT</td> 2323 </tr> 2324 <tr> 2325 <td>process_id</td> 2326 <td>INT</td> 2327 </tr> 2328 <tr> 2329 <td>thread_name</td> 2330 <td>NUM</td> 2331 </tr> 2332 </tbody> 2333 </table> 2334 <h4 class="mume-header ItemColor">表描述:</h4> 2335 2336 <p class="ItemColor">记录Hiperf工具采集到的进程和线程数据。</p> 2337 <h4 class="mume-header ItemColor">主要字段描述:</h4> 2338 2339 <p class="ItemColor">thread_id:线程号<br> 2340 process_id:进程号<br> 2341 thread_name:线程名</p> 2342 <h3 class="mume-header ItemColor">process表</h3> 2343 2344 <h4 class="mume-header ItemColor">表结构:</h4> 2345 2346 <table class="ItemColor"> 2347 <thead> 2348 <tr> 2349 <th class="ItemColor">Columns Name</th> 2350 <th class="ItemColor">SQL TYPE</th> 2351 </tr> 2352 </thead> 2353 <tbody> 2354 <tr> 2355 <td>id</td> 2356 <td>NUM</td> 2357 </tr> 2358 <tr> 2359 <td>type</td> 2360 <td>INT</td> 2361 </tr> 2362 <tr> 2363 <td>pid</td> 2364 <td>NUM</td> 2365 </tr> 2366 <tr> 2367 <td>name</td> 2368 <td>INT</td> 2369 </tr> 2370 <tr> 2371 <td>start_ts</td> 2372 <td>NUM</td> 2373 </tr> 2374 </tbody> 2375 </table> 2376 <h4 class="mume-header ItemColor">表描述:</h4> 2377 2378 <p class="ItemColor">记录了进程相关数据。</p> 2379 <h4 class="mume-header ItemColor">关键字段描述:</h4> 2380 2381 <p class="ItemColor">id:进程在数据库重新重新定义的id,从0开始序列增长<br> 2382 pid:进程的真实id<br> 2383 name:进程名字</p> 2384 <h3 class="mume-header ItemColor">process_filter表</h3> 2385 2386 <h4 class="mume-header ItemColor">表结构:</h4> 2387 2388 <table class="ItemColor"> 2389 <thead> 2390 <tr> 2391 <th class="ItemColor">Columns Name</th> 2392 <th class="ItemColor">SQL TYPE</th> 2393 </tr> 2394 </thead> 2395 <tbody> 2396 <tr> 2397 <td>id</td> 2398 <td>INT</td> 2399 </tr> 2400 <tr> 2401 <td>type</td> 2402 <td>NUM</td> 2403 </tr> 2404 <tr> 2405 <td>name</td> 2406 <td>NUM</td> 2407 </tr> 2408 <tr> 2409 <td>ipid</td> 2410 <td>INT</td> 2411 </tr> 2412 </tbody> 2413 </table> 2414 <h4 class="mume-header ItemColor">表描述:</h4> 2415 2416 <p class="ItemColor">将进程ID作为key1,进程的内存,界面刷新,屏幕亮度等信息作为key2,唯一确定一个filter_id, filter_id同时被记录在filter表中。</p> 2417 <h4 class="mume-header ItemColor">主要字段描述:</h4> 2418 2419 <p class="ItemColor">id:进程id<br> 2420 type:进程类型<br> 2421 name:进程名<br> 2422 ipid:该进程表中的id与process表中的id相关联</p> 2423 <h3 class="mume-header ItemColor">process_measure表</h3> 2424 2425 <h4 class="mume-header ItemColor">表结构:</h4> 2426 2427 <table class="ItemColor"> 2428 <thead> 2429 <tr> 2430 <th class="ItemColor">Columns Name</th> 2431 <th class="ItemColor">SQL TYPE</th> 2432 </tr> 2433 </thead> 2434 <tbody> 2435 <tr> 2436 <td>type</td> 2437 <td>TEXT</td> 2438 </tr> 2439 <tr> 2440 <td>ts</td> 2441 <td>INT</td> 2442 </tr> 2443 <tr> 2444 <td>value</td> 2445 <td>NUM</td> 2446 </tr> 2447 <tr> 2448 <td>filter_id</td> 2449 <td>INT</td> 2450 </tr> 2451 </tbody> 2452 </table> 2453 <h4 class="mume-header ItemColor">表描述:</h4> 2454 2455 <p class="ItemColor">保存进程的内存,堆栈值等所有计量值信息。</p> 2456 <h4 class="mume-header ItemColor">字段详细描述:</h4> 2457 2458 <p class="ItemColor">ts:事件时间<br> 2459 value:数值<br> 2460 filter_id:对应process_measure_filter表中的ID</p> 2461 <h3 class="mume-header ItemColor">process_measure_filter表</h3> 2462 2463 <h4 class="mume-header ItemColor">表结构:</h4> 2464 2465 <table class="ItemColor"> 2466 <thead> 2467 <tr> 2468 <th class="ItemColor">Columns Name</th> 2469 <th class="ItemColor">SQL TYPE</th> 2470 </tr> 2471 </thead> 2472 <tbody> 2473 <tr> 2474 <td>id</td> 2475 <td>INT</td> 2476 </tr> 2477 <tr> 2478 <td>type</td> 2479 <td>NUM</td> 2480 </tr> 2481 <tr> 2482 <td>name</td> 2483 <td>NUM</td> 2484 </tr> 2485 <tr> 2486 <td>ipid</td> 2487 <td>INT</td> 2488 </tr> 2489 </tbody> 2490 </table> 2491 <h4 class="mume-header ItemColor">表描述:</h4> 2492 2493 <p class="ItemColor">将进程ID作为key1,进程的内存,界面刷新,屏幕亮度等信息作为key2,唯一确定一个filter_id, filter_id同时被记录在measure_filter表中。</p> 2494 <h4 class="mume-header ItemColor">字段详细描述:</h4> 2495 2496 <p class="ItemColor">filterid:来自measure_filter表<br> 2497 name:cpu状态名<br> 2498 ipid:进程内部编号</p> 2499 <h3 class="mume-header ItemColor">raw表</h3> 2500 2501 <h4 class="mume-header ItemColor">表结构:</h4> 2502 2503 <table class="ItemColor"> 2504 <thead> 2505 <tr> 2506 <th class="ItemColor">Columns Name</th> 2507 <th class="ItemColor">SQL TYPE</th> 2508 </tr> 2509 </thead> 2510 <tbody> 2511 <tr> 2512 <td>id</td> 2513 <td>INT</td> 2514 </tr> 2515 <tr> 2516 <td>type</td> 2517 <td>NUM</td> 2518 </tr> 2519 <tr> 2520 <td>ts</td> 2521 <td>INT</td> 2522 </tr> 2523 <tr> 2524 <td>name</td> 2525 <td>NUM</td> 2526 </tr> 2527 <tr> 2528 <td>cpu</td> 2529 <td>INT</td> 2530 </tr> 2531 <tr> 2532 <td>itid</td> 2533 <td>INT</td> 2534 </tr> 2535 </tbody> 2536 </table> 2537 <h4 class="mume-header ItemColor">表描述:</h4> 2538 2539 <p class="ItemColor">记录了系统中的waking、wakup、cpu_idel、cpu_frequency数据。</p> 2540 <h4 class="mume-header ItemColor">相关字段描述:</h4> 2541 2542 <p class="ItemColor">name:调度名称<br> 2543 cpu:事件发生在哪个CPU<br> 2544 itid:时间对应哪个utid</p> 2545 <h3 class="mume-header ItemColor">sched_slice表</h3> 2546 2547 <h4 class="mume-header ItemColor">表结构:</h4> 2548 2549 <table class="ItemColor"> 2550 <thead> 2551 <tr> 2552 <th class="ItemColor">Columns Name</th> 2553 <th class="ItemColor">SQL TYPE</th> 2554 </tr> 2555 </thead> 2556 <tbody> 2557 <tr> 2558 <td>id</td> 2559 <td>INT</td> 2560 </tr> 2561 <tr> 2562 <td>type</td> 2563 <td>NUM</td> 2564 </tr> 2565 <tr> 2566 <td>ts</td> 2567 <td>INT</td> 2568 </tr> 2569 <tr> 2570 <td>dur</td> 2571 <td>INT</td> 2572 </tr> 2573 <tr> 2574 <td>cpu</td> 2575 <td>INT</td> 2576 </tr> 2577 <tr> 2578 <td>itid</td> 2579 <td>INT</td> 2580 </tr> 2581 <tr> 2582 <td>end_state</td> 2583 <td>NUM</td> 2584 </tr> 2585 <tr> 2586 <td>priority</td> 2587 <td>INT</td> 2588 </tr> 2589 </tbody> 2590 </table> 2591 <h4 class="mume-header ItemColor">表描述:</h4> 2592 2593 <p class="ItemColor">此数据结构主要作为ThreadState的上下文使用,这张表是sched_switch事件的原始记录。</p> 2594 <h4 class="mume-header ItemColor">主要字段描述:</h4> 2595 2596 <p class="ItemColor">Dur:状态持续时长<br> 2597 ts:事件发生事件<br> 2598 cpu:事件发生在哪个cpu<br> 2599 itid:事件对应哪个utid<br> 2600 end_state:线程的终结状态</p> 2601 <h3 class="mume-header ItemColor">stat表</h3> 2602 2603 <h4 class="mume-header ItemColor">表结构:</h4> 2604 2605 <table class="ItemColor"> 2606 <thead> 2607 <tr> 2608 <th class="ItemColor">Columns Name</th> 2609 <th class="ItemColor">SQL TYPE</th> 2610 </tr> 2611 </thead> 2612 <tbody> 2613 <tr> 2614 <td>event_name</td> 2615 <td>NUM</td> 2616 </tr> 2617 <tr> 2618 <td>stat_type</td> 2619 <td>NUM</td> 2620 </tr> 2621 <tr> 2622 <td>count</td> 2623 <td>INT</td> 2624 </tr> 2625 <tr> 2626 <td>serverity</td> 2627 <td>NUM</td> 2628 </tr> 2629 <tr> 2630 <td>source</td> 2631 <td>NUM</td> 2632 </tr> 2633 </tbody> 2634 </table> 2635 <h4 class="mume-header ItemColor">表描述:</h4> 2636 2637 <p class="ItemColor">此结果用来统计数据解析中各类数据的数据条数,数据和合法性,数据的匹配程度(begin-end),数据的损失等,查看此结构对应的表,可对数据源有基本的了解。</p> 2638 <h4 class="mume-header ItemColor">主要字段描述:</h4> 2639 2640 <p class="ItemColor">event_name:数据类型<br> 2641 stat_type:数据状态<br> 2642 count:数据条数<br> 2643 severity:严重级别<br> 2644 source:数据来源</p> 2645 <h3 class="mume-header ItemColor">symbols表</h3> 2646 2647 <h4 class="mume-header ItemColor">表结构:</h4> 2648 2649 <table class="ItemColor"> 2650 <thead> 2651 <tr> 2652 <th class="ItemColor">Columns Name</th> 2653 <th class="ItemColor">SQL TYPE</th> 2654 </tr> 2655 </thead> 2656 <tbody> 2657 <tr> 2658 <td>id</td> 2659 <td>INT</td> 2660 </tr> 2661 <tr> 2662 <td>funcname</td> 2663 <td>NUM</td> 2664 </tr> 2665 <tr> 2666 <td>addr</td> 2667 <td>INT</td> 2668 </tr> 2669 </tbody> 2670 </table> 2671 <h4 class="mume-header ItemColor">表描述:</h4> 2672 2673 <p class="ItemColor">此表记录了数值和函数调用名称的映射关系。</p> 2674 <h4 class="mume-header ItemColor">相关字段描述:</h4> 2675 2676 <p class="ItemColor">funcname:系统调用名称<br> 2677 addr:系统调用地址</p> 2678 <h3 class="mume-header ItemColor">syscall表</h3> 2679 2680 <h4 class="mume-header ItemColor">表结构:</h4> 2681 2682 <table class="ItemColor"> 2683 <thead> 2684 <tr> 2685 <th class="ItemColor">Columns Name</th> 2686 <th class="ItemColor">SQL TYPE</th> 2687 </tr> 2688 </thead> 2689 <tbody> 2690 <tr> 2691 <td>syscall_num</td> 2692 <td>INT</td> 2693 </tr> 2694 <tr> 2695 <td>type</td> 2696 <td>TEXT</td> 2697 </tr> 2698 <tr> 2699 <td>ipid</td> 2700 <td>INT</td> 2701 </tr> 2702 <tr> 2703 <td>ts</td> 2704 <td>INT</td> 2705 </tr> 2706 <tr> 2707 <td>ret</td> 2708 <td>INT</td> 2709 </tr> 2710 </tbody> 2711 </table> 2712 <h4 class="mume-header ItemColor">表描述:</h4> 2713 2714 <p class="ItemColor">记录用户空间函数与内核空间函数相互调用记录。</p> 2715 <h4 class="mume-header ItemColor">相关字段描述:</h4> 2716 2717 <p class="ItemColor">syscall_num:系统调用的序号<br> 2718 type:enter或者exit<br> 2719 ipid:线程所属的进程ID<br> 2720 ts:时间戳<br> 2721 ret:返回值,在type为exit时有效</p> 2722 <h3 class="mume-header ItemColor">hisys_event_measure表</h3> 2723 2724 <h4 class="mume-header ItemColor">表结构:</h4> 2725 2726 <table class="ItemColor"> 2727 <thead> 2728 <tr> 2729 <th class="ItemColor">Columns Name</th> 2730 <th class="ItemColor">SQL TYPE</th> 2731 </tr> 2732 </thead> 2733 <tbody> 2734 <tr> 2735 <td>name_id</td> 2736 <td>INT</td> 2737 </tr> 2738 <tr> 2739 <td>key_id</td> 2740 <td>INT</td> 2741 </tr> 2742 <tr> 2743 <td>type</td> 2744 <td>INT</td> 2745 </tr> 2746 <tr> 2747 <td>int_value</td> 2748 <td>INT</td> 2749 </tr> 2750 <tr> 2751 <td>string_value</td> 2752 <td>TEXT</td> 2753 </tr> 2754 </tbody> 2755 </table> 2756 <h4 class="mume-header ItemColor">表描述:</h4> 2757 2758 <p class="ItemColor">记录所有的system event事件的相关数据,及其相关表的映射信息。</p> 2759 <h4 class="mume-header ItemColor">相关字段描述:</h4> 2760 2761 <p class="ItemColor">name_id:存放事件对应的ID,与app_name表和data_dict表相关联可以取出对应的字段<br> 2762 key_id:存放事件包含的字段的ID,通过上述关联关系可以取出对应的字段<br> 2763 type:存放事件所包含的字段的值所属的类型为int型还是string(0为int,1为string)<br> 2764 int_value:存放本事件所包含的字段的int型的值<br> 2765 string_value:存放本事件所包含的字段的string型的值</p> 2766 <h3 class="mume-header ItemColor">sys_event_filter表</h3> 2767 2768 <h4 class="mume-header ItemColor">表结构:</h4> 2769 2770 <table class="ItemColor"> 2771 <thead> 2772 <tr> 2773 <th class="ItemColor">Columns Name</th> 2774 <th class="ItemColor">SQL TYPE</th> 2775 </tr> 2776 </thead> 2777 <tbody> 2778 <tr> 2779 <td>id</td> 2780 <td>INT</td> 2781 </tr> 2782 <tr> 2783 <td>type</td> 2784 <td>NUM</td> 2785 </tr> 2786 <tr> 2787 <td>name</td> 2788 <td>NUM</td> 2789 </tr> 2790 </tbody> 2791 </table> 2792 <h4 class="mume-header ItemColor">表描述:</h4> 2793 2794 <p class="ItemColor">记录所有的filter。</p> 2795 <h4 class="mume-header ItemColor">相关字段描述:</h4> 2796 2797 <p class="ItemColor">type:文件类型<br> 2798 name:文件名</p> 2799 <h3 class="mume-header ItemColor">sys_mem_measure表</h3> 2800 2801 <h4 class="mume-header ItemColor">表结构:</h4> 2802 2803 <table class="ItemColor"> 2804 <thead> 2805 <tr> 2806 <th class="ItemColor">Columns Name</th> 2807 <th class="ItemColor">SQL TYPE</th> 2808 </tr> 2809 </thead> 2810 <tbody> 2811 <tr> 2812 <td>type</td> 2813 <td>TEXT</td> 2814 </tr> 2815 <tr> 2816 <td>ts</td> 2817 <td>INT</td> 2818 </tr> 2819 <tr> 2820 <td>value</td> 2821 <td>NUM</td> 2822 </tr> 2823 <tr> 2824 <td>filter_id</td> 2825 <td>NUM</td> 2826 </tr> 2827 </tbody> 2828 </table> 2829 <h4 class="mume-header ItemColor">表描述:</h4> 2830 2831 <p class="ItemColor">记录系统内存与系统虚拟内存。</p> 2832 <h4 class="mume-header ItemColor">相关字段描述:</h4> 2833 2834 <p class="ItemColor">ts:事件时间<br> 2835 value:数值<br> 2836 filter_id:对应filter表中的ID</p> 2837 <h3 class="mume-header ItemColor">thread表</h3> 2838 2839 <h4 class="mume-header ItemColor">表结构:</h4> 2840 2841 <table class="ItemColor"> 2842 <thead> 2843 <tr> 2844 <th class="ItemColor">Columns Name</th> 2845 <th class="ItemColor">SQL TYPE</th> 2846 </tr> 2847 </thead> 2848 <tbody> 2849 <tr> 2850 <td>id</td> 2851 <td>INT</td> 2852 </tr> 2853 <tr> 2854 <td>type</td> 2855 <td>NUM</td> 2856 </tr> 2857 <tr> 2858 <td>tid</td> 2859 <td>INT</td> 2860 </tr> 2861 <tr> 2862 <td>name</td> 2863 <td>NUM</td> 2864 </tr> 2865 <tr> 2866 <td>start_ts</td> 2867 <td>INT</td> 2868 </tr> 2869 <tr> 2870 <td>end_ts</td> 2871 <td>INT</td> 2872 </tr> 2873 <tr> 2874 <td>ipid</td> 2875 <td>INT</td> 2876 </tr> 2877 <tr> 2878 <td>is_main_thread</td> 2879 <td>INT</td> 2880 </tr> 2881 </tbody> 2882 </table> 2883 <h4 class="mume-header ItemColor">表描述</h4> 2884 2885 <p class="ItemColor">记录了线程相关数据。</p> 2886 <h4 class="mume-header ItemColor">字段详细描述:</h4> 2887 2888 <p class="ItemColor">id:线程在数据库重新重新定义的id,从0开始序列增长<br> 2889 ipid:线程所属的进程id, 关联process表中的ID<br> 2890 name:线程名字<br> 2891 is_main_thread:是否主线程,主线程即该线程实际就是进程本身</p> 2892 <h3 class="mume-header ItemColor">thread_filter表</h3> 2893 2894 <h4 class="mume-header ItemColor">表结构:</h4> 2895 2896 <table class="ItemColor"> 2897 <thead> 2898 <tr> 2899 <th class="ItemColor">Columns Name</th> 2900 <th class="ItemColor">SQL TYPE</th> 2901 </tr> 2902 </thead> 2903 <tbody> 2904 <tr> 2905 <td>id</td> 2906 <td>INT</td> 2907 </tr> 2908 <tr> 2909 <td>type</td> 2910 <td>NUM</td> 2911 </tr> 2912 <tr> 2913 <td>name</td> 2914 <td>NUM</td> 2915 </tr> 2916 <tr> 2917 <td>itid</td> 2918 <td>INT</td> 2919 </tr> 2920 </tbody> 2921 </table> 2922 <h4 class="mume-header ItemColor">表描述:</h4> 2923 2924 <p class="ItemColor">将线程ID作为key1,线程的内存,界面刷新,屏幕亮度等信息作为key2,唯一确定一个filter_id, filter_id同时被记录在filter表中。</p> 2925 <h4 class="mume-header ItemColor">主要字段描述:</h4> 2926 2927 <p class="ItemColor">id:线程id<br> 2928 type:线程类型<br> 2929 name:线程名称<br> 2930 itid:该表中的tid与thread表中的tid相关联</p> 2931 <h3 class="mume-header ItemColor">thread_state表</h3> 2932 2933 <h4 class="mume-header ItemColor">表结构:</h4> 2934 2935 <table class="ItemColor"> 2936 <thead> 2937 <tr> 2938 <th class="ItemColor">Columns Name</th> 2939 <th class="ItemColor">SQL TYPE</th> 2940 </tr> 2941 </thead> 2942 <tbody> 2943 <tr> 2944 <td>id</td> 2945 <td>INT</td> 2946 </tr> 2947 <tr> 2948 <td>type</td> 2949 <td>NUM</td> 2950 </tr> 2951 <tr> 2952 <td>ts</td> 2953 <td>INT</td> 2954 </tr> 2955 <tr> 2956 <td>dur</td> 2957 <td>INT</td> 2958 </tr> 2959 <tr> 2960 <td>cpu</td> 2961 <td>INT</td> 2962 </tr> 2963 <tr> 2964 <td>itid</td> 2965 <td>INT</td> 2966 </tr> 2967 <tr> 2968 <td>state</td> 2969 <td>NUM</td> 2970 </tr> 2971 </tbody> 2972 </table> 2973 <h4 class="mume-header ItemColor">表描述:</h4> 2974 2975 <p class="ItemColor">记录了线程状态相关的数据。</p> 2976 <h4 class="mume-header ItemColor">字段详细描述:</h4> 2977 2978 <p class="ItemColor">id:线程状态在数据库中的id,从0开始序列增长<br> 2979 ts:该线程状态的起始时间<br> 2980 dur:该线程状态的持续时间<br> 2981 cpu:该线程在哪个cpu上执行(针对running状态的线程)<br> 2982 itid:该状态所属的线程id, 关联线程表中的id<br> 2983 state:线程实际的的状态值</p> 2984 <pre class="font_languageIn- light" data-info data-role="codeBlock"><code class="ItemColor">'R', Runnable状态 2985'S', interruptible sleep 2986'D', uninterruptible sleep 2987'T', Stoped 2988't', Traced 2989'X', ExitedDead 2990'Z', ExitZombie 2991'x', TaskDead 2992'I', TaskDead 2993'K', WakeKill 2994'P', Parked 2995'N', NoLoad 2996</code></pre> 2997 <h3 class="mume-header ItemColor">trace_range表</h3> 2998 2999 <h4 class="mume-header ItemColor">表结构:</h4> 3000 3001 <table class="ItemColor"> 3002 <thead> 3003 <tr> 3004 <th class="ItemColor">Columns Name</th> 3005 <th class="ItemColor">SQL TYPE</th> 3006 </tr> 3007 </thead> 3008 <tbody> 3009 <tr> 3010 <td>start_ts</td> 3011 <td>NUM</td> 3012 </tr> 3013 <tr> 3014 <td>end_ts</td> 3015 <td>INT</td> 3016 </tr> 3017 </tbody> 3018 </table> 3019 <h4 class="mume-header ItemColor">表描述:</h4> 3020 3021 <p class="ItemColor">记录解析解析开始时间以及结束时间。</p> 3022 <h4 class="mume-header ItemColor">关键字段描述:</h4> 3023 3024 <p class="ItemColor">start_ts:trace的开始时间,纳秒为单位<br> 3025 end_ts:trace的结束时间,纳秒为单位</p> 3026</div> 3027 3028<script type="text/javascript"> 3029 window.onload = (() => { 3030 let isDark = window.location.search; 3031 if (isDark.indexOf("?") != -1) { 3032 isDark = isDark.substr(1, isDark.length - 1); 3033 } 3034 if (isDark == 'true') { 3035 document.getElementById("body").setAttribute('style', 'background-color:#272C34;') 3036 let header = document.getElementsByClassName('ItemColor') 3037 for (let i = 0; i < header.length; i++) { 3038 header[i].style.color = '#fff'; 3039 } 3040 let lightBackGround = document.getElementsByClassName('light') 3041 for (let i = 0; i < lightBackGround.length; i++) { 3042 lightBackGround[i].style.backgroundColor = '#32373F' 3043 } 3044 } 3045 }) 3046</script> 3047</body> 3048</html> 3049</body></html>