use of org.janusgraph.graphdb.query.profile.QueryProfiler in project janusgraph by JanusGraph.
the class BasicVertexCentricQueryBuilder method constructQuery.
protected BaseVertexCentricQuery constructQuery(RelationCategory returnType) {
QueryProfiler optProfiler = profiler.addNested(QueryProfiler.OPTIMIZATION);
optProfiler.startTimer();
BaseVertexCentricQuery query = constructQueryWithoutProfile(returnType);
optProfiler.stopTimer();
query.observeWith(profiler);
return query;
}
use of org.janusgraph.graphdb.query.profile.QueryProfiler in project janusgraph by JanusGraph.
the class GraphCentricQueryBuilder method constructQuery.
public GraphCentricQuery constructQuery(final ElementCategory resultType) {
QueryProfiler optProfiler = profiler.addNested(QueryProfiler.OPTIMIZATION);
optProfiler.startTimer();
GraphCentricQuery query = constructQueryWithoutProfile(resultType);
optProfiler.stopTimer();
query.observeWith(profiler);
return query;
}
Aggregations