Lines Matching refs:traces

30   let traces: Traces;  variable
58 traces = new Traces();
59 traces.addTrace(
72 traces.addTrace(
145 assertDefined(traces.getTrace(TraceType.TEST_TRACE_STRING)),
152 assertDefined(traces.getTrace(TraceType.TEST_TRACE_NUMBER)),
157 expect(traces.getTrace(TraceType.SURFACE_FLINGER)).toBeUndefined();
161 expect(traces.getTraces(TraceType.TEST_TRACE_NUMBER)).toEqual([
162 assertDefined(traces.getTrace(TraceType.TEST_TRACE_NUMBER)),
176 const traces = new Traces(); constant
177 traces.addTrace(trace0);
178 traces.addTrace(trace1);
180 expect(TracesUtils.extractTraces(traces)).toEqual([trace0, trace1]);
182 traces.deleteTrace(trace0);
183 expect(TracesUtils.extractTraces(traces)).toEqual([trace1]);
185 traces.deleteTrace(trace1);
186 expect(TracesUtils.extractTraces(traces)).toEqual([]);
188 traces.deleteTrace(trace1);
189 expect(TracesUtils.extractTraces(traces)).toEqual([]);
206 const traces = new Traces(); constant
207 traces.addTrace(trace0);
208 traces.addTrace(trace1);
209 traces.addTrace(trace2);
211 expect(TracesUtils.extractTraces(traces)).toEqual([trace0, trace1, trace2]);
213 traces.deleteTracesByType(TraceType.TEST_TRACE_NUMBER);
214 expect(TracesUtils.extractTraces(traces)).toEqual([trace0]);
216 traces.deleteTracesByType(TraceType.TEST_TRACE_STRING);
217 expect(TracesUtils.extractTraces(traces)).toEqual([]);
219 traces.deleteTracesByType(TraceType.TEST_TRACE_STRING);
220 expect(TracesUtils.extractTraces(traces)).toEqual([]);
233 const traces = new Traces(); constant
234 traces.addTrace(trace0);
236 expect(traces.hasTrace(trace0)).toBeTrue();
237 expect(traces.hasTrace(trace1)).toBeFalse();
243 const slice = traces.sliceTime(time3, time3);
250 const slice = traces.sliceTime();
257 const slice = traces.sliceTime(time4, time8);
267 const slice = traces.sliceTime(time8);
277 const slice = traces.sliceTime(undefined, time8);
290 const slice = traces.sliceFrames(1, 1);
297 const slice = traces.sliceFrames();
304 const slice = traces.sliceFrames(1, 4);
312 const slice = traces.sliceFrames(2);
320 const slice = traces.sliceFrames(undefined, 2);
330 const promises = traces.mapTrace(async (trace) => {
339 expect(await TracesUtils.extractFrames(traces)).toEqual(
345 const traces = new TracesBuilder() constant
359 expect(await TracesUtils.extractEntries(traces)).toEqual(
362 expect(await TracesUtils.extractFrames(traces)).toEqual(
367 await TracesUtils.extractEntries(traces.sliceTime(time1, time10)),
370 await TracesUtils.extractFrames(traces.sliceTime(time1, time10)),
373 expect(await TracesUtils.extractEntries(traces.sliceFrames(0, 10))).toEqual(
376 expect(await TracesUtils.extractFrames(traces.sliceFrames(0, 10))).toEqual(
382 const traces = new TracesBuilder() constant
397 expect(await TracesUtils.extractEntries(traces)).toEqual(expectedEntries);
398 expect(await TracesUtils.extractEntries(traces.sliceTime())).toEqual(
403 traces.sliceFrames();
406 traces.forEachFrame(FunctionUtils.DO_NOTHING);
409 traces.mapFrame(FunctionUtils.DO_NOTHING);
423 const traces = new Traces(); constant
424 traces.addTrace(traceShort);
425 traces.addTrace(traceLong);
427 expect(traces.getTraces(TraceType.TEST_TRACE_NUMBER)).toEqual([
431 expect(traces.getTrace(TraceType.TEST_TRACE_NUMBER)).toEqual(traceLong);