Package com.yourkit.api.controller.v2
Class AllocationProfilingSettings
java.lang.Object
com.yourkit.api.controller.v2.AllocationProfilingSettings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet heap sampling interval applied in theAllocationProfilingMode.HEAP_SAMPLING
mode.getMode()
setHeapSamplingInterval
(Integer interval) Set the heap sampling interval applied in theAllocationProfilingMode.HEAP_SAMPLING
mode.setRecordEach
(Integer each) The value is applied in theAllocationProfilingMode.EXACT_STACKS
mode.setSizeLimit
(Integer limit) The value is applied in theAllocationProfilingMode.EXACT_STACKS
mode.
-
Constructor Details
-
AllocationProfilingSettings
public AllocationProfilingSettings()
-
-
Method Details
-
getMode
-
setMode
- Parameters:
mode
-NULL
means default value.
-
getSizeLimit
-
setSizeLimit
The value is applied in the
AllocationProfilingMode.EXACT_STACKS
mode. In other modes the value, if set, has no effect and is ignored.- Parameters:
limit
-NULL
means default value.
-
getRecordEach
-
setRecordEach
The value is applied in the
AllocationProfilingMode.EXACT_STACKS
mode. In other modes the value, if set, has no effect and is ignored.- Parameters:
each
-NULL
means default value.
-
getHeapSamplingInterval
Get heap sampling interval applied in the
AllocationProfilingMode.HEAP_SAMPLING
mode. In other modes the value, if set, has no effect and is ignored.If the value has not been set,
NULL
is returned which means the default value.- Returns:
- heap sampling interval in bytes.
-
setHeapSamplingInterval
Set the heap sampling interval applied in the
AllocationProfilingMode.HEAP_SAMPLING
mode. In other modes the value, if set, has no effect and is ignored.- Parameters:
interval
- heap sampling interval in bytes, must be 0 or greater;NULL
means the default value. If the value is 0, heap sampling will record all object allocations.- Throws:
IllegalArgumentException
- if the specified interval is a negative number.
-