Examples of StackFrame


Examples of anvil.script.StackFrame

  /// @param frame Frame number, zero is oldest.
  public static final Object[] p_getFrame = { null, "*frame", new Integer(-1) };
  public static final Any getFrame(Context context, int frame)
  {
    context.checkAccess(CAN_READ);
    StackFrame stackframe = null;
    if (frame == -1) {
      stackframe = context.frame();
    } else {
      if (frame >= 0 && frame < context.size()) {
        stackframe = context.peek(frame);
View Full Code Here

Examples of anvil.script.StackFrame

  public static final Object[] p_getZone = { null, "*frame", new Integer(-1) };
  public static final Any getZone(Context context, int frame)
  {
    context.checkAccess(CAN_READ);
    context.checkAccess(anvil.core.system.AnyConfigurable.CAN_READ);
    StackFrame stackframe = null;
    if (frame == -1) {
      return new anvil.core.system.AnyConfigurable(
        context.frame().getModule().getAddress().getZone());
    } else {
      if (frame >= 0 && frame < context.size()) {
View Full Code Here

Examples of com.google.speedtracer.client.model.StackFrame

    return stackTrace;
  }

  public void render(TableCellElement cell) {   
    for (int i = 0, n = stackTrace.size(); i < n; i++) {
      final StackFrame frame = stackTrace.get(i);
      final StackFrameRenderer frameRenderer = new StackFrameRenderer(frame,
          this);
      frameRenderer.render(cell, attemptResymbolization);
    }
  }
View Full Code Here

Examples of com.insightfullogic.honest_profiler.core.parser.StackFrame

        int threadId = 0;
        collector.handle(new TraceStart(2, ++threadId));

        assertTrue("nothing to profile still", found.isEmpty());

        collector.handle(new StackFrame(LINE, 0));
        collector.handle(new StackFrame(LINE, 1));
        // ..and one unexpected frame
        collector.handle(new StackFrame(LINE, 2));

        // normal method afterwards
        collector.handle(new TraceStart(2, ++threadId));
        collector.handle(new StackFrame(LINE, 6));
        collector.handle(new StackFrame(LINE, 7));

        // and continuation
        collector.handle(new TraceStart(20, ++threadId));

        assertArrayEquals(new long[] { 2, 7 }, idOfLastMethodInEachThread(found.getLast()));
View Full Code Here

Examples of com.insightfullogic.honest_profiler.core.parser.StackFrame

    private final LogCollector collector = new LogCollector(listener, false);

    @Test
    public void rendersSingleNode() {
        collector.handle(new TraceStart(1, 1));
        collector.handle(new StackFrame(20, ProfileFixtures.printlnId));
        collector.handle(ProfileFixtures.println);
        collector.endOfLog();

        ProfileNode node = assertProfileHasSingleTree();
        assertEquals(0L, node.children().count());
View Full Code Here

Examples of com.insightfullogic.honest_profiler.core.parser.StackFrame

        printlnCallingPrintf(threadId);
    }

    private void printlnCallingPrintf(final int threadId) {
        collector.handle(new TraceStart(2, threadId));
        collector.handle(new StackFrame(20, ProfileFixtures.printfId));
        collector.handle(ProfileFixtures.printf);
        collector.handle(new StackFrame(20, ProfileFixtures.printlnId));
    }
View Full Code Here

Examples of com.insightfullogic.honest_profiler.core.parser.StackFrame

        collector.handle(new StackFrame(20, ProfileFixtures.printlnId));
    }

    private void printlnCallingAppend(int threadId) {
        collector.handle(new TraceStart(2, threadId));
        collector.handle(new StackFrame(20, ProfileFixtures.appendId));
        collector.handle(ProfileFixtures.append);
        collector.handle(new StackFrame(20, ProfileFixtures.printlnId));
        collector.handle(ProfileFixtures.println);
    }
View Full Code Here

Examples of com.insightfullogic.honest_profiler.core.parser.StackFrame

    private final LogCollector collector = new LogCollector(listener, false);

    @Test
    public void looksUpMethodNames() {
        collector.handle(new TraceStart(1, 1));
        collector.handle(new StackFrame(20, 5));
        collector.handle(ProfileFixtures.println);
        collector.endOfLog();

        Profile profile = listener.getProfile();
        assertEquals(1, profile.getTraceCount());
View Full Code Here

Examples of com.insightfullogic.honest_profiler.core.parser.StackFrame

    @Test
    public void calculateMajorityFlatProfiles() {
        TraceStart startTrace = new TraceStart(1, 1);
        collector.handle(startTrace);
        collector.handle(new StackFrame(20, 5));
        collector.handle(ProfileFixtures.println);
        collector.handle(startTrace);
        collector.handle(new StackFrame(20, 5));
        collector.handle(startTrace);
        collector.handle(new StackFrame(25, 6));
        collector.handle(ProfileFixtures.append);
        collector.endOfLog();

        Profile profile = listener.getProfile();
        assertEquals(3, profile.getTraceCount());
View Full Code Here

Examples of com.sun.jdi.StackFrame

        LocalVariable var = (LocalVariable) method.variables().get( 0 );//frame

        ClassType frameType = (ClassType) var.type();

        StackFrame frame = getUnderlyingStackFrame();
        Value value = frame.getValue( var );
        //getThread().getTopStackFrame().get

        //IValue value = jdivar.getValue();
        ObjectReferenceImpl o = (ObjectReferenceImpl) value;
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.