/development/tools/winscope/src/trace/ |
D | traces.ts | 25 addTrace(trace: Trace<{}>) { 26 this.traces.add(trace); 33 this.traces.forEach((trace) => { 34 if (trace.type !== type) { 44 trace.lengthEntries > longestTraceWithMatchingType.lengthEntries 46 longestTraceWithMatchingType = trace; 56 (trace) => trace.type === type, 60 deleteTrace(trace: Trace<{}>) { 61 this.traces.delete(trace); 65 this.traces.forEach((trace) => { [all …]
|
D | trace_entry_test.ts | 23 let trace: Trace<string>; variable 27 trace = new TraceBuilder<string>() 54 expect(trace.getEntry(0).getFullTrace()).toEqual(trace); 55 expect(trace.sliceEntries(0, 1).getEntry(0).getFullTrace()).toEqual(trace); 59 expect(trace.getEntry(0).getIndex()).toEqual(0); 60 expect(trace.sliceEntries(2, 4).getEntry(0).getIndex()).toEqual(2); 61 expect(trace.sliceEntries(2, 4).getEntry(1).getIndex()).toEqual(3); 65 expect(trace.getEntry(0).getTimestamp()).toEqual( 68 expect(trace.getEntry(1).getTimestamp()).toEqual( 74 expect(trace.getEntry(0).getFramesRange()).toEqual({start: 0, end: 2}); [all …]
|
D | trace_entry_finder.ts | 23 trace: Trace<T>, 26 if (trace.lengthEntries === 0) { 30 if (trace.isDumpWithoutTimestamp()) { 32 return trace.getEntry(0); 35 if (position.entry?.getFullTrace() === trace.getEntry(0).getFullTrace()) { 39 if (position.frame !== undefined && trace.hasFrameInfo()) { 40 const frame = trace.getFrame(position.frame); 49 if (TraceTypeUtils.compareByUiPipelineOrder(entryTraceType, trace.type)) { 51 trace.findFirstGreaterEntry(timestamp) ?? 52 trace.findFirstGreaterOrEqualEntry(timestamp) [all …]
|
D | trace_test.ts | 25 let trace: Trace<string>; variable 40 trace = new TraceBuilder<string>() 53 expect(await trace.getEntry(0).getValue()).toEqual('entry-0'); 54 expect(await trace.getEntry(4).getValue()).toEqual('entry-4'); 56 trace.getEntry(5); 59 expect(await trace.getEntry(-1).getValue()).toEqual('entry-4'); 60 expect(await trace.getEntry(-5).getValue()).toEqual('entry-0'); 62 trace.getEntry(-6); 67 expect(await TraceUtils.extractFrames(trace.getFrame(0))).toEqual( 70 expect(await TraceUtils.extractFrames(trace.getFrame(1))).toEqual( [all …]
|
/development/tools/winscope/src/app/ |
D | timeline_data.ts | 55 traces.forEachTrace((trace, type) => { 57 if (trace.isDumpWithoutTimestamp()) { 61 this.traces.addTrace(trace); 76 .mapTrace((trace) => trace) 78 (trace) => 79 TraceTypeUtils.isTraceTypeWithViewer(trace.type) && 80 trace.type !== TraceType.SCREEN_RECORDING, 148 trySetActiveTrace(trace: Trace<object>): boolean { 149 const isTraceWithValidTimestamps = this.traces.hasTrace(trace); 150 if (this.activeTrace !== trace && isTraceWithValidTimestamps) { [all …]
|
D | trace_pipeline.ts | 83 const trace = Trace.fromParser(parser); constant 84 this.traces.addTrace(trace); 94 const trace = Trace.fromParser(tracesParser); constant 95 this.traces.addTrace(trace); 114 removeTrace(trace: Trace<object>) { 115 this.loadedParsers.remove(trace.getParser()); 116 this.traces.deleteTrace(trace); 125 .mapTrace((trace) => { 126 if (!TraceTypeUtils.canVisualizeTrace(trace.type)) { 127 return trace; [all …]
|
/development/tools/winscope/src/app/components/ |
D | trace_config_component.ts | 114 traceEnableConfigs(trace: TraceConfiguration): EnableConfiguration[] { 115 if (trace.config) { 116 return trace.config.enableConfigs; 122 traceSelectionConfigs(trace: TraceConfiguration): SelectionConfiguration[] { 123 if (trace.config) { 124 return trace.config.selectionConfigs; 130 someTraces(trace: TraceConfiguration): boolean { 132 !trace.run && 133 this.traceEnableConfigs(trace).filter((trace) => trace.enabled).length > 0 137 changeRunTrace(run: boolean, trace: TraceConfiguration): void { [all …]
|
D | upload_traces_component.ts | 278 onRemoveTrace(event: MouseEvent, trace: Trace<object>) { 281 this.tracePipeline.removeTrace(trace); 288 this.tracePipeline.getTraces().forEachTrace((trace) => { 289 if (TraceTypeUtils.isTraceTypeWithViewer(trace.type)) { 298 traceUploadInfo(trace: Trace<object>): string | undefined { 299 return TraceTypeUtils.traceUploadInfo(trace.type); 302 canVisualizeTrace(trace: Trace<object>): boolean { 303 return TraceTypeUtils.canVisualizeTrace(trace.type); 306 cannotVisualizeTraceTooltip(trace: Trace<object>): string { 307 return TraceTypeUtils.getReasonForNoTraceVisualization(trace.type);
|
/development/tools/winscope/src/viewers/common/ |
D | hierarchy_presenter.ts | 89 trace: Trace<HierarchyTreeNode>, 91 return this.currentEntries?.get(trace); 95 trace: Trace<HierarchyTreeNode>, 97 return this.currentHierarchyTrees?.get(trace); 111 trace: Trace<HierarchyTreeNode>, 113 return this.currentHierarchyTreeNames?.get(trace); 120 const [trace, trees] = value; constant 124 const curr = this.currentHierarchyTrees.get(trace); 128 this.currentHierarchyTrees.set(trace, trees); 134 if (!this.currentFormattedTrees.get(trace)) { [all …]
|
D | abstract_viewer_input_method.ts | 28 private readonly trace: Trace<HierarchyTreeNode>; property in AbstractViewerInputMethod 38 trace: Trace<HierarchyTreeNode>, 42 this.trace = trace; 44 this.presenter = this.initializePresenter(trace, traces, storage); 61 return [this.trace]; 76 trace: Trace<HierarchyTreeNode>,
|
D | abstract_presenter_input_method_test.ts | 63 const trace = new TraceBuilder<HierarchyTreeNode>() constant 68 this.traces.addTrace(trace); 92 const entry = trace.getEntry(0); 95 ? TracePositionUpdate.fromTraceEntry(trace.getEntry(1)) 104 const trace = new TraceBuilder<HierarchyTreeNode>() constant 109 traces.addTrace(trace); 111 trace, 122 const trace = assertDefined(traces.getTrace(this.imeTraceType)); constant 124 trace, 269 const trace = new TraceBuilder<HierarchyTreeNode>() constant [all …]
|
/development/tools/winscope/src/app/components/timeline/mini-timeline/drawer/ |
D | mini_timeline_drawer_input.ts | 70 this.traces.forEach((trace) => { 71 const activeEntry = this.timelineData.findCurrentEntryFor(trace); 73 if (trace.type === TraceType.TRANSITION) { 75 transformedTraceSegments.set(trace, { 80 trace as Trace<PropertyTreeNode>, 90 transformedTraceSegments.set(trace, { 91 points: this.transformTraceTimestamps(transformer, trace), 106 trace: Trace<PropertyTreeNode>, 108 return trace 144 trace: Trace<{}>, [all …]
|
/development/tools/winscope/src/test/unit/ |
D | traces_utils.ts | 25 return traces.mapTrace((trace) => trace); 33 const promises = traces.mapTrace(async (trace) => { 34 entries.set(trace.type, await TraceUtils.extractEntries(trace)); 48 const tracePromises = frame.mapTrace(async (trace, type) => { 51 await TraceUtils.extractEntries(trace),
|
D | trace_utils.ts | 21 static async extractEntries<T>(trace: Trace<T>): Promise<T[]> { 22 const promises = trace.mapEntry(async (entry, index) => { 28 static extractTimestamps<T>(trace: Trace<T>): Timestamp[] { 30 trace.forEachTimestamp((timestamp) => { 37 trace: Trace<T>, 40 const promises = trace.mapFrame(async (frame, index) => {
|
/development/tools/winscope/src/viewers/viewer_window_manager/ |
D | presenter_test.ts | 36 private trace: Trace<HierarchyTreeNode> | undefined; property in PresenterWindowManagerTest 68 this.trace = new TraceBuilder<HierarchyTreeNode>() 76 const firstEntry = this.trace.getEntry(0); 79 this.trace.getEntry(1), 98 const trace = new TraceBuilder<HierarchyTreeNode>() constant 103 traces.addTrace(trace); 104 return new Presenter(trace, traces, new InMemoryStorage(), callback); 111 const trace = assertDefined(this.trace); constant 112 traces.addTrace(trace); 113 return new Presenter(trace, traces, new InMemoryStorage(), callback);
|
D | viewer_window_manager.ts | 30 private readonly trace: Trace<HierarchyTreeNode>; property in ViewerWindowManager 36 trace: Trace<HierarchyTreeNode>, 40 this.trace = trace; 47 trace, 75 return [this.trace];
|
/development/tools/winscope/src/viewers/viewer_screen_recording/ |
D | viewer_screen_recording.ts | 29 private readonly trace: Trace<ScreenRecordingTraceEntry>; property in ViewerScreenRecording 33 constructor(trace: Trace<ScreenRecordingTraceEntry>, traces: Traces) { 34 this.trace = trace; 49 this.trace, 76 return [this.trace];
|
D | viewer_screenshot.ts | 29 private readonly trace: Trace<ScreenRecordingTraceEntry>; property in ViewerScreenshot 33 constructor(trace: Trace<ScreenRecordingTraceEntry>, traces: Traces) { 34 this.trace = trace; 49 this.trace, 78 return [this.trace];
|
/development/tools/winscope/src/viewers/viewer_surface_flinger/ |
D | viewer_surface_flinger.ts | 32 private readonly trace: Trace<HierarchyTreeNode>; property in ViewerSurfaceFlinger 38 trace: Trace<HierarchyTreeNode>, 42 this.trace = trace; 49 trace, 85 return [this.trace];
|
/development/tools/winscope/src/viewers/viewer_transitions/ |
D | viewer_transitions.ts | 30 private readonly trace: Trace<PropertyTreeNode>; property in ViewerTransitions 35 constructor(trace: Trace<PropertyTreeNode>, traces: Traces) { 36 this.trace = trace; 39 this.presenter = new Presenter(trace, traces, (data: UiData) => { 83 return [this.trace];
|
D | presenter_test.ts | 34 const trace = assertDefined(traces.getTrace(TraceType.TRANSITION)); constant 36 const presenter = new Presenter(trace, traces, (data: UiData) => { 54 const trace = new TraceBuilder<PropertyTreeNode>() constant 60 traces.addTrace(trace); 63 const presenter = new Presenter(trace, traces, (data: UiData) => { 67 const entry = trace.getEntry(1);
|
/development/tools/winscope/src/viewers/ |
D | viewer_stub.ts | 26 private readonly trace: Trace<object>; property in ViewerStub 35 trace?: Trace<object>, 47 this.trace = 48 trace ?? 76 return [this.trace];
|
D | viewer_factory.ts | 52 traces.forEachTrace((trace) => { 55 const isViewerDepSatisfied = trace.type === Viewer.DEPENDENCIES[0]; 57 viewers.push(new Viewer(trace as Trace<any>, traces, storage)); 63 const availableTraceTypes = new Set(traces.mapTrace((trace) => trace.type));
|
/development/tools/winscope/src/viewers/viewer_protolog/ |
D | viewer_protolog.ts | 32 private readonly trace: Trace<PropertyTreeNode>; property in ViewerProtoLog 37 constructor(trace: Trace<PropertyTreeNode>, traces: Traces) { 38 this.trace = trace; 41 this.presenter = new Presenter(trace, (data: UiData) => { 105 return [this.trace];
|
/development/tools/winscope/src/app/components/timeline/expanded-timeline/ |
D | expanded_timeline_component.ts | 164 trackTraceByType = (index: number, trace: Trace<{}>): TraceType => { 165 return trace.type; 171 .mapTrace((trace) => trace); 181 isActiveTrace(trace: Trace<object>) { 182 return trace === this.timelineData?.getActiveTrace();
|