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);