Modifier and Type | Method and Description |
---|---|
IItemCollection |
IItemCollection.apply(IItemFilter filter)
Creates a new item collection with all items in this collection that pass through the filter.
|
Modifier and Type | Method and Description |
---|---|
static Iterable<IItem> |
ItemToolkit.asIterable(IItemCollection items)
Deprecated.
|
static <T> T |
ItemToolkit.getFirstFound(IItemCollection items,
IAttribute<T> attribute)
Returns the value of the event first encountered with the attribute.
|
Modifier and Type | Method and Description |
---|---|
static IItemCollection |
JfrLoaderToolkit.loadEvents(File file)
Loads a potentially zipped or gzipped file using the parser extensions loaded from the java
service loader
|
static IItemCollection |
JfrLoaderToolkit.loadEvents(InputStream stream)
Loads a potentially zipped or gzipped input stream using the parser extensions loaded from
the java service loader
|
static IItemCollection |
JfrLoaderToolkit.loadEvents(InputStream stream,
List<? extends IParserExtension> extensions)
Loads a potentially zipped or gzipped input stream using the parser extensions loaded from
the java service loader
|
static IItemCollection |
JfrLoaderToolkit.loadEvents(List<File> files)
Loads a recording from a sequence of potentially zipped or gzipped files using the parser
extensions loaded from the java service loader
|
static IItemCollection |
JfrLoaderToolkit.loadEvents(List<File> files,
List<? extends IParserExtension> extensions)
Loads a recording from a sequence of potentially zipped or gzipped file using the supplied
parser extensions
|
Modifier and Type | Method and Description |
---|---|
void |
RecordingPrinter.print(IItemCollection events) |
Modifier and Type | Method and Description |
---|---|
static ReferenceTreeModel |
ReferenceTreeModel.buildReferenceTree(IItemCollection items)
Creates and returns a ReferenceTreeModel object that represents the total reference tree
created by Old Object Samples and their aggregated reference chains.
|
Modifier and Type | Method and Description |
---|---|
RunnableFuture<Result> |
IRule.evaluate(IItemCollection items,
IPreferenceValueProvider valueProvider)
Gets a future representing the result of the evaluation of this rule.
|
RunnableFuture<Result> |
AbstractRule.evaluate(IItemCollection items,
IPreferenceValueProvider valueProvider) |
protected abstract Result |
AbstractRule.getResult(IItemCollection items,
IPreferenceValueProvider vp) |
Modifier and Type | Method and Description |
---|---|
static SpanSquare |
SpanToolkit.getMaxCountCluster(IItemCollection items,
IAttribute<IQuantity> countAttribute,
IAttribute<IQuantity> timestampAttribute)
Calculates the largest count cluster.
|
static SpanSquare |
SpanToolkit.getMaxDurationCluster(IItemCollection items)
Calculates the largest duration cluster.
|
static SpanLimit |
SpanToolkit.getMaxSpanLimit(IItemCollection items,
IAttribute<IQuantity> valueAttribute,
IAttribute<IQuantity> endTimeAttribute,
double limit)
Calculates the longest span where the combined value still is above the limit.
|
Modifier and Type | Method and Description |
---|---|
RunnableFuture<Result> |
CodeCacheRule.evaluate(IItemCollection items,
IPreferenceValueProvider valueProvider) |
Modifier and Type | Method and Description |
---|---|
RunnableFuture<Result> |
ManyRunningProcessesRule.evaluate(IItemCollection items,
IPreferenceValueProvider valueProvider) |
RunnableFuture<Result> |
HighJvmCpuRule.evaluate(IItemCollection items,
IPreferenceValueProvider valueProvider) |
protected Result |
CompareCpuRule.getResult(IItemCollection items,
IPreferenceValueProvider vp) |
Modifier and Type | Method and Description |
---|---|
static HaltsProvider.ApplicationHaltsInfoHolder |
HaltsProvider.calculateApplicationHaltsRatio(IItemCollection items)
Calculates the ratio of all application pauses to the total time.
|
static IQuantity |
HaltsProvider.calculateGcHaltsRatio(IItemCollection items,
IQuantity startTime,
IQuantity endTime)
Calculates the ratio of GC pauses to the total time.
|
static IQuantity |
HaltsProvider.calculateGcPauseRatio(IItemCollection items)
Calculates the ratio of GC pauses to the total time.
|
Modifier and Type | Method and Description |
---|---|
RunnableFuture<Result> |
ErrorRule.evaluate(IItemCollection items,
IPreferenceValueProvider valueProvider) |
RunnableFuture<Result> |
ExceptionRule.evaluate(IItemCollection items,
IPreferenceValueProvider valueProvider) |
RunnableFuture<Result> |
FatalErrorRule.evaluate(IItemCollection items,
IPreferenceValueProvider valueProvider) |
Modifier and Type | Method and Description |
---|---|
RunnableFuture<Result> |
SocketWriteRule.evaluate(IItemCollection items,
IPreferenceValueProvider vp) |
RunnableFuture<Result> |
FileReadRule.evaluate(IItemCollection items,
IPreferenceValueProvider valueProvider) |
RunnableFuture<Result> |
SocketReadRule.evaluate(IItemCollection items,
IPreferenceValueProvider vp) |
RunnableFuture<Result> |
FileWriteRule.evaluate(IItemCollection items,
IPreferenceValueProvider valueProvider) |
Modifier and Type | Method and Description |
---|---|
RunnableFuture<Result> |
BiasedLockingRevocationPauseRule.evaluate(IItemCollection items,
IPreferenceValueProvider valueProvider) |
RunnableFuture<Result> |
MethodProfilingRule.evaluate(IItemCollection items,
IPreferenceValueProvider valueProvider) |
RunnableFuture<Result> |
ContextSwitchRule.evaluate(IItemCollection items,
IPreferenceValueProvider vp) |
RunnableFuture<Result> |
VMOperationRule.evaluate(IItemCollection items,
IPreferenceValueProvider vp) |
RunnableFuture<Result> |
BiasedLockingRevocationRule.evaluate(IItemCollection items,
IPreferenceValueProvider valueProvider) |
RunnableFuture<Result> |
JavaBlockingRule.evaluate(IItemCollection items,
IPreferenceValueProvider valueProvider) |
Modifier and Type | Method and Description |
---|---|
IItemResultSet |
ItemResultSetFactory.createResultSet(IItemCollection items,
IItemQuery query) |
Modifier and Type | Method and Description |
---|---|
static String |
JfrHtmlRulesReport.createReport(IItemCollection events)
Create an HTML report from the provided IItemCollection
|
Modifier and Type | Method and Description |
---|---|
static ITreeNode<IItem> |
ItemTreeBuilder.buildEncapsulationTree(IItemCollection items,
boolean allowInstants)
Builds a tree where events that wrap other events, time wise, are higher up in the hierarchy.
|
static ITreeNode<IItem> |
ItemTreeBuilder.buildEncapsulationTree(IItemCollection items,
boolean allowInstants,
boolean ignoreThread)
Builds a tree where events that wrap other events, time wise, are higher up in the hierarchy.
|
static ITreeNode<IItem> |
ItemTreeBuilder.buildEncapsulationTree(IItemCollection items,
boolean allowInstants,
boolean ignoreThread,
ItemTreeBuilder.IItemTreeBuilderCallback callback)
Builds a tree where events that wrap other events, time wise, are higher up in the hierarchy.
|
Modifier and Type | Method and Description |
---|---|
static <T> List<MapToolkit.IntEntry<T>> |
RulesToolkit.calculateGroupingScore(IItemCollection items,
IAccessorFactory<T> accessorFactory)
Each group is represented by the number of elements that belong in that group, elements are
grouped by accessor value.
|
static TimeRangeThreadFilter |
RulesToolkit.createThreadsAndRangesFilter(IItemCollection items)
Creates a thread and range filter for a set of related events.
|
static Map<IRule,Future<Result>> |
RulesToolkit.evaluateParallel(Collection<IRule> rules,
IItemCollection items,
IPreferenceValueProvider preferences,
int nThreads)
Evaluates a collection of rules in parallel threads.
|
static String |
RulesToolkit.findMatches(String typeId,
IItemCollection items,
IAttribute<String> attribute,
String match,
boolean ignoreCase)
Finds items of a specific type where the given attribute has a value matching that of the
provided match string.
|
static String |
RulesToolkit.getEnabledEventTypesRecommendation(IItemCollection items,
String... typeIds)
Creates a text message informing that event types are recommended
|
static RulesToolkit.EventAvailability |
RulesToolkit.getEventAvailability(IItemCollection items,
String... typeIds)
Checks the event availability for the event types.
|
static Result |
RulesToolkit.getEventAvailabilityResult(IRule rule,
IItemCollection items,
RulesToolkit.EventAvailability eventAvailability,
String... typeIds)
Returns a proper result for the availability problem.
|
static Map<String,String> |
RulesToolkit.getFlightRecorderOptions(IItemCollection items)
Convenience method for parsing the -XX:FlightRecorderOptions JVM flag.
|
static JavaVersion |
RulesToolkit.getJavaSpecVersion(IItemCollection items)
Gets the Java version for the recording the provided
IItemCollection represents. |
static JavaVersion |
RulesToolkit.getJavaVersion(IItemCollection items) |
static String |
RulesToolkit.getPeriodIfGreaterThan(IItemCollection items,
IQuantity minPeriod,
String... typeIds)
If possible, gets the longest period setting that is longer than the specified minimum period
for the given event types.
|
static String |
RulesToolkit.getSecondFrameInMostCommonTrace(IItemCollection items)
Gets the second frame in the most common stack trace.
|
static IQuantity |
RulesToolkit.getSettingMaxPeriod(IItemCollection items,
String... typeIds)
Gets the maximum period setting for the specified event types in the given item collection.
|
static String |
RulesToolkit.getShortRecordingInfo(IItemCollection items,
IQuantity shortRecordingLimit)
Checks if the timerange spanned by the items is shorter than the limit, and returns a
informative text message if that is the case.
|
static IType<IItem> |
RulesToolkit.getType(IItemCollection items,
String typeId)
Gets the
IType representation of a specific event type in an IItemCollection . |
static String |
RulesToolkit.getTypesWithZeroThreshold(IItemCollection items,
String... typeIds)
Returns a string describing the subset of event types given which have no duration threshold
set.
|
V |
SlidingWindowToolkit.IUnorderedWindowValueFunction.getValue(IItemCollection items,
IQuantity startTime,
IQuantity endTime) |
static boolean |
RulesToolkit.isEventsEnabled(IItemCollection items,
String... typeIds)
This method checks if the provided event types were explicitly enabled by checking the
recording setting events.
|
static void |
SlidingWindowToolkit.slidingWindowUnordered(SlidingWindowToolkit.IUnorderedWindowVisitor callback,
IItemCollection items,
IQuantity windowSize,
IQuantity slideSize)
Runs a sliding window through all items, by calculating the window start and end and filter
through all the items.
|
static void |
SlidingWindowToolkit.slidingWindowUnordered(SlidingWindowToolkit.IUnorderedWindowVisitor callback,
IItemCollection items,
IQuantity windowSize,
IQuantity slideSize,
boolean includeIntersecting)
Runs a sliding window through all items, by calculating the window start and end and filter
through all the items.
|
static Pair<IQuantity,IRange<IQuantity>> |
SlidingWindowToolkit.slidingWindowUnorderedMinMaxValue(IItemCollection items,
IQuantity windowSize,
FutureTask<Result> cancellationSupplier,
SlidingWindowToolkit.IUnorderedWindowValueFunction<IQuantity> valueFunction,
boolean max,
boolean includeIntersecting)
Calculates max/min window quantity value of items.
|
static <V> Pair<V,IRange<IQuantity>> |
SlidingWindowToolkit.slidingWindowUnorderedMinMaxValue(IItemCollection items,
IQuantity windowSize,
FutureTask<Result> cancellationSupplier,
SlidingWindowToolkit.IUnorderedWindowValueFunction<V> valueFunction,
Comparator<V> valueComparator,
boolean max,
boolean includeIntersecting)
Calculates max/min window value of items.
|
static Pair<IQuantity,IRange<IQuantity>> |
SlidingWindowToolkit.slidingWindowUnorderedMinMaxValue(IItemCollection items,
IQuantity windowSize,
IQuantity slideSize,
FutureTask<Result> cancellationSupplier,
SlidingWindowToolkit.IUnorderedWindowValueFunction<IQuantity> valueFunction,
boolean max,
boolean includeIntersecting)
Calculates max/min window quantity value of items.
|
static <V> Pair<V,IRange<IQuantity>> |
SlidingWindowToolkit.slidingWindowUnorderedMinMaxValue(IItemCollection items,
IQuantity windowSize,
IQuantity slideSize,
FutureTask<Result> cancellationSupplier,
SlidingWindowToolkit.IUnorderedWindowValueFunction<V> valueFunction,
Comparator<V> valueComparator,
boolean max,
boolean includeIntersecting)
Calculates max/min window value of items.
|
void |
SlidingWindowToolkit.IUnorderedWindowVisitor.visitWindow(IItemCollection items,
IQuantity startTime,
IQuantity endTime) |
Constructor and Description |
---|
StacktraceModel(boolean threadRootAtTop,
FrameSeparator frameSeparator,
IItemCollection items) |
Copyright © 2020. All rights reserved.