Search in sources :

Example 1 with QueryProfiler

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;
}
Also used : QueryProfiler(org.janusgraph.graphdb.query.profile.QueryProfiler)

Example 2 with QueryProfiler

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;
}
Also used : QueryProfiler(org.janusgraph.graphdb.query.profile.QueryProfiler)

Aggregations

QueryProfiler (org.janusgraph.graphdb.query.profile.QueryProfiler)2