Package graphql.agent.result
Class ExecutionTrackingResult
java.lang.Object
graphql.agent.result.ExecutionTrackingResult
This is the result of the agent tracking an execution.
It can be found inside the GraphQLContext after the execution with the key
EXECUTION_TRACKING_KEY
Note: While this is public API, the main goal is temporary debugging to understand an execution better with minimal overhead.
Therefore this will evolve over time if needed to be performant and reflect the overall execution.
It is not recommended to have the agent on always or to rely on this class during normal execution-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal AtomicLongfinal AtomicReference<String> static final Stringfinal Map<ResultPath, String> final Map<ResultPath, Long> final Map<ResultPath, String> final AtomicLongfinal Map<ResultPath, String> final AtomicReference<String> final Map<ResultPath, Long> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidend(ResultPath path, long endTime) getDfResultTypes(ResultPath resultPath) getDfResultTypes(String resultPath) longgetTime(ResultPath path) longvoidsetDfResultTypes(ResultPath resultPath, ExecutionTrackingResult.DFResultType resultTypes) voidstart(ResultPath path, long startTime) toString()
-
Field Details
-
EXECUTION_TRACKING_KEY
- See Also:
-
startThread
-
endThread
-
startExecutionTime
-
endExecutionTime
-
resultPathToDataLoaderUsed
-
dataLoaderToName
-
timePerPath
-
finishedTimePerPath
-
finishedThreadPerPath
-
startInvocationThreadPerPath
-
dataLoaderNameToBatchCall
-
-
Constructor Details
-
ExecutionTrackingResult
public ExecutionTrackingResult()
-
-
Method Details
-
print
-
toString
-
getDataLoaderNames
-
start
-
end
-
dataFetcherCount
public int dataFetcherCount() -
getTime
-
getTime
-
setDfResultTypes
public void setDfResultTypes(ResultPath resultPath, ExecutionTrackingResult.DFResultType resultTypes) -
getDfResultTypes
-
getDfResultTypes
-