Examples of GwtNode


Examples of com.google.gwt.debugpanel.models.GwtDebugStatisticsModel.GwtNode

    public ActivityTree getActivityRoot(
        GwtDebugStatisticsModel model, GwtNode parent, String module, String group, double millis) {
      String key = "__" + module + "__" + group;
      ActivityTree tree = rpcs.get(key);
      if (tree == null) {
        GwtNode node = null;
        if (millis != 0) {
          node = new GwtNode("action" + group, module, millis, millis);
          model.addNodeAndUpdateItsParents(parent, node, -1);
        }
        tree = new ActivityTree(parent, node);
        rpcs.put(key, tree);
      } else if (tree.root == null) {
        tree.root = new GwtNode("action" + group, module, millis, millis);
        model.addNodeAndUpdateItsParents(tree.parent, tree.root, -1);
      }
      return tree;
    }
View Full Code Here

Examples of com.google.gwt.debugpanel.models.GwtDebugStatisticsModel.GwtNode

  public RpcTree getRpcRoot(
      GwtDebugStatisticsModel model, GwtNode parent, String module, String group, double millis) {
    String key = "__" + module + "__" + group;
    RpcTree tree = rpcs.get(key);
    if (tree == null) {
      GwtNode node = null;
      if (millis != 0) {
        node = new GwtNode(RPC + group, module, millis, millis);
        model.addNodeAndUpdateItsParents(parent, node, -1);
      }
      tree = new RpcTree(parent, node);
      rpcs.put(key, tree);
    } else if (tree.root == null) {
      tree.root = new GwtNode(RPC + group, module, millis, millis);
      model.addNodeAndUpdateItsParents(tree.parent, tree.root, -1);
    }
    return tree;
  }
View Full Code Here

Examples of com.google.gwt.debugpanel.models.GwtDebugStatisticsModel.GwtNode

    if (STARTUP.equals(event.getSubSystem())) {
      String module = event.getModuleName();
      String group = event.getEventGroupKey();
      double millis = event.getMillis();
      StartUpTree tree = getStartupTree(model, module, millis);
      GwtNode parent = findOrCreateChild(model, tree.startup, group, millis, millis);
      updateStartupTree(model, event, tree, parent, module, group, getType(event), millis);
      return true;
    }
    return false;
  }
View Full Code Here

Examples of com.google.gwt.debugpanel.models.GwtDebugStatisticsModel.GwtNode

        if ((end = parent.getChild(idx).getValue().getStartTime()) > millis) {
          break;
        }
      }
      if (idx > 0) {
        GwtNode node = (GwtNode) parent.getChild(idx - 1);
        model.updateNodeAndItsParents(node, node.withEndTime(millis));
      }
      if (idx >= parent.getChildCount()) {
        end = Math.max(millis, parent.getValue().getEndTime());
      }
      GwtNode node = new GwtNode(getClassName(event), module, millis, end);
      model.addNodeAndUpdateItsParents(parent, node, idx);
    } else if (END.equals(type)) {
      parent = findOrCreateChild(model, parent, "onModuleLoad", millis, millis);
      if (parent.getChildCount() > 0) {
        GwtNode node = (GwtNode) parent.getChild(parent.getChildCount() - 1);
        model.updateNodeAndItsParents(node, node.withEndTime(millis));
      }
    }
  }
View Full Code Here

Examples of com.google.gwt.debugpanel.models.GwtDebugStatisticsModel.GwtNode

  }

  public StartUpTree getStartupTree(GwtDebugStatisticsModel model, String module, double millis) {
    StartUpTree tree = startups.get(module);
    if (tree == null) {
      GwtNode node = new GwtNode(STARTUP, module, millis, millis);
      model.addNode(null, node, -1);
      tree = new StartUpTree(node);
      startups.put(module, tree);
    }
    return tree;
View Full Code Here

Examples of com.google.gwt.debugpanel.models.GwtDebugStatisticsModel.GwtNode

  protected static final String BEGIN = "begin";
  protected static final String END = "end";

  public GwtNode findOrCreateChild(
      GwtDebugStatisticsModel model, GwtNode parent, String label, double start, double end) {
    GwtNode result = parent.findChild(label);
    if (result == null) {
      if (start == 0) {
        start = end;
      } else if (end == 0) {
        end = start;
      }
      result = new GwtNode(label, parent.getValue().getModuleName(), start, end);
      int idx = 0;
      for (; idx < parent.getChildCount(); idx++) {
        DebugStatisticsValue value = parent.getChild(idx).getValue();
        if (start <= value.getStartTime() && end <= value.getEndTime()) {
          break;
View Full Code Here

Examples of com.google.gwt.debugpanel.models.GwtDebugStatisticsModel.GwtNode

  public RpcTree getRpcRoot(
      GwtDebugStatisticsModel model, GwtNode parent, String module, String group, double millis) {
    String key = "__" + module + "__" + group;
    RpcTree tree = rpcs.get(key);
    if (tree == null) {
      GwtNode node = null;
      if (millis != 0) {
        node = new GwtNode(RPC + group, module, millis, millis);
        model.addNodeAndUpdateItsParents(parent, node, -1);
      }
      tree = new RpcTree(parent, node);
      rpcs.put(key, tree);
    } else if (tree.root == null) {
      tree.root = new GwtNode(RPC + group, module, millis, millis);
      model.addNodeAndUpdateItsParents(tree.parent, tree.root, -1);
    }
    return tree;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.