Class MethodProfilingRule.PeriodRangeMap
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.jdk.latency.MethodProfilingRule.PeriodRangeMap
-
- Enclosing class:
- MethodProfilingRule
private static class MethodProfilingRule.PeriodRangeMap extends java.lang.Object
A simple class for storing execution sample period settings, allowing the sliding window to get the correct samples for each time slice.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Pair<IQuantity,IQuantity>>
settingPairs
-
Constructor Summary
Constructors Modifier Constructor Description private
PeriodRangeMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addSetting(IQuantity settingTime, IQuantity setting)
(package private) IQuantity
getSetting(IQuantity timestamp)
Gets the execution sample period that is in effect for the given timestamp.(package private) void
sort()
-
-
-
Method Detail
-
getSetting
IQuantity getSetting(IQuantity timestamp)
Gets the execution sample period that is in effect for the given timestamp.- Parameters:
timestamp
- the timestamp for which to find the given period setting- Returns:
- an IQuantity representing the period setting for the period given
-
sort
void sort()
-
-