MCPcopy Index your code
hub / github.com/nodejs/node / inspect

Method inspect

test/async-hooks/init-hooks.js:128–137  ·  view source on GitHub ↗
(opts = {})

Source from the content-addressed store, hash-verified

126 }
127
128 inspect(opts = {}) {
129 if (typeof opts === 'string') opts = { types: opts };
130 const { types = null, depth = 5, stage = null } = opts;
131 const activities = types == null ?
132 Array.from(this._activities.values()) :
133 this.activitiesOfTypes(types);
134
135 if (stage != null) console.log(`\n${stage}`);
136 console.log(util.inspect(activities, false, depth, true));
137 }
138
139 activitiesOfTypes(types) {
140 if (!Array.isArray(types)) types = [ types ];

Callers 15

inspectFunction · 0.80
inspectWithNoCustomRetryFunction · 0.80
determineSpecificTypeFunction · 0.80
errors.jsFile · 0.80
mainFunction · 0.80
mainFunction · 0.80
benchmarkFunction · 0.80
checkOutputFunction · 0.80
inspectNodeFunction · 0.80

Calls 4

activitiesOfTypesMethod · 0.95
fromMethod · 0.45
valuesMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected