Skip to content

Commit

Permalink
add profile task query segment list and analyzation (#29)
Browse files Browse the repository at this point in the history
* add query segment list by profile task

* remove unused blank line

* provide profiled segment analyzation

* change names, alter query analyzation using timestamp

* add max recursion count, some code using recursion method invoke, need to detect it

* rename ThreadStackAnalyzation -> ProfileStackElement, delete maxRecursionCount
  • Loading branch information
mrproliu committed Jan 31, 2020
1 parent 03ed785 commit 7db60e3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions profile.graphqls
Expand Up @@ -84,6 +84,26 @@ type ProfileTask {
logs: [ProfileTaskLog!]!
}

# Profile thread stack anayze tree
type ProfileStackElement {
# stack code signature
codeSignature: String!
# self include children duration(millisecond)
duration: Int!
# self exclude children duration(millisecond)
durationChildExcluded: Int!
# total dump count
count: Int!
# children of this stack code sign
childs: [ProfileStackElement!]
}

# Profile analyze result
type ProfileAnalyzation {
# thread stack dump analyze tree
stack: [ProfileStackElement!]!
}

extend type Mutation {
# crate new profile task
createProfileTask(creationRequest: ProfileTaskCreationRequest): ProfileTaskCreationResult!
Expand All @@ -92,4 +112,8 @@ extend type Mutation {
extend type Query {
# query all task list, order by ProfileTask#startTime descending
getProfileTaskList(serviceId: ID, endpointName: String): [ProfileTask!]!
# query all task profiled segment list
getProfileTaskSegmentList(taskID: String): [BasicTrace!]!
# analyze profiled segment, start and end time use timestamp(millisecond)
getProfileAnalyze(segmentId: String!, start: Long!, end: Long!): ProfileAnalyzation!
}

0 comments on commit 7db60e3

Please sign in to comment.