MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ~TracingContext

Method ~TracingContext

tensorflow/lite/experimental/ruy/trace.cc:222–229  ·  view source on GitHub ↗

The trace recorded on a context is finalized and dumped by this TracingContext destructor. The idea of dumping on context destructor is that typically one wants to run many matrix multiplications, e.g. to hit a steady state in terms of performance characteristics, but only trace the last repetition of the workload, when that steady state was attained.

Source from the content-addressed store, hash-verified

220// performance characteristics, but only trace the last repetition of the
221// workload, when that steady state was attained.
222TracingContext::~TracingContext() {
223 if (trace) {
224 AggregateThreadSpecificEntries(trace);
225 Sort(trace);
226 Dump(*trace);
227 }
228 delete trace;
229}
230
231void TraceRecordStart(Trace* trace) {
232 if (trace) {

Callers

nothing calls this directly

Calls 3

DumpFunction · 0.85
SortFunction · 0.70

Tested by

no test coverage detected