Hprof Primitive Array Stripper
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
Functions
Link copied to clipboard
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
Content copied to clipboard
fun stripPrimitiveArrays(hprofSourceProvider: StreamingSourceProvider, hprofSink: BufferedSink)
Content copied to clipboard