Lines Matching full:traces
22 export class Traces { class
23 private traces = new Set<Trace<{}>>(); property in Traces
26 this.traces.add(trace);
33 this.traces.forEach((trace) => {
38 // If multiple traces match the target type, return the longest one.
40 // - Two traces have the same type because one is a dump (e.g. SF trace + dump)
55 return Array.from(this.traces).filter(
61 this.traces.delete(trace);
65 return this.traces.has(trace);
68 sliceTime(start?: Timestamp, end?: Timestamp): Traces {
69 const slice = new Traces();
70 this.traces.forEach((trace) => {
76 sliceFrames(start?: AbsoluteFrameIndex, end?: AbsoluteFrameIndex): Traces {
77 const slice = new Traces();
78 this.traces.forEach((trace) => {
85 this.traces.forEach((trace, type) => {
99 callback: (traces: Traces, index: AbsoluteFrameIndex) => void,
104 this.traces.forEach((trace) => {
117 mapFrame<T>(callback: (traces: Traces, index: AbsoluteFrameIndex) => T): T[] {
119 this.forEachFrame((traces, index) => {
120 result.push(callback(traces, index));
126 return this.traces.size;
130 return this.traces.values();