Package alt.jiapi

Examples of alt.jiapi.InstrumentorChain


        if (chainSpecs.length == 0) {
            throw new JiapiException("Empty chainSpec");
        }

        ChainBuilder cb = new ChainBuilder();
        InstrumentorChain chain = cb.createChain(chainSpecs[0]);
        InstrumentationDescriptor id = new InstrumentationDescriptor();
        addInclusionRules(id, getInclusionRules());
        addExclusionRules(id, getExclusionRules());

        for (int i = 1; i < chainSpecs.length; i++) {
View Full Code Here


        MCITest mci = new MCITest();
        mci.run(args);
    }

    public MCITest() throws JiapiException {
        InstrumentorChain chain = new InstrumentorChain();

        Instrumentor dispatcher = new MethodDispatcherInstrumentor();
        Instrumentor si = new GrepInstrumentor(new MethodCallStrategy());
        TailInstrumentor after = new TailInstrumentor();
        MethodCallInstrumentor mci = new MethodCallInstrumentor(this);

        chain.add(dispatcher);
        chain.add(si);     // Split (method call)
        chain.add(after)// BEFORE, AFTER or AROUND
        chain.add(mci);    // make a method call

        InstrumentationDescriptor id = new InstrumentationDescriptor();
        addInclusionRules(id, getInclusionRules());
        addExclusionRules(id, getExclusionRules());
        id.addChain(chain);
View Full Code Here

TOP

Related Classes of alt.jiapi.InstrumentorChain

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.