SampleNode sn = s.getValue(); appendable.append(Integer.toString(sn.getSampleCount())); TMap<Method, SampleNode> cSn = sn.getSubNodes(); if (cSn != null) { Iterator<Map.Entry<Method, SampleNode>> iterator = cSn.entrySet().iterator();
g2.setPaint(LINK_COLOR); g2.drawRect(x, y, width, height); Map<Method, SampleNode> children = node.getSubNodes(); int result = height; if (children != null) {
public void add(final SampleNode node) { this.sampleCount += node.getSampleCount(); TMap<Method, SampleNode> oSubNodes = (TMap<Method, SampleNode>) node.getSubNodes(); if (this.subNodes == null) { this.subNodes = oSubNodes; } else if (oSubNodes != null) { oSubNodes.forEachEntry((final Method m, final SampleNode b) -> { SampleNode other = subNodes.get(m); if (other == null) { subNodes.put(m, b); } else { other.sampleCount += b.sampleCount; } return true; }); } }
public static SampleNode convert(final Iterator<StackSampleElement> samples) { TIntObjectMap<SampleNode> index = new TIntObjectHashMap<>(); while (samples.hasNext()) { StackSampleElement asmp = samples.next(); SampleNode sn = new SampleNode(asmp.getCount(), new THashMap<Method, SampleNode>(4)); SampleNode parent = index.get(asmp.getParentId()); if (parent != null) { Method m = asmp.getMethod(); final Map<Method, SampleNode> subNodes = parent.getSubNodes(); if (subNodes == null) { throw new IllegalStateException("Bug, state " + index + "; at node " + asmp); } subNodes.put(m, sn); } index.put(asmp.getId(), sn); } return index.get(0); }
aggregates.put(parentVertex.key, aggSampleVertex); Deque<TraversalData> dq = new ArrayDeque<>(); TMap<Method, SampleNode> subNodes = node.getSubNodes(); if (subNodes != null) { subNodes.forEachEntry((k, v) -> { throw new IllegalStateException(); TMap<Method, SampleNode> subNodes2 = t.node.getSubNodes(); final Sample vvv = vtx; if (subNodes2 != null) {
Method readMethod = asmp.getMethod(); Method m = new Method(readMethod.getDeclaringClass(), readMethod.getName()); final Map<Method, SampleNode> subNodes = parent.getSubNodes(); if (subNodes == null) { throw new IllegalStateException("Bug, state " + index + "; at node " + asmp);
Assert.assertEquals(node1.getSampleCount() + node2.getSampleCount(), agg.getSampleCount()); final Method method = Methods.getMethod("C1", "m3"); Assert.assertEquals(node1.getSubNodes().get(method).getSampleCount() + node2.getSubNodes().get(method).getSampleCount(), agg.getSubNodes().get(method).getSampleCount());