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

Method save

lib/internal/debugger/inspect_repl.js:459–464  ·  view source on GitHub ↗
(filename = 'node.cpuprofile')

Source from the content-addressed store, hash-verified

457 }
458
459 save(filename = 'node.cpuprofile') {
460 const absoluteFile = Path.resolve(filename);
461 const json = JSONStringify(this.data);
462 FS.writeFileSync(absoluteFile, json);
463 print('Saved profile to ' + absoluteFile);
464 }
465 }
466
467 class SourceSnippet {

Callers

nothing calls this directly

Calls 3

printFunction · 0.70
resolveMethod · 0.45
writeFileSyncMethod · 0.45

Tested by

no test coverage detected