Companion

object Companion

Functions

indexHprof
Link copied to clipboard
fun indexHprof(hprof: Hprof, proguardMapping: ProguardMapping? = null, indexedGcRootTypes: Set<KClass<out GcRoot>> = deprecatedDefaultIndexedGcRootTypes()): HeapGraph
openHeapGraph
Link copied to clipboard
fun File.openHeapGraph(proguardMapping: ProguardMapping? = null, indexedGcRootTypes: Set<HprofRecordTag> = HprofIndex.defaultIndexedGcRootTags()): CloseableHeapGraph

A facility for opening a CloseableHeapGraph from a File. This first parses the file headers with HprofHeader.parseHeaderOf, then indexes the file content with HprofIndex.indexRecordsOf and then opens a CloseableHeapGraph from the index, which you are responsible for closing after using.

fun DualSourceProvider.openHeapGraph(proguardMapping: ProguardMapping? = null, indexedGcRootTypes: Set<HprofRecordTag> = HprofIndex.defaultIndexedGcRootTags()): CloseableHeapGraph

Properties

INTERNAL_LRU_CACHE_SIZE
Link copied to clipboard
var INTERNAL_LRU_CACHE_SIZE: Int = 3000

This is not a public API, it's only public so that we can evaluate the effectiveness of different cache size in tests in a different module.