Package org.jboss.profiler.aop.logger

Examples of org.jboss.profiler.aop.logger.FileProfileLogger.loadClass()


    public void testLoadClassFormats() throws Exception {
        ByteArrayOutputStream arrayOutput = new ByteArrayOutputStream(1024);
        FileProfileLogger logger = new FileProfileLogger(arrayOutput);

        for (int i=0;i<100;i++) {
            logger.loadClass(1,1,this.getClass().getName(),10);
            for (int j=0;j<10;j++) logger.loadMethod(1,1,1,"method" +j,"()");
        }

        ByteArrayInputStream input = new ByteArrayInputStream(arrayOutput.toByteArray());
        SpyFileReader reader = new SpyFileReader(input,false);
View Full Code Here


        ByteArrayOutputStream arrayOutput = new ByteArrayOutputStream(1024);
        FileProfileLogger logger = new FileProfileLogger(arrayOutput);

        logger.headerSignature(100);
        for (int i=0;i<100;i++) {
            logger.loadClass(1,1,"test",10);
        }

        ByteArrayInputStream input = new ByteArrayInputStream(arrayOutput.toByteArray());
        SpyReader reader = new SpyReader(input, new InputStream[] {});
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.