Skip to main content

Function: auditHeapSnapshotFile()

auditHeapSnapshotFile(inputFile, options?, onProgress?): Promise\<AnonymizeReport>

Defined in: core/src/lib/HeapAnonymizer.ts:952

Report what anonymizing a capture WOULD remove, and what it would leave, without writing anything.

Point it at a capture someone already anonymized to find out whether they missed something: unclassifiedLabelFamilies names the identifier-shaped text still in the clear. Run against one already-anonymized capture, this is what showed its author had removed every string VALUE and left 26,303 account handles behind as property names.

Parameters

inputFile

string

absolute path of the capture to inspect

options?

AnonymizeOptions = {}

see AnonymizeOptions

onProgress?

AnonymizeProgressCallback

Returns

Promise\<AnonymizeReport>

the same summary anonymizeHeapSnapshotFile returns, for a run that was not written to disk

  • Examples:
import {auditHeapSnapshotFile} from '@memlab/core';

(async function () {
const report = await auditHeapSnapshotFile('/tmp/shared.heapsnapshot');
console.log(report.unclassifiedLabelFamilies);
})();