// treeNode.getAverageDuration(TimeUnit.MS)
// +
// "ms";
//
Color color = colorLookup.getColor(treeNode.getPctOfAvgParentDuration());
Node node = new CallNode(getId(methodKey), title, treeNode, color);
tgPanel.addNode(node);
for (int i = 0; i < treeNode.getChildCount(); i++) {
StackTreeNode child = (StackTreeNode) treeNode.getChildAt(i);
Color edgeColor = colorLookup.getColor(child.getPctOfAvgParentDuration());
Node childNode = buildTouchGraphTree(child, depth + 1);
CallEdge edge = new CallEdge(node, childNode, edgeColor);
tgPanel.addEdge(edge);
}
return node;