From 6104df8f0debce4c81142e5b1fc696d61bb673c5 Mon Sep 17 00:00:00 2001 From: mrproliu <741550557@qq.com> Date: Sun, 9 Feb 2020 10:16:21 +0800 Subject: [PATCH] change ProfileStackElement to single level (#32) --- profile.graphqls | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/profile.graphqls b/profile.graphqls index 3b65da1..3252ccd 100644 --- a/profile.graphqls +++ b/profile.graphqls @@ -84,8 +84,11 @@ type ProfileTask { logs: [ProfileTaskLog!]! } -# Profile thread stack anayze tree +# Profile thread stack anayze tree element type ProfileStackElement { + # work for tree building, id matches multiple parentId + id: ID! + parentId: ID! # stack code signature codeSignature: String! # Include the execution time of children(millisecond) @@ -94,14 +97,20 @@ type ProfileStackElement { durationChildExcluded: Int! # continuous dump count count: Int! - # children of this stack code sign - children: [ProfileStackElement!] +} + +# Profile thread stack anayze tree +type ProfileStackTree { + elements: [ProfileStackElement!]! } # Profile analyze result type ProfileAnalyzation { - # thread stack dump analyze tree - stack: [ProfileStackElement!]! + # if not empty means backend has information gave to the user + # such as: a large number of snapshots, only analyze part of the data + tip: String + # thread stack dump analyze trees + trees: [ProfileStackTree!]! } extend type Mutation { -- GitLab