Skip to content
🤔 Documentation issue? Report it

//leakcanary/shark/HprofPrimitiveArrayStripper

HprofPrimitiveArrayStripper

class HprofPrimitiveArrayStripper

Converts a Hprof file to another file with all primitive arrays replaced with arrays of zeroes, which can be useful to remove PII. Char arrays are handled slightly differently because 0 would be the null character so instead these become arrays of ‘?’.

Constructors

HprofPrimitiveArrayStripper fun HprofPrimitiveArrayStripper()

Functions

Name Summary
stripPrimitiveArrays fun stripPrimitiveArrays(inputHprofFile: File, outputHprofFile: File = File( inputHprofFile.parent, inputHprofFile.name.replace( ".hprof", "-stripped.hprof" ).let { if (it != inputHprofFile.name) it else inputHprofFile.name + "-stripped" })): File
fun stripPrimitiveArrays(hprofSourceProvider: StreamingSourceProvider, hprofSink: BufferedSink)