import starj.Pack; import starj.RootPack; import starj.Scene; /** * A driver class for the per-thread dynamic call graph printer. */ public class Main { public static void main(String[] args) { // Get a reference to the printer pack RootPack root = Scene.v().getRootPack(); Pack prn_pack = (Pack) root.getByName("toolkits.printers"); // Add our own printer to it prn_pack.add(new ThreadCGPrinter("threadprn", "Per-thread CG printer")); // Delegate execution to *J starj.Main.main(args); } }