org.apache.tinkerpop.gremlin.process.traversal.step.Profiling Java Examples
The following examples show how to use
org.apache.tinkerpop.gremlin.process.traversal.step.Profiling.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProfileStep.java From tinkerpop with Apache License 2.0 | 5 votes |
private void initializeIfNeeded() { if (null == this.metrics) { this.onGraphComputer = TraversalHelper.onGraphComputer(this.getTraversal()); this.metrics = new MutableMetrics(this.getPreviousStep().getId(), this.getPreviousStep().toString()); final Step<?, S> previousStep = this.getPreviousStep(); // give metrics to the step being profiled so that it can add additional data to the metrics like // annotations if (previousStep instanceof Profiling) ((Profiling) previousStep).setMetrics(this.metrics); } }