未验证 提交 7db60e3b 编写于 作者: 静夜思朝颜's avatar 静夜思朝颜 提交者: GitHub

add profile task query segment list and analyzation (#29)

* 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
上级 03ed7858
......@@ -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!
......@@ -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!
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册