Package com.jitlogic.zorka.common.stats

Examples of com.jitlogic.zorka.common.stats.MethodCallStatistics


        agentInstance.getClassTransformer().add(sdef);

        Object obj = instantiate(agentInstance.getClassTransformer(), BytecodeInstrumentationFixture.TCLASS1);
        invoke(obj, "trivialMethod");

        MethodCallStatistics stats = (MethodCallStatistics) getAttr(testMbs, "test:name=TestClass1", "stats");
        assertNotNull(stats);
        assertEquals(1, stats.getMethodCallStatistic("trivialMethod").getCalls());
    }
View Full Code Here


        agentInstance.getClassTransformer().add(sdef2);

        invoke(obj, "trivialMethod");

        MethodCallStatistics stats = (MethodCallStatistics) getAttr(testMbs, "test:name=TestClass1", "stats");
        assertNotNull(stats);
        assertEquals("old configuration should not be used:", 0, stats.getMethodCallStatistic("xxx").getCalls());
        assertEquals("new configuration hasn't been used:", 1, stats.getMethodCallStatistic("yyy").getCalls());
    }
View Full Code Here

        agentInstance.getClassTransformer().add(sdef2);

        invoke(obj, "trivialMethod");

        MethodCallStatistics stats = (MethodCallStatistics) getAttr(testMbs, "test:name=TestClass1", "stats");
        assertNotNull(stats);
        assertEquals("old configuration should be used:", 1, stats.getMethodCallStatistic("xxx").getCalls());
        assertEquals("new configuration should be skipped due to incompatibility:",
                0, stats.getMethodCallStatistic("yyy").getCalls());
    }
View Full Code Here

    private boolean debug = false;

    private SymbolRegistry sreg;

    public TestSpyTransformer(SymbolRegistry symbolRegistry, Tracer tracer, SpyRetransformer spyRetransformer) {
        super(symbolRegistry, tracer, false, new MethodCallStatistics(), spyRetransformer);
        sreg = symbolRegistry;
    }
View Full Code Here

TOP

Related Classes of com.jitlogic.zorka.common.stats.MethodCallStatistics

Copyright © 2018 www.massapicom. 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.