//leakcanary-repo/shark/HprofWriter/write
write¶
[jvm]\ fun write(record: HprofRecord)
Appends a HprofRecord to the heap dump. If record is a HprofRecord.HeapDumpRecord then it will not be written to an in memory buffer and written to file only when the next a record that is not a HprofRecord.HeapDumpRecord is written or when close is called.