public InvocationSet invocationsOfChild(int childSerial) { ArrayList<Invocation> p = new ArrayList<Invocation>(); for (Invocation inv : invocations) { Invocation childInv = inv.getChildren().get(childSerial); if (childInv != null) { p.add(childInv); } } return new InvocationSet(p); }
public InvocationSet invocationsOfChild(int childSerial) { ArrayList<Invocation> p = new ArrayList<Invocation>(); for (Invocation inv : invocations) { Invocation childInv = inv.getChildren().get(childSerial); if (childInv != null) { p.add(childInv); } } return new InvocationSet(p); }
public InvocationSet invocationsOfChild(int childSerial) { ArrayList<Invocation> p = new ArrayList<Invocation>(); for (Invocation inv : invocations) { Invocation childInv = inv.getChildren().get(childSerial); if (childInv != null) { p.add(childInv); } } return new InvocationSet(p); }
public InvocationSet invocationsOfChild(int childSerial) { ArrayList<Invocation> p = new ArrayList<Invocation>(); for (Invocation inv : invocations) { Invocation childInv = inv.getChildren().get(childSerial); if (childInv != null) { p.add(childInv); } } return new InvocationSet(p); }
public InvocationSet rootInvocationsOfChild(int childSerial) { ArrayList<Invocation> p = new ArrayList<Invocation>(); for (Invocation inv : invocations) { Invocation childInv = inv.getChildren().get(childSerial); if (childInv != null && childInv.getRecursiveDepth() == 1) { p.add(childInv); } } return new InvocationSet(p); }
public int callsOfChild(int serial) { int c = 0; for (Invocation inv : invocations) { Invocation childInv = inv.getChildren().get(serial); if (childInv != null) { c += childInv.getCount(); } } return c; }
public long timeSpentInChild(int serial) { long t = 0; for (Invocation inv : invocations) { Invocation childInv = inv.getChildren().get(serial); if (childInv != null) { t += childInv.getDuration(); } } return t; }
public InvocationSet rootInvocationsOfChild(int childSerial) { ArrayList<Invocation> p = new ArrayList<Invocation>(); for (Invocation inv : invocations) { Invocation childInv = inv.getChildren().get(childSerial); if (childInv != null && childInv.getRecursiveDepth() == 1) { p.add(childInv); } } return new InvocationSet(p); }
public int callsOfChild(int serial) { int c = 0; for (Invocation inv : invocations) { Invocation childInv = inv.getChildren().get(serial); if (childInv != null) { c += childInv.getCount(); } } return c; }
public Invocation childInvocationFor(int serial) { Invocation child; if ((child = children.get(serial)) == null) { child = new Invocation(this, serial); children.put(serial, child); } return child; }
public InvocationSet rootInvocationsOfChild(int childSerial) { ArrayList<Invocation> p = new ArrayList<Invocation>(); for (Invocation inv : invocations) { Invocation childInv = inv.getChildren().get(childSerial); if (childInv != null && childInv.getRecursiveDepth() == 1) { p.add(childInv); } } return new InvocationSet(p); }
public long timeSpentInChild(int serial) { long t = 0; for (Invocation inv : invocations) { Invocation childInv = inv.getChildren().get(serial); if (childInv != null) { t += childInv.getDuration(); } } return t; }
public int callsOfChild(int serial) { int c = 0; for (Invocation inv : invocations) { Invocation childInv = inv.getChildren().get(serial); if (childInv != null) { c += childInv.getCount(); } } return c; }
public Invocation childInvocationFor(int serial) { Invocation child; if ((child = children.get(serial)) == null) { child = new Invocation(this, serial); children.put(serial, child); } return child; }
public long timeSpentInChild(int serial) { long t = 0; for (Invocation inv : invocations) { Invocation childInv = inv.getChildren().get(serial); if (childInv != null) { t += childInv.getDuration(); } } return t; }
public Invocation childInvocationFor(int serial) { Invocation child; if ((child = children.get(serial)) == null) { child = new Invocation(this, serial); children.put(serial, child); } return child; }
private void printInvocationOfChild(PrintStream out, IntHashMap<MethodData> methods, MethodData data, int childSerial, String callerName, InvocationSet invs) { out.print("<!-- " + invs.totalTime() + " -->"); if (invs.totalTime() < LIMIT) { return; } out.println("<tr>"); out.println(" <td></td>"); out.println(" <td></td>"); printTimingCells(out, invs); out.println(" <td>" + Integer.toString(data.invocationsOfChild(childSerial).totalCalls()) + "/" + Integer.toString(methods.get(childSerial).totalCalls()) + "</td>"); out.println(" <td>" + linkToMethod(callerName) + "</td>"); out.println("</tr>"); }
protected ProfiledMethod getProfiledMethod(final int serial) { ProfiledMethod profiledMethod = getProfiledMethods().get(serial); if (profiledMethod == null) { // check for the method in the runtime : ProfiledMethod[] runtimeMethods = threadContext.getRuntime().getProfiledMethods(); if (serial < runtimeMethods.length) { profiledMethod = runtimeMethods[serial]; } } return profiledMethod; }
public void addProfiledMethod(String name, DynamicMethod method) { if (method.isUndefined()) return; final long serial = method.getSerialNumber(); if (serial > MAX_PROFILE_METHODS) return; if (profiledMethods.get((int) serial) == null) { profiledMethods.put((int) serial, new ProfiledMethod(name, method)); } }
public void addProfiledMethod(String name, DynamicMethod method) { if (method.isUndefined()) return; final long serial = method.getSerialNumber(); if (serial > MAX_PROFILE_METHODS) return; if (profiledMethods.get((int) serial) == null) { profiledMethods.put((int) serial, new ProfiledMethod(name, method)); } }