1/* 2 * Copyright (C) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import { SelectionParam, BoxJumpParam, SelectionData, Counter, Fps } from '../../../src/trace/bean/BoxSelection'; 17import { TraceRow } from '../../../src/trace/component/trace/base/TraceRow'; 18import { SpSystemTrace } from '../../../src/trace/component/SpSystemTrace'; 19jest.mock('../../../src/js-heap/model/DatabaseStruct', () => { 20 return {}; 21}); 22jest.mock('../../../src/trace/database/ui-worker/ProcedureWorkerSnapshot', () => { 23 return {}; 24}); 25jest.mock('../../../src/trace/database/ui-worker/ProcedureWorker', () => { 26 return {}; 27}); 28jest.mock('../../../src/trace/component/chart/FrameChart', () => { 29 return {}; 30}); 31 32jest.mock('../../../src/trace/component/trace/sheet/task/TabPaneTaskFrames', () => { 33 return {}; 34}); 35 36jest.mock('../../../src/trace/component/trace/sheet/native-memory/TabPaneNMCallTree', () => { 37 return {}; 38}); 39 40jest.mock('../../../src/trace/component/trace/base/TraceSheet', () => { 41 return {}; 42}); 43 44// @ts-ignore 45window.ResizeObserver = 46 window.ResizeObserver || 47 jest.fn().mockImplementation(() => ({ 48 disconnect: jest.fn(), 49 observe: jest.fn(), 50 unobserve: jest.fn(), 51 })); 52window.IntersectionObserver = jest.fn(); 53 54describe('BoxSelection Test', () => { 55 let sp = new SpSystemTrace(); 56 let itRow = new TraceRow(); 57 let selectionParam = new SelectionParam(); 58 it('BoxSelectionTest01', ()=> { 59 let selectionParam: SelectionParam; 60 selectionParam = { 61 recordStartNs: 0, 62 cpus: 1, 63 threadIds: 2, 64 trackIds: 1, 65 funTids: 2, 66 heapIds: 1, 67 nativeMemory: 3, 68 leftNs: 1, 69 rightNs: 1, 70 hasFps: true, 71 statisticsSelectData: 1, 72 perfAll: true, 73 }; 74 expect(selectionParam).not.toBeUndefined(); 75 expect(selectionParam).toMatchInlineSnapshot( 76 { 77 recordStartNs: expect.any(Number), 78 cpus: expect.any(Number), 79 threadIds: expect.any(Number), 80 trackIds: expect.any(Number), 81 funTids: expect.any(Number), 82 heapIds: expect.any(Number), 83 nativeMemory: expect.any(Number), 84 leftNs: expect.any(Number), 85 rightNs: expect.any(Number), 86 hasFps: expect.any(Boolean), 87 perfAll: expect.any(Boolean), 88 }, 89 ` 90{ 91 "cpus": Any<Number>, 92 "funTids": Any<Number>, 93 "hasFps": Any<Boolean>, 94 "heapIds": Any<Number>, 95 "leftNs": Any<Number>, 96 "nativeMemory": Any<Number>, 97 "perfAll": Any<Boolean>, 98 "recordStartNs": Any<Number>, 99 "rightNs": Any<Number>, 100 "statisticsSelectData": 1, 101 "threadIds": Any<Number>, 102 "trackIds": Any<Number>, 103} 104` 105 ); 106 }); 107 108 it('BoxSelectionTest02', function () { 109 let boxJumpParam: BoxJumpParam; 110 boxJumpParam = { 111 leftNs: 0, 112 rightNs: 0, 113 state: '', 114 processId: 0, 115 threadId: 0, 116 }; 117 expect(boxJumpParam).not.toBeUndefined(); 118 expect(boxJumpParam).toMatchInlineSnapshot( 119 { 120 leftNs: expect.any(Number), 121 rightNs: expect.any(Number), 122 state: expect.any(String), 123 processId: expect.any(Number), 124 threadId: expect.any(Number), 125 }, 126 ` 127{ 128 "leftNs": Any<Number>, 129 "processId": Any<Number>, 130 "rightNs": Any<Number>, 131 "state": Any<String>, 132 "threadId": Any<Number>, 133} 134` 135 ); 136 }); 137 138 it('BoxSelectionTest03', function () { 139 let selectionData: SelectionData; 140 selectionData = { 141 name: 'name', 142 process: 'process', 143 pid: 'pid', 144 thread: 'thread', 145 tid: 'tid', 146 wallDuration: 0, 147 avgDuration: 'avgDuration', 148 occurrences: 0, 149 state: 'state', 150 trackId: 0, 151 delta: 'delta', 152 rate: 'rate', 153 avgWeight: 'avgWeight', 154 count: 'count', 155 first: 'first', 156 last: 'last', 157 min: 'min', 158 max: 'max', 159 stateJX: 'stateJX', 160 }; 161 expect(selectionData).not.toBeUndefined(); 162 expect(selectionData).toMatchInlineSnapshot( 163 { 164 process: expect.any(String), 165 pid: expect.any(String), 166 thread: expect.any(String), 167 tid: expect.any(String), 168 wallDuration: expect.any(Number), 169 avgDuration: expect.any(String), 170 occurrences: expect.any(Number), 171 state: expect.any(String), 172 trackId: expect.any(Number), 173 delta: expect.any(String), 174 rate: expect.any(String), 175 avgWeight: expect.any(String), 176 count: expect.any(String), 177 first: expect.any(String), 178 last: expect.any(String), 179 min: expect.any(String), 180 max: expect.any(String), 181 stateJX: expect.any(String), 182 }, 183 ` 184{ 185 "avgDuration": Any<String>, 186 "avgWeight": Any<String>, 187 "count": Any<String>, 188 "delta": Any<String>, 189 "first": Any<String>, 190 "last": Any<String>, 191 "max": Any<String>, 192 "min": Any<String>, 193 "name": "name", 194 "occurrences": Any<Number>, 195 "pid": Any<String>, 196 "process": Any<String>, 197 "rate": Any<String>, 198 "state": Any<String>, 199 "stateJX": Any<String>, 200 "thread": Any<String>, 201 "tid": Any<String>, 202 "trackId": Any<Number>, 203 "wallDuration": Any<Number>, 204} 205` 206 ); 207 }); 208 209 it('BoxSelectionTest04', function () { 210 let counter: Counter; 211 counter = { 212 id: 0, 213 trackId: 0, 214 name: '', 215 value: 0, 216 startTime: 0, 217 }; 218 expect(counter).not.toBeUndefined(); 219 expect(counter).toMatchInlineSnapshot( 220 { 221 id: expect.any(Number), 222 trackId: expect.any(Number), 223 name: expect.any(String), 224 value: expect.any(Number), 225 startTime: expect.any(Number), 226 }, 227 ` 228{ 229 "id": Any<Number>, 230 "name": Any<String>, 231 "startTime": Any<Number>, 232 "trackId": Any<Number>, 233 "value": Any<Number>, 234} 235` 236 ); 237 }); 238 239 it('BoxSelectionTest05', function () { 240 let fps: Fps; 241 fps = { 242 startNS: 0, 243 timeStr: '', 244 fps: 0, 245 }; 246 expect(fps).not.toBeUndefined(); 247 expect(fps).toMatchInlineSnapshot( 248 { 249 startNS: expect.any(Number), 250 timeStr: expect.any(String), 251 fps: expect.any(Number), 252 }, 253 ` 254{ 255 "fps": Any<Number>, 256 "startNS": Any<Number>, 257 "timeStr": Any<String>, 258} 259` 260 ); 261 }); 262 263 it('BoxSelectionTest06', function () { 264 let it: TraceRow<any> = { 265 intersectionRatio: 0, 266 isHover: true, 267 hoverX: 129, 268 hoverY: 113, 269 index: 0, 270 must: true, 271 isTransferCanvas: true, 272 isComplete: true, 273 dataList: [ 274 { 275 detail: '自绘制buffer轮转(视频/鼠标等)', 276 depth: 2, 277 name: 'ConsumeAndUpdateAllNodes', 278 parentName: 'unknown-1', 279 property: [ 280 { 281 name: 'ConsumeAndUpdateAllNodes', 282 detail: '自绘制buffer轮转(视频/鼠标等)', 283 end: 512062139514826, 284 begin: 512062139339305, 285 depth: 2, 286 instructions: 0, 287 cycles: 2, 288 frame: { 289 x: 0, 290 y: 40, 291 width: 1, 292 height: 20, 293 }, 294 startTs: 512062138606492, 295 textMetricsWidth: 289.8828125, 296 }, 297 ], 298 }, 299 ], 300 dataList2: [], 301 dataListCache: [ 302 { 303 name: 'OnReadable', 304 detail: 'OnVsync信号回调', 305 end: 512062163748680, 306 begin: 512062138606492, 307 depth: 0, 308 instructions: 132, 309 cycles: 471, 310 frame: { 311 x: 0, 312 y: 0, 313 width: 1, 314 height: 20, 315 }, 316 startTs: 512062138606492, 317 textMetricsWidth: 146.8896484375, 318 }, 319 { 320 name: 'OnReadable', 321 detail: 'OnVsync信号回调', 322 end: 512062233204930, 323 begin: 512062222968471, 324 depth: 0, 325 instructions: 144, 326 cycles: 281, 327 frame: { 328 x: 1, 329 y: 0, 330 width: 1, 331 height: 20, 332 }, 333 startTs: 512062138606492, 334 textMetricsWidth: 146.8896484375, 335 }, 336 ], 337 fixedList: [], 338 sliceCache: [-1, -1], 339 canvas: [], 340 dpr: 1, 341 offscreen: [], 342 canvasWidth: 0, 343 canvasHeight: 0, 344 isLoading: false, 345 tampName: '', 346 templateType: {}, 347 _rangeSelect: true, 348 _drawType: 0, 349 _enableCollapseChart: false, 350 online: false, 351 translateY: 0, 352 childrenList: [], 353 loadingFrame: false, 354 needRefresh: true, 355 funcMaxHeight: 0, 356 sleeping: true, 357 fragment: {}, 358 loadingPin1: 0, 359 loadingPin2: 0, 360 args: { 361 alpha: false, 362 canvasNumber: 0, 363 contextId: '', 364 isOffScreen: false, 365 skeleton: true, 366 }, 367 rootEL: {}, 368 checkBoxEL: { 369 args: null, 370 checkbox: {}, 371 }, 372 collectEL: { 373 args: null, 374 icon: {}, 375 use: {}, 376 d: null, 377 }, 378 describeEl: {}, 379 nameEL: {}, 380 canvasVessel: null, 381 tipEL: null, 382 sampleUploadEl: {}, 383 jsonFileEl: {}, 384 _frame: { 385 x: 0, 386 y: 0, 387 height: 140, 388 width: 422, 389 }, 390 rowType: 'sample', 391 }; 392 393 TraceRow.rangeSelectObject = { 394 startX: 100, 395 endX: 1000, 396 startNS: 0, 397 endNS: 100000, 398 }; 399 expect(selectionParam.pushSampleData(itRow)).toBeUndefined(); 400 }); 401 402 it('BoxSelectionTest07', function () { 403 itRow.rowType = 'cpu-data'; 404 itRow.rowId = '10'; 405 expect(selectionParam.pushCpus(itRow)).toBeUndefined(); 406 }); 407 408 it('BoxSelectionTest08', function () { 409 itRow.rowType = 'cpu-state'; 410 itRow.rowId = '10'; 411 expect(selectionParam.pushCpuStateFilterIds(itRow)).toBeUndefined(); 412 }); 413 414 it('BoxSelectionTest09', function () { 415 itRow.rowType = 'cpu-State'; 416 itRow.childrenList = []; 417 expect(selectionParam.pushCpuStateFilterIds(itRow)).toBeUndefined(); 418 }); 419 420 it('BoxSelectionTest10', function () { 421 itRow.rowType = 'cpu-frequency'; 422 itRow.childrenList = []; 423 expect(selectionParam.pushCpuFreqFilter(itRow)).toBeUndefined(); 424 }); 425 426 it('BoxSelectionTest11', function () { 427 itRow.rowType = 'cpu-freq'; 428 itRow.rowId = '10'; 429 itRow.name = 'aaa'; 430 itRow.childrenList = []; 431 expect(selectionParam.pushCpuFreqFilter(itRow)).toBeUndefined(); 432 }); 433 434 it('BoxSelectionTest12', function () { 435 itRow.rowType = 'cpu-frequency-limit'; 436 itRow.rowId = '10'; 437 itRow.name = 'aaa'; 438 itRow.childrenList = []; 439 expect(selectionParam.pushCpuFreqLimit(itRow)).toBeUndefined(); 440 }); 441 442 it('BoxSelectionTest13', function () { 443 itRow.setAttribute('cpu', '1'); 444 itRow.rowType = 'cpu-limit-freq'; 445 itRow.rowId = '10'; 446 itRow.childrenList = []; 447 expect(selectionParam.pushCpuFreqLimit(itRow)).toBeUndefined(); 448 }); 449 450 it('BoxSelectionTest14', function () { 451 itRow.rowType = 'process'; 452 itRow.rowId = '99'; 453 itRow.setAttribute('hasStartup', 'true'); 454 itRow.setAttribute('hasStaticInit', 'false'); 455 itRow.expansion = false; 456 itRow.childrenList = []; 457 expect(selectionParam.pushProcess(itRow, sp)).toBeUndefined(); 458 }); 459 460 it('BoxSelectionTest15', function () { 461 itRow.rowType = 'native-memory'; 462 itRow.rowId = '11'; 463 itRow.expansion = false; 464 itRow.childrenList = []; 465 expect(selectionParam.pushNativeMemory(itRow, sp)).toBeUndefined(); 466 }); 467 468 it('BoxSelectionTest16', function () { 469 itRow.rowType = 'func'; 470 itRow.asyncFuncName = '11'; 471 itRow.expansion = false; 472 itRow.asyncFuncNamePID = 5; 473 itRow.rowId = '7'; 474 expect(selectionParam.pushNativeMemory(itRow, sp)).toBeUndefined(); 475 }); 476 477 it('BoxSelectionTest17', function () { 478 itRow.rowType = 'heap'; 479 itRow.rowParentId = '11 12 5'; 480 itRow.setAttribute('heap-type', 'native_hook_statistic'); 481 itRow.rowId = '7'; 482 expect(selectionParam.pushHeap(itRow, sp)).toBeUndefined(); 483 }); 484 485 it('BoxSelectionTest18', function () { 486 itRow.rowType = 'ability-monitor'; 487 itRow.rowId = '8'; 488 itRow.expansion = false; 489 itRow.childrenList = []; 490 expect(selectionParam.pushMonitor(itRow, sp)).toBeUndefined(); 491 }); 492 493 it('BoxSelectionTest19', function () { 494 itRow.rowType = 'hiperf-event'; 495 expect(selectionParam.pushHiperf(itRow, sp)).toBeUndefined(); 496 }); 497 498 it('BoxSelectionTest20', function () { 499 itRow.rowType = 'hiperf-report'; 500 expect(selectionParam.pushHiperf(itRow, sp)).toBeUndefined(); 501 }); 502 503 it('BoxSelectionTest21', function () { 504 itRow.rowType = 'hiperf-callchart'; 505 itRow.drawType = 7; 506 itRow.getRowSettingKeys = jest.fn(() => ['5']); 507 expect(selectionParam.pushHiperf(itRow, sp)).toBeUndefined(); 508 }); 509 510 it('BoxSelectionTest22', function () { 511 itRow.rowType = 'hiperf-process'; 512 itRow.rowId = '18'; 513 itRow.expansion = false; 514 itRow.childrenList = []; 515 expect(selectionParam.pushHiperf(itRow, sp)).toBeUndefined(); 516 }); 517 518 it('BoxSelectionTest23', function () { 519 itRow.rowType = 'hiperf'; 520 expect(selectionParam.pushHiperf(itRow, sp)).toBeUndefined(); 521 }); 522 523 it('BoxSelectionTest24', function () { 524 itRow.rowType = 'hiperf-cpu'; 525 itRow.index = 5; 526 expect(selectionParam.pushHiperf(itRow, sp)).toBeUndefined(); 527 }); 528 529 it('BoxSelectionTest25', function () { 530 itRow.rowType = 'hiperf-thread'; 531 itRow.rowId = '5-7'; 532 expect(selectionParam.pushHiperf(itRow, sp)).toBeUndefined(); 533 }); 534 535 it('BoxSelectionTest26', function () { 536 itRow.rowType = 'file-system-cell'; 537 itRow.rowId = 'FileSystemLogicalWrite'; 538 selectionParam.fileSystemType = []; 539 expect(selectionParam.pushFileSystem(itRow, sp)).toBeUndefined(); 540 selectionParam.pushFileSystem(itRow, sp); 541 expect(selectionParam.fileSystemType).toEqual([0, 1, 3]); 542 }); 543 544 it('BoxSelectionTest26', function () { 545 itRow.rowType = 'file-system-cell'; 546 itRow.rowId = 'FileSystemLogicalWrite'; 547 selectionParam.fileSystemType = [1, 1, 1, -1]; 548 expect(selectionParam.pushFileSystem(itRow, sp)).toBeUndefined(); 549 selectionParam.pushFileSystem(itRow, sp); 550 expect(selectionParam.fileSystemType).toEqual([1, 1, 1, -1, 3]); 551 }); 552 553 it('BoxSelectionTest27', function () { 554 itRow.rowType = 'file-system-cell'; 555 itRow.rowId = 'FileSystemLogicalRead'; 556 selectionParam.fileSystemType = []; 557 expect(selectionParam.pushFileSystem(itRow, sp)).toBeUndefined(); 558 selectionParam.pushFileSystem(itRow, sp); 559 expect(selectionParam.fileSystemType).toEqual([0, 1, 2]); 560 }); 561 562 it('BoxSelectionTest28', function () { 563 itRow.rowType = 'file-system-cell'; 564 itRow.rowId = 'FileSystemLogicalRead'; 565 selectionParam.fileSystemType = [1, 1, -1]; 566 expect(selectionParam.pushFileSystem(itRow, sp)).toBeUndefined(); 567 selectionParam.pushFileSystem(itRow, sp); 568 expect(selectionParam.fileSystemType).toEqual([1, 1, -1, 2]); 569 }); 570 571 it('BoxSelectionTest29', function () { 572 itRow.rowType = 'file-system-cell'; 573 itRow.rowId = 'FileSystemVirtualMemory'; 574 selectionParam.fileSystemType = [1, 1, -1]; 575 expect(selectionParam.pushFileSystem(itRow, sp)).toBeUndefined(); 576 selectionParam.pushFileSystem(itRow, sp); 577 expect(selectionParam.fileSysVirtualMemory).toBeTruthy(); 578 }); 579 580 it('BoxSelectionTest30', function () { 581 itRow.rowType = 'file-system-cell'; 582 itRow.rowId = 'FileSystemDiskIOLatency'; 583 selectionParam.fileSystemType = [1, 1, -1]; 584 expect(selectionParam.pushFileSystem(itRow, sp)).toBeUndefined(); 585 selectionParam.pushFileSystem(itRow, sp); 586 expect(selectionParam.diskIOLatency).toBeTruthy(); 587 }); 588 589 it('BoxSelectionTest31', function () { 590 itRow.rowType = 'VmTracker'; 591 itRow.rowId = '55'; 592 itRow.expansion = false; 593 let child = new TraceRow(); 594 child.rowType = 'dma-vmTracker'; 595 itRow.childrenList = [child]; 596 expect(selectionParam.pushVmTracker(itRow, sp)).toBeUndefined(); 597 }); 598 599 it('BoxSelectionTest32', function () { 600 itRow.rowType = 'VmTracker'; 601 itRow.rowId = '100'; 602 itRow.expansion = false; 603 let child = new TraceRow(); 604 child.rowType = 'sys-memory-gpu'; 605 itRow.childrenList = [child]; 606 expect(selectionParam.pushVmTracker(itRow, sp)).toBeUndefined(); 607 }); 608 609 it('BoxSelectionTest33', function () { 610 itRow.rowType = 'VmTracker'; 611 itRow.rowId = '100'; 612 itRow.expansion = false; 613 let child = new TraceRow(); 614 child.rowType = 'purgeable-total-vm'; 615 itRow.childrenList = [child]; 616 expect(selectionParam.pushVmTracker(itRow, sp)).toBeUndefined(); 617 }); 618 619 it('BoxSelectionTest34', function () { 620 itRow.rowType = 'VmTracker'; 621 itRow.rowId = '100'; 622 itRow.expansion = false; 623 let child = new TraceRow(); 624 child.rowType = 'purgeable-pin-vm'; 625 itRow.childrenList = [child]; 626 expect(selectionParam.pushVmTracker(itRow, sp)).toBeUndefined(); 627 }); 628 629 it('BoxSelectionTest35', function () { 630 itRow.rowType = 'VmTracker'; 631 itRow.rowId = '110'; 632 itRow.expansion = false; 633 let child = new TraceRow(); 634 child.rowType = 'smaps'; 635 itRow.childrenList = [child]; 636 expect(selectionParam.pushVmTracker(itRow, sp)).toBeUndefined(); 637 }); 638 639 it('BoxSelectionTest36', function () { 640 itRow.rowType = 'VmTracker'; 641 itRow.rowId = '10'; 642 itRow.expansion = false; 643 let child = new TraceRow(); 644 child.rowType = 'VmTracker-shm'; 645 itRow.childrenList = [child]; 646 expect(selectionParam.pushVmTracker(itRow, sp)).toBeUndefined(); 647 }); 648 649 it('BoxSelectionTest37', function () { 650 itRow.rowType = 'janks'; 651 itRow.rowId = '50'; 652 itRow.name == 'Actual Timeline'; 653 itRow.rowParentId === 'frameTime'; 654 itRow.dataListCache = []; 655 expect(selectionParam.pushJank(itRow, sp)).toBeUndefined(); 656 }); 657 658 it('BoxSelectionTest38', function () { 659 TraceRow.range = { 660 refresh: true, 661 xsTxt: ['a'], 662 startX: 100, 663 endX: 1000, 664 startNS: 0, 665 endNS: 100000, 666 slicesTime: { 667 color: 'red', 668 startTime: 1000, 669 endTime: 5000, 670 }, 671 scale: 5000, 672 totalNS: 10000, 673 xs: [100], 674 }; 675 itRow.rowType = 'heap-timeline'; 676 itRow.rowId = '50'; 677 itRow.name == 'Actual Timeline'; 678 itRow.rowParentId === 'frameTime'; 679 itRow.dataListCache = []; 680 expect(selectionParam.pushHeapTimeline(itRow, sp)).toBeUndefined(); 681 }); 682 683 it('BoxSelectionTest39', function () { 684 itRow.rowType = 'js-cpu-profiler-cell'; 685 itRow.rowId = '50'; 686 itRow.dataListCache = []; 687 expect(selectionParam.pushJsCpuProfiler(itRow, sp)).toBeUndefined(); 688 }); 689 690 it('BoxSelectionTest40', function () { 691 itRow.rowType = 'sys-memory-gpu'; 692 itRow.rowId = '40'; 693 itRow.childrenList = []; 694 expect(selectionParam.pushSysMemoryGpu(itRow, sp)).toBeUndefined(); 695 }); 696 697 it('BoxSelectionTest41', function () { 698 itRow.rowType = 'sdk'; 699 itRow.rowId = '45'; 700 itRow.childrenList = []; 701 expect(selectionParam.pushSDK(itRow, sp)).toBeUndefined(); 702 }); 703 704 it('BoxSelectionTest42', function () { 705 itRow.rowType = 'sdk-counter'; 706 itRow.rowId = '47'; 707 expect(selectionParam.pushSDK(itRow, sp)).toBeUndefined(); 708 }); 709 710 it('BoxSelectionTest43', function () { 711 itRow.rowType = 'sdk-slice'; 712 itRow.rowId = '98'; 713 expect(selectionParam.pushSDK(itRow, sp)).toBeUndefined(); 714 }); 715 716 it('BoxSelectionTest44', function () { 717 itRow.rowType = 'smaps'; 718 itRow.rowId = '98'; 719 expect(selectionParam.pushVmTrackerSmaps(itRow, sp)).toBeUndefined(); 720 }); 721 722 it('BoxSelectionTest45', function () { 723 itRow.rowType = 'irq-group'; 724 itRow.rowId = '98'; 725 itRow.childrenList = []; 726 expect(selectionParam.pushIrq(itRow)).toBeUndefined(); 727 }); 728 729 it('BoxSelectionTest46', function () { 730 itRow.rowType = 'irq'; 731 itRow.rowId = '98'; 732 itRow.setAttribute('callId', '45'); 733 itRow.childrenList = []; 734 expect(selectionParam.pushIrq(itRow)).toBeUndefined(); 735 }); 736 737 it('BoxSelectionTest47', function () { 738 itRow.rowType = 'sys-memory-gpu-gl'; 739 itRow.rowId = '98'; 740 itRow.dataListCache = []; 741 expect(selectionParam.pushSysMemoryGpuGl(itRow, sp)).toBeUndefined(); 742 }); 743 744 it('BoxSelectionTest48', function () { 745 itRow.rowType = 'frame-dynamic'; 746 itRow.rowId = '98'; 747 itRow.dataListCache = []; 748 itRow.setAttribute('model-name', 'dd'); 749 expect(selectionParam.pushFrameDynamic(itRow, sp)).toBeUndefined(); 750 }); 751 752 it('BoxSelectionTest49', function () { 753 itRow.rowType = 'frame-spacing'; 754 itRow.rowId = '98'; 755 itRow.dataListCache = []; 756 expect(selectionParam.pushFrameSpacing(itRow)).toBeUndefined(); 757 }); 758 759 it('BoxSelectionTest50', function () { 760 itRow.rowType = 'frame-animation'; 761 itRow.rowId = '98'; 762 itRow.dataListCache = []; 763 expect(selectionParam.pushFrameAnimation(itRow)).toBeUndefined(); 764 }); 765 766 it('BoxSelectionTest51', function () { 767 itRow.rowType = 'sys-memory-gpu-window'; 768 itRow.rowId = '98'; 769 itRow.dataListCache = []; 770 expect(selectionParam.pushSysMemoryGpuWindow(itRow)).toBeUndefined(); 771 }); 772 773 it('BoxSelectionTest52', function () { 774 itRow.rowType = 'sys-memory-gpu-total'; 775 itRow.rowId = '98'; 776 itRow.dataListCache = []; 777 expect(selectionParam.pushSysMemoryGpuTotal(itRow)).toBeUndefined(); 778 }); 779 780 it('BoxSelectionTest53', function () { 781 itRow.rowType = 'sys-memory-gpu-graph'; 782 itRow.rowId = '98'; 783 itRow.dataListCache = []; 784 expect(selectionParam.pushSysMemoryGpuGraph(itRow)).toBeUndefined(); 785 }); 786 787 it('BoxSelectionTest54', function () { 788 itRow.rowType = 'static-init'; 789 itRow.rowId = '98'; 790 expect(selectionParam.pushStaticInit(itRow, sp)).toBeUndefined(); 791 }); 792 793 it('BoxSelectionTest55', function () { 794 itRow.rowType = 'app-startup'; 795 itRow.rowId = '98'; 796 itRow.rowParentId = '55'; 797 expect(selectionParam.pushAppStartUp(itRow, sp)).toBeUndefined(); 798 }); 799 800 it('BoxSelectionTest56', function () { 801 itRow.rowType = 'thread'; 802 itRow.rowId = '98'; 803 expect(selectionParam.pushThread(itRow, sp)).toBeUndefined(); 804 }); 805 806 it('BoxSelectionTest57', function () { 807 itRow.rowType = 'mem'; 808 itRow.rowId = '98'; 809 expect(selectionParam.pushVirtualMemory(itRow, sp)).toBeUndefined(); 810 }); 811 812 it('BoxSelectionTest58', function () { 813 itRow.rowType = 'virtual-memory-cell'; 814 itRow.rowId = '98'; 815 expect(selectionParam.pushVirtualMemory(itRow, sp)).toBeUndefined(); 816 }); 817 818 it('BoxSelectionTest59', function () { 819 itRow.rowType = 'fps'; 820 itRow.rowId = '98'; 821 expect(selectionParam.pushFps(itRow, sp)).toBeUndefined(); 822 }); 823 824 it('BoxSelectionTest60', function () { 825 itRow.rowType = 'cpu-ability'; 826 itRow.rowId = '98'; 827 expect(selectionParam.pushCpuAbility(itRow, sp)).toBeUndefined(); 828 }); 829 830 it('BoxSelectionTest61', function () { 831 itRow.rowType = 'memory-ability'; 832 itRow.rowId = '98'; 833 expect(selectionParam.pushMemoryAbility(itRow, sp)).toBeUndefined(); 834 }); 835 836 it('BoxSelectionTest62', function () { 837 itRow.rowType = 'disk-ability'; 838 itRow.rowId = '98'; 839 expect(selectionParam.pushDiskAbility(itRow, sp)).toBeUndefined(); 840 }); 841 842 it('BoxSelectionTest63', function () { 843 itRow.rowType = 'network-ability'; 844 itRow.rowId = '98'; 845 expect(selectionParam.pushNetworkAbility(itRow, sp)).toBeUndefined(); 846 }); 847 848 it('BoxSelectionTest64', function () { 849 itRow.rowType = 'dma-ability'; 850 itRow.rowId = '98'; 851 expect(selectionParam.pushDmaAbility(itRow, sp)).toBeUndefined(); 852 }); 853 854 it('BoxSelectionTest65', function () { 855 itRow.rowType = 'gpu-memory-ability'; 856 itRow.rowId = '98'; 857 expect(selectionParam.pushGpuMemoryAbility(itRow, sp)).toBeUndefined(); 858 }); 859 860 it('BoxSelectionTest66', function () { 861 itRow.rowType = 'power-energy'; 862 itRow.rowId = '98'; 863 expect(selectionParam.pushPowerEnergy(itRow, sp)).toBeUndefined(); 864 }); 865 866 it('BoxSelectionTest67', function () { 867 itRow.rowType = 'system-energy'; 868 itRow.rowId = '98'; 869 expect(selectionParam.pushSystemEnergy(itRow, sp)).toBeUndefined(); 870 }); 871 872 it('BoxSelectionTest68', function () { 873 itRow.rowType = 'anomaly-energy'; 874 itRow.rowId = '98'; 875 expect(selectionParam.pushAnomalyEnergy(itRow, sp)).toBeUndefined(); 876 }); 877 878 it('BoxSelectionTest69', function () { 879 itRow.rowType = 'VmTracker-shm'; 880 itRow.rowId = '98'; 881 expect(selectionParam.pushVmTrackerShm(itRow, sp)).toBeUndefined(); 882 }); 883 884 it('BoxSelectionTest70', function () { 885 itRow.rowType = 'clock-group'; 886 itRow.rowId = '98'; 887 expect(selectionParam.pushClock(itRow, sp)).toBeUndefined(); 888 }); 889 890 it('BoxSelectionTest71', function () { 891 itRow.rowType = 'gpu-memory-vmTracker'; 892 itRow.rowId = '98'; 893 expect(selectionParam.pushGpuMemoryVmTracker(itRow, sp)).toBeUndefined(); 894 }); 895 896 it('BoxSelectionTest72', function () { 897 itRow.rowType = 'dma-vmTracker'; 898 itRow.rowId = '98'; 899 expect(selectionParam.pushDmaVmTracker(itRow, sp)).toBeUndefined(); 900 }); 901 902 it('BoxSelectionTest73', function () { 903 itRow.rowType = 'purgeable-total-ability'; 904 itRow.rowId = '98'; 905 expect(selectionParam.pushPugreable(itRow, sp)).toBeUndefined(); 906 }); 907 908 it('BoxSelectionTest74', function () { 909 itRow.rowType = 'purgeable-pin-ability'; 910 itRow.rowId = '98'; 911 expect(selectionParam.pushPugreablePinAbility(itRow, sp)).toBeUndefined(); 912 }); 913 914 it('BoxSelectionTest75', function () { 915 itRow.rowType = 'purgeable-total-vm'; 916 itRow.rowId = '98'; 917 expect(selectionParam.pushPugreableTotalVm(itRow, sp)).toBeUndefined(); 918 }); 919 920 it('BoxSelectionTest76', function () { 921 itRow.rowType = 'purgeable-pin-vm'; 922 itRow.rowId = '98'; 923 expect(selectionParam.pushPugreablePinVm(itRow, sp)).toBeUndefined(); 924 }); 925 926 it('BoxSelectionTest77', function () { 927 itRow.rowType = 'logs'; 928 itRow.rowId = '98'; 929 expect(selectionParam.pushLogs(itRow, sp)).toBeUndefined(); 930 }); 931 932 it('BoxSelectionTest78', function () { 933 itRow.rowType = 'hi-sysevent'; 934 itRow.rowId = '98'; 935 expect(selectionParam.pushHiSysEvent(itRow, sp)).toBeUndefined(); 936 }); 937 938 it('BoxSelectionTest79', function () { 939 itRow.rowType = 'sample'; 940 itRow.rowId = '98'; 941 expect(selectionParam.pushSelection(itRow, sp)).toBeUndefined(); 942 }); 943}); 944