Package org.elasticsearch.search.profile
Class Profilers
java.lang.Object
org.elasticsearch.search.profile.Profilers
public final class Profilers
extends java.lang.Object
Wrapper around all the profilers that makes management easier.
-
Constructor Summary
Constructors Constructor Description Profilers(ContextIndexSearcher searcher)
Sole constructor. -
Method Summary
Modifier and Type Method Description QueryProfiler
addQueryProfiler()
Switch to a new profile.AggregationProfiler
getAggregationProfiler()
Return theAggregationProfiler
.QueryProfiler
getCurrentQueryProfiler()
Get the current profiler.java.util.List<QueryProfiler>
getQueryProfilers()
Return the list of all createdQueryProfiler
s so far.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Profilers
Sole constructor. ThisProfilers
instance will initially wrap oneQueryProfiler
.
-
-
Method Details
-
addQueryProfiler
Switch to a new profile. -
getCurrentQueryProfiler
Get the current profiler. -
getQueryProfilers
Return the list of all createdQueryProfiler
s so far. -
getAggregationProfiler
Return theAggregationProfiler
.
-