MCPcopy
hub / github.com/electron/forge / childTrace

Function childTrace

packages/utils/tracer/src/index.ts:47–54  ·  view source on GitHub ↗
(opts: TraceOptions, fn: any)

Source from the content-addressed store, hash-verified

45 };
46 tracer?.begin(traceArgs);
47 const childTrace = (opts: TraceOptions, fn: any) => {
48 return _autoTrace(
49 tracer?.child(traceArgs) ?? null,
50 opts.newRoot ? nextRoot() : autoTraceId,
51 opts,
52 fn,
53 );
54 };
55 (childTrace as any)._autoEnd = true;
56 (childTrace as any)._end = () => tracer?.end(traceArgs);
57 try {

Callers 8

start.tsFile · 0.85
import.tsFile · 0.85
listrMakeFunction · 0.85
publish.tsFile · 0.85
listrPackageFunction · 0.85
getHookListrTasksMethod · 0.85
getHookListrTasksFunction · 0.85

Calls 2

_autoTraceFunction · 0.85
nextRootFunction · 0.85

Tested by

no test coverage detected