Home
last modified time | relevance | path

Searched refs:trace (Results 1 – 25 of 55) sorted by relevance

123

/development/tools/winscope/src/app/components/
Dtrace_config_component.ts123 traceEnableConfigs(trace: TraceConfiguration): EnableConfiguration[] {
124 if (trace.config) {
125 return trace.config.enableConfigs;
131 traceSelectionConfigs(trace: TraceConfiguration): SelectionConfiguration[] {
132 if (trace.config) {
133 return trace.config.selectionConfigs;
139 someTraces(trace: TraceConfiguration): boolean {
140 return this.traceEnableConfigs(trace).filter((trace) => trace.enabled).length > 0 && !trace.run;
143 changeRunTrace(run: boolean, trace: TraceConfiguration): void {
144 trace.run = run;
[all …]
Dapp_component.ts312 return this.tracePipeline.getTraces().mapTrace((trace) => trace.type);
360 const trace = this.getActiveTrace(view); constant
362 if (!trace) {
366 return `${trace.getDescriptors().join(', ')}`;
371 this.tracePipeline.getTraces().forEachTrace((trace) => {
372 if (trace.type === view.dependencies[0]) {
373 activeTrace = trace;
Dcollect_traces_component.ts511 const trace = tracingConfig[traceKey]; constant
512 if (!trace.isTraceCollection && trace.run && trace.config && trace.config.enableConfigs) {
513 trace.config.enableConfigs.forEach((con: EnableConfiguration) => {
/development/tools/winscope/src/trace/
Dtrace_entry_test.ts22 let trace: Trace<string>; variable
25 trace = new TraceBuilder<string>()
45 expect(trace.getEntry(0).getFullTrace()).toEqual(trace);
46 expect(trace.sliceEntries(0, 1).getEntry(0).getFullTrace()).toEqual(trace);
50 expect(trace.getEntry(0).getIndex()).toEqual(0);
51 expect(trace.sliceEntries(2, 4).getEntry(0).getIndex()).toEqual(2);
52 expect(trace.sliceEntries(2, 4).getEntry(1).getIndex()).toEqual(3);
56 expect(trace.getEntry(0).getTimestamp()).toEqual(new RealTimestamp(10n));
57 expect(trace.getEntry(1).getTimestamp()).toEqual(new RealTimestamp(11n));
61 expect(trace.getEntry(0).getFramesRange()).toEqual({start: 0, end: 2});
[all …]
Dtrace_test.ts25 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 …]
Dtraces.ts25 setTrace<T extends TraceType>(type: T, trace: Trace<TraceEntryTypeMap[T]>) {
26 this.traces.set(type, trace);
39 this.traces.forEach((trace, type) => {
40 slice.setTrace(type, trace.sliceTime(start, end));
47 this.traces.forEach((trace, type) => {
48 slice.setTrace(type, trace.sliceFrames(start, end));
53 forEachTrace(callback: (trace: Trace<{}>, type: TraceType) => void): void {
54 this.traces.forEach((trace, type) => {
55 callback(trace, type);
59 mapTrace<T>(callback: (trace: Trace<{}>, type: TraceType) => T): T[] {
[all …]
Dtrace_entry_finder.ts34 trace: Trace<T>,
37 if (position.entry?.getFullTrace().type === trace.type) {
41 if (position.frame !== undefined && trace.hasFrameInfo()) {
42 const frame = trace.getFrame(position.frame);
55 return type === trace.type;
60 return trace.findFirstGreaterEntry(position.entry.getTimestamp());
62 return trace.findLastLowerEntry(position.entry.getTimestamp());
67 return trace.findLastLowerOrEqualEntry(position.timestamp);
/development/tools/winscope/src/app/
Dtimeline_data.ts47 traces.forEachTrace((trace, type) => {
51 trace.lengthEntries === 1 &&
52 trace.getEntry(0).getTimestamp().getValueNs() === INVALID_TIMESTAMP
58 this.traces.setTrace(type, trace);
138 const trace = this.traces.getTrace(TraceType.SCREEN_RECORDING); constant
139 if (!trace || trace.lengthEntries === 0) {
143 const firstTimestamp = trace.getEntry(0).getTimestamp();
144 const entry = TraceEntryFinder.findCorrespondingEntry(trace, position);
164 const trace = assertDefined(this.traces.getTrace(type)); constant
165 if (trace.lengthEntries === 0) {
[all …]
Dtrace_pipeline.ts58 const trace = Trace.newUninitializedTrace(parser); constant
59 this.traces?.setTrace(parser.getTraceType(), trace);
63 .mapTrace((trace) => trace.type)
73 removeTrace(trace: Trace<object>) {
74 this.parsers = this.parsers.filter((parser) => parser.getTraceType() !== trace.type);
75 this.traces.deleteTrace(trace.type);
84 this.traces.forEachTrace((trace) => trace.init(commonTimestampType));
/development/tools/winscope/src/test/unit/
Dtrace_utils.ts21 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) => {
36 static async extractFrames<T>(trace: Trace<T>): Promise<Map<AbsoluteFrameIndex, T[]>> {
38 const promises = trace.mapFrame(async (frame, index) => {
Dtraces_utils.ts27 const promises = traces.mapTrace(async (trace) => {
28 entries.set(trace.type, await TraceUtils.extractEntries(trace));
42 const tracePromises = frame.mapTrace(async (trace, type) => {
43 assertDefined(frames.get(index)).set(type, await TraceUtils.extractEntries(trace));
Dutils.ts31 const trace = Trace.newUninitializedTrace(parser); constant
32 trace.init(
37 return trace;
/development/tools/winscope/src/viewers/viewer_screen_recording/
Dviewer_screen_recording.ts29 private readonly trace: Trace<ScreenRecordingTraceEntry>; property in ViewerScreenRecording
33 this.trace = assertDefined(traces.getTrace(TraceType.SCREEN_RECORDING));
38 const entry = TraceEntryFinder.findCorrespondingEntry(this.trace, position);
/development/tools/winscope/src/viewers/viewer_surface_flinger/
Dpresenter_test.ts33 let trace: Trace<LayerTraceEntry>; variable
41 trace = new TraceBuilder<LayerTraceEntry>()
48 position = TracePosition.fromTraceEntry(trace.getEntry(0));
49 positionMultiDisplayEntry = TracePosition.fromTraceEntry(trace.getEntry(1));
62 presenter = createPresenter(trace);
235 const createPresenter = (trace: Trace<LayerTraceEntry>): Presenter => {
237 traces.setTrace(TraceType.SURFACE_FLINGER, trace);
/development/tools/winscope/src/viewers/viewer_protolog/
Dpresenter.ts28 private readonly trace: Trace<LogMessage>; property in Presenter
46 this.trace = assertDefined(traces.getTrace(TraceType.PROTO_LOG));
53 this.entry = TraceEntryFinder.findCorrespondingEntry(this.trace, position);
114 for (let originalIndex = 0; originalIndex < this.trace.lengthEntries; ++originalIndex) {
115 const entry = assertDefined(this.trace.getEntry(originalIndex));
/development/scripts/
Dacov76 adb shell rm -rf /data/misc/trace/*
105 for USER_ID in $(adb shell ls /data/misc/trace)
108 adb shell tar -czf - -C /data/misc/trace/$USER_ID/proc/self/cwd $ANDROID_OUT | tar zxvf -
/development/tools/winscope/src/parsers/
Dparser_window_manager_dump.ts25 constructor(trace: TraceFile) {
26 super(trace);
Dparser_accessibility.ts24 constructor(trace: TraceFile) {
25 super(trace);
Dparser_window_manager.ts24 constructor(trace: TraceFile) {
25 super(trace);
Dabstract_parser.ts28 protected constructor(trace: TraceFile) {
29 this.traceFile = trace;
121 protected abstract decodeTrace(trace: Uint8Array): any[];
/development/tools/winscope/src/viewers/viewer_window_manager/
Dpresenter_test.ts34 let trace: Trace<WindowManagerState>; variable
41 trace = new TraceBuilder<WindowManagerState>()
45 position = TracePosition.fromTraceEntry(trace.getEntry(0));
61 presenter = createPresenter(trace);
234 const createPresenter = (trace: Trace<WindowManagerState>): Presenter => {
236 traces.setTrace(TraceType.WINDOW_MANAGER, trace);
/development/tools/winscope/src/viewers/viewer_view_capture/
Dpresenter_test.ts35 let trace: Trace<object>; variable
45 trace = new TraceBuilder<object>()
52 position = TracePosition.fromTraceEntry(trace.getEntry(0));
63 presenter = createPresenter(trace);
233 const createPresenter = (trace: Trace<object>): Presenter => {
235 traces.setTrace(TraceType.VIEW_CAPTURE, trace);
/development/tools/winscope/src/app/components/timeline/
Dsingle_timeline_component.ts50 @Input() trace!: Trace<{}>;
78 if (!this.trace || !this.selectionRange) {
207 for (let i = 0; i < this.trace.lengthEntries; ++i) {
208 const timestamp = this.trace.getEntry(i).getTimestamp();
238 const entry = this.trace.findClosestEntry(clickedTimestamp);
285 this.trace.forEachTimestamp((entry) => {
Dexpanded_timeline_component.ts156 trackTraceBySelectedTimestamp = (index: number, trace: Trace<{}>): Timestamp | undefined => {
157 return this.timelineData.findCurrentEntryFor(trace.type)?.getTimestamp();
/development/samples/VoiceInteractionService/
DREADME.md44 Collecting trace events: \
47 be used as a guide to collect and observe this trace data.
55 …* Counter trace value increasing as the AudioUtils.read call progresses. This value is reset after…
57 * How to capture a trace:
59 * Open https://perfetto.dev/#/running.md and upload a trace report
62 * Perfetto trace SQL query
63 * How to run a SQL query: https://perfetto.dev/docs/quickstart/trace-analysis

123