MCPcopy Create free account
hub / github.com/ElementsProject/lightning / destroy_trace_span

Function destroy_trace_span

common/trace.c:440–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440static void destroy_trace_span(const void *key)
441{
442 size_t numkey = trace_key(key);
443 struct span *span = trace_span_find(numkey);
444
445 /* It's usually ended normally. */
446 if (!span)
447 return;
448
449 /* Otherwise resume so we can terminate it */
450 if (trace_to_file)
451 fprintf(trace_to_file, "destroying span\n");
452 trace_span_resume(key);
453 trace_span_end(key);
454}
455
456void trace_span_suspend_may_free_(const void *key, const char *lbl)
457{

Callers

nothing calls this directly

Calls 3

trace_keyFunction · 0.85
trace_span_findFunction · 0.85
trace_span_endFunction · 0.85

Tested by

no test coverage detected