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 class
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal AtomicLong
final AtomicReference
<String> static final String
final Map
<ResultPath, String> final Map
<ResultPath, Long> final Map
<ResultPath, String> final AtomicLong
final Map
<ResultPath, String> final AtomicReference
<String> final Map
<ResultPath, Long> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
end
(ResultPath path, long endTime) getDfResultTypes
(ResultPath resultPath) getDfResultTypes
(String resultPath) long
getTime
(ResultPath path) long
void
setDfResultTypes
(ResultPath resultPath, ExecutionTrackingResult.DFResultType resultTypes) void
start
(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
-