memory-check
Module Contents
alltypes
Module Contents
enum
class
AnalysisResult
Module Contents
GROW
SHRINK
STABLE
UNKNOWN
data
class
ClassGrowth
Module Contents
ClassGrowth
(
className
:
ClassName
,
histoLines
:
List
<
HistoLine
>
,
analysisResult
:
AnalysisResult
)
val
analysisResult
:
AnalysisResult
val
className
:
ClassName
val
histoLines
:
List
<
HistoLine
>
data
class
ClassGrowthTrend
Module Contents
ClassGrowthTrend
(
data
:
Map
<
ClassName
,
ClassGrowth
>
)
val
data
:
Map
<
ClassName
,
ClassGrowth
>
fun
statusCount
(
status
:
AnalysisResult
)
:
Int
fun
statusFilter
(
status
:
AnalysisResult
)
:
List
<
ClassGrowth
>
data
class
ClassName
Module Contents
ClassName
(
name
:
String
)
val
name
:
String
class
HistoAnalyser
Module Contents
HistoAnalyser
(
)
fun
analyse
(
histos
:
List
<
HistoInfo
>
)
:
ClassGrowthTrend
fun
analyseGrowth
(
histoLines
:
List
<
HistoLine
>
,
thingToCheck
:
(
HistoLine
)
->
Long
?
=
{ it.instances }
)
:
AnalysisResult
data
class
HistoInfo
Module Contents
HistoInfo
(
histoFile
:
File
,
timestamp
:
LocalDateTime
,
histogram
:
List
<
HistoLine
>
)
fun
findAllClassNames
(
)
:
List
<
ClassName
>
val
histoFile
:
File
val
histogram
:
List
<
HistoLine
>
val
timestamp
:
LocalDateTime
data
class
HistoLine
Module Contents
HistoLine
(
className
:
ClassName
,
num
:
Long
?
,
instances
:
Long
?
,
bytes
:
Long
?
)
val
bytes
:
Long
?
val
className
:
ClassName
fun
createGhostLine
(
name
:
ClassName
)
:
HistoLine
val
instances
:
Long
?
fun
isGhost
(
)
:
Boolean
val
num
:
Long
?
class
HistoReader
Module Contents
HistoReader
(
)
fun
readHistos
(
histoFiles
:
List
<
File
>
)
:
List
<
HistoInfo
>
object
HumanReadable
Module Contents
fun
humanReadableMemorySize
(
v
:
Long
)
:
String
?
open
class
InvalidHistoLineException
:
Exception
Module Contents
InvalidHistoLineException
(
msg
:
String
)
class
JmxHisto
:
AutoCloseable
Module Contents
JmxHisto
(
host
:
String
,
port
:
Int
)
fun
close
(
)
:
Unit
val
gcClassHistogramParams
:
Array
<
Any
>
val
gcClassHistogramSignature
:
Array
<
String
!
>
fun
readHistogram
(
)
:
String
class
MemoryCheck
Module Contents
MemoryCheck
(
)
fun
processHistos
(
directory
:
String
,
extension
:
String
)
:
Unit
fun
useZoneOffset
(
)
:
ZoneId
class
MemoryCheckException
:
Exception
Module Contents
MemoryCheckException
(
msg
:
String
)
class
TextReport
Module Contents
TextReport
(
)
fun
report
(
histos
:
List
<
HistoInfo
>
,
analysis
:
ClassGrowthTrend
)
:
Unit
fun
reportLine
(
line
:
ClassGrowth
)
:
Unit
package
nl.stokpop.jmx
Module Contents
class
JmxHisto
:
AutoCloseable
Module Contents
JmxHisto
(
host
:
String
,
port
:
Int
)
fun
close
(
)
:
Unit
val
gcClassHistogramParams
:
Array
<
Any
>
val
gcClassHistogramSignature
:
Array
<
String
!
>
fun
readHistogram
(
)
:
String
fun
main
(
args
:
Array
<
String
>
)
:
Unit
package
nl.stokpop.memory
Module Contents
class
HistoAnalyser
Module Contents
HistoAnalyser
(
)
fun
analyse
(
histos
:
List
<
HistoInfo
>
)
:
ClassGrowthTrend
fun
analyseGrowth
(
histoLines
:
List
<
HistoLine
>
,
thingToCheck
:
(
HistoLine
)
->
Long
?
=
{ it.instances }
)
:
AnalysisResult
class
HistoReader
Module Contents
HistoReader
(
)
fun
readHistos
(
histoFiles
:
List
<
File
>
)
:
List
<
HistoInfo
>
object
HumanReadable
Module Contents
fun
humanReadableMemorySize
(
v
:
Long
)
:
String
?
open
class
InvalidHistoLineException
:
Exception
Module Contents
InvalidHistoLineException
(
msg
:
String
)
fun
main
(
args
:
Array
<
String
>
)
:
Unit
class
MemoryCheck
Module Contents
MemoryCheck
(
)
fun
processHistos
(
directory
:
String
,
extension
:
String
)
:
Unit
fun
useZoneOffset
(
)
:
ZoneId
class
MemoryCheckException
:
Exception
Module Contents
MemoryCheckException
(
msg
:
String
)
class
TextReport
Module Contents
TextReport
(
)
fun
report
(
histos
:
List
<
HistoInfo
>
,
analysis
:
ClassGrowthTrend
)
:
Unit
fun
reportLine
(
line
:
ClassGrowth
)
:
Unit
package
nl.stokpop.memory.domain
Module Contents
enum
class
AnalysisResult
Module Contents
GROW
SHRINK
STABLE
UNKNOWN
data
class
ClassGrowth
Module Contents
ClassGrowth
(
className
:
ClassName
,
histoLines
:
List
<
HistoLine
>
,
analysisResult
:
AnalysisResult
)
val
analysisResult
:
AnalysisResult
val
className
:
ClassName
val
histoLines
:
List
<
HistoLine
>
data
class
ClassGrowthTrend
Module Contents
ClassGrowthTrend
(
data
:
Map
<
ClassName
,
ClassGrowth
>
)
val
data
:
Map
<
ClassName
,
ClassGrowth
>
fun
statusCount
(
status
:
AnalysisResult
)
:
Int
fun
statusFilter
(
status
:
AnalysisResult
)
:
List
<
ClassGrowth
>
data
class
ClassName
Module Contents
ClassName
(
name
:
String
)
val
name
:
String
data
class
HistoInfo
Module Contents
HistoInfo
(
histoFile
:
File
,
timestamp
:
LocalDateTime
,
histogram
:
List
<
HistoLine
>
)
fun
findAllClassNames
(
)
:
List
<
ClassName
>
val
histoFile
:
File
val
histogram
:
List
<
HistoLine
>
val
timestamp
:
LocalDateTime
data
class
HistoLine
Module Contents
HistoLine
(
className
:
ClassName
,
num
:
Long
?
,
instances
:
Long
?
,
bytes
:
Long
?
)
val
bytes
:
Long
?
val
className
:
ClassName
fun
createGhostLine
(
name
:
ClassName
)
:
HistoLine
val
instances
:
Long
?
fun
isGhost
(
)
:
Boolean
val
num
:
Long
?