MCPcopy Index your code
hub / github.com/python/cpython / constructor

Method constructor

Doc/_static/profiling-sampling-visualization.js:169–176  ·  view source on GitHub ↗
(source, events)

Source from the content-addressed store, hash-verified

167
168 class ExecutionTrace {
169 constructor(source, events) {
170 this.source = source;
171 this.events = events.map(
172 (e) =>
173 new ExecutionEvent(e.type, e.func, e.line, e.ts, e.args, e.value),
174 );
175 this.duration = events.length > 0 ? events[events.length - 1].ts : 0;
176 }
177
178 getEventsUntil(timestamp) {
179 return this.events.filter((e) => e.timestamp <= timestamp);

Callers

nothing calls this directly

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected