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

Function trace_span_suspend_

common/trace.c:420–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420void trace_span_suspend_(const void *key, const char *lbl)
421{
422 if (disable_trace)
423 return;
424
425 size_t numkey = trace_key(key);
426 struct span *span = trace_span_find(numkey);
427 TRACE_DBG("Suspending span %s (%zu)\n", current->name, current->key);
428 assert(current == span);
429 assert(!span->suspended);
430 span->suspended = true;
431 current = current->parent;
432 DTRACE_PROBE1(lightningd, span_suspend, span->id);
433 if (trace_to_file) {
434 fprintf(trace_to_file, "span_suspend %016" PRIx64 "\n",
435 span->id);
436 fflush(trace_to_file);
437 }
438}
439
440static void destroy_trace_span(const void *key)
441{

Callers 1

Calls 2

trace_keyFunction · 0.85
trace_span_findFunction · 0.85

Tested by

no test coverage detected