private ProfileStackElement buildElement(int id) {
        ProfileStackElement element = new ProfileStackElement();
        element.setId(id);
        element.setCodeSignature(this.codeSignature);
        element.setCount(this.detectedStacks.size());
        return element;
    }
build GraphQL result, calculate duration and count data using parallels
oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/profiling/trace/analyze/ProfileStackNode.java