Package com.tagtraum.perf.gcviewer.model

Examples of com.tagtraum.perf.gcviewer.model.GCModel$Format


        // parse one detailed event with a mixed line (concurrent event starts in the middle of an stw collection)
        // 8.775: [GC pause (young)8.775: [GC concurrent-mark-end, 0.0101638 sec]
        // , 0.00831998 secs]
        InputStream in = getInputStream("SampleSun1_6_0G1_Detailed-mixedLine1.txt");
        DataReader reader = new DataReaderSun1_6_0G1(in, GcLogType.SUN1_6G1);
        GCModel model = reader.read();
       
        assertEquals("nummber of events", 2, model.size());
        assertEquals("number of pauses", 1, model.getPause().getN());
        assertEquals("gc pause sum", 0.00831998, model.getPause().getSum(), 0.000000001);
        assertEquals("gc memory", 169*1024 - 162*1024, model.getFreedMemoryByGC().getMax());
    }
View Full Code Here


        // parse one detailed event with a mixed line (part of concurrent event starts in the middle of an stw collection)
        // 0.230: [GC pause (young)0.235:  (initial-mark), 0.00430038 secs]
        // [GC concurrent-mark-start]
        InputStream in = getInputStream("SampleSun1_6_0G1_Detailed-mixedLine2.txt");
        DataReader reader = new DataReaderSun1_6_0G1(in, GcLogType.SUN1_6G1);
        GCModel model = reader.read();
       
        assertEquals("nummber of events", 2, model.size());
        assertEquals("concurrent event type", Type.G1_CONCURRENT_MARK_START.toString(), model.getConcurrentGCEvents().next().getTypeAsString());
        assertEquals("number of pauses", 1, model.getPause().getN());
        assertEquals("gc pause sum", 0.00430038, model.getPause().getSum(), 0.000000001);
    }
View Full Code Here

        // parse one detailed event with a mixed line (part of concurrent event starts in the middle of an stw collection)
        // 0.331: [GC pause (young)0.333 (initial-mark), 0.00178520 secs]
        // :    [GC concurrent-mark-start]       
        InputStream in = getInputStream("SampleSun1_6_0G1_Detailed-mixedLine3.txt");
        DataReader reader = new DataReaderSun1_6_0G1(in, GcLogType.SUN1_6G1);
        GCModel model = reader.read();
       
        assertEquals("nummber of events", 2, model.size());
        assertEquals("concurrent event type", Type.G1_CONCURRENT_MARK_START.toString(), model.getConcurrentGCEvents().next().getTypeAsString());
        assertEquals("number of pauses", 1, model.getPause().getN());
        assertEquals("gc pause sum", 0.00178520, model.getPause().getSum(), 0.000000001);
    }
View Full Code Here

    public void testFullGcMixed() throws Exception {
        InputStream in = new ByteArrayInputStream(("107.222: [Full GC107.248: [GC concurrent-mark-end, 0.0437048 sec]" +
            "\n 254M->59M(199M), 0.0687356 secs]" +
            "\n [Times: user=0.06 sys=0.02, real=0.07 secs]").getBytes());
        DataReader reader = new DataReaderSun1_6_0G1(in, GcLogType.SUN1_6G1);
        GCModel model = reader.read();

        assertEquals("number of events", 2, model.size());
        assertEquals("number of full gc pauses", 1, model.getFullGCPause().getN());
        assertEquals("full gc pause sum", 0.0687356, model.getFullGCPause().getSum(), 0.0000001);
    }
View Full Code Here

    @Test
    public void testYoungToSpaceOverflow() throws Exception {
        // special type of GC: 0.838: "[GC pause (young) (to-space overflow)..."
        InputStream in = getInputStream("SampleSun1_6_0G1_young_toSpaceOverflow.txt");
        DataReader reader = new DataReaderSun1_6_0G1(in, GcLogType.SUN1_6G1);
        GCModel model = reader.read();
       
        assertEquals("nummber of events", 1, model.size());
        assertEquals("number of pauses", 1, model.getPause().getN());
        assertEquals("gc pause sum", 0.04674512, model.getPause().getSum(), 0.000000001);
        assertEquals("gc memory", 228*1024 - 102*1024, model.getFreedMemoryByGC().getMax());
        assertEquals("max memory", 256*1024, model.getFootprint());
    }
View Full Code Here

    @Test
    public void testPartialToSpaceOverflow() throws Exception {
        // special type of GC: 0.838: "[GC pause (partial) (to-space overflow)..."
        InputStream in = getInputStream("SampleSun1_6_0G1_partial_toSpaceOverflow.txt");
        DataReader reader = new DataReaderSun1_6_0G1(in, GcLogType.SUN1_6G1);
        GCModel model = reader.read();
       
        assertEquals("nummber of events", 1, model.size());
        assertEquals("number of pauses", 1, model.getPause().getN());
        assertEquals("gc pause sum", 0.00271976, model.getPause().getSum(), 0.000000001);
        assertEquals("gc memory", 255*1024 - 181*1024, model.getFreedMemoryByGC().getMax());
        assertEquals("max memory", 256*1024, model.getFootprint());
    }
View Full Code Here

    @Test
    public void testYoungToSpaceOverflowInitialMark() throws Exception {
        // special type of GC: 0.838: "[GC pause (young) (to-space overflow) (initial-mark)..."
        InputStream in = getInputStream("SampleSun1_6_0G1_young_initialMarkToSpaceOverflow.txt");
        DataReader reader = new DataReaderSun1_6_0G1(in, GcLogType.SUN1_6G1);
        GCModel model = reader.read();
       
        assertEquals("nummber of events", 2, model.size());
        assertEquals("concurrent event type", Type.G1_CONCURRENT_MARK_START.toString(), model.getConcurrentGCEvents().next().getTypeAsString());
        assertEquals("number of pauses", 1, model.getPause().getN());
        assertEquals("gc pause sum", 0.00316185, model.getPause().getSum(), 0.000000001);
        assertEquals("gc memory", 254*1024 - 170*1024, model.getFreedMemoryByGC().getMax());
        assertEquals("max memory", 256*1024, model.getFootprint());
    }
View Full Code Here

    @Test
    public void testPartialToSpaceOverflowInitialMark() throws Exception {
        // special type of GC: 0.838: "[GC pause (partial) (to-space overflow) (initial-mark)..."
        InputStream in = getInputStream("SampleSun1_6_0G1_partial_initialMarkToSpaceOverflow.txt");
        DataReader reader = new DataReaderSun1_6_0G1(in, GcLogType.SUN1_6G1);
        GCModel model = reader.read();
       
        assertEquals("nummber of events", 2, model.size());
        assertEquals("concurrent event type", Type.G1_CONCURRENT_MARK_START.toString(), model.getConcurrentGCEvents().next().getTypeAsString());
        assertEquals("number of pauses", 1, model.getPause().getN());
        assertEquals("gc pause sum", 0.00588343, model.getPause().getSum(), 0.000000001);
        assertEquals("gc memory", 255*1024 - 197*1024, model.getFreedMemoryByGC().getMax());
        assertEquals("max memory", 256*1024, model.getFootprint());
    }
View Full Code Here

    @Test
    public void testGcPattern() throws Exception {
        InputStream in = new ByteArrayInputStream(("0.452: [GC concurrent-count-start]").getBytes());
       
        DataReader reader = new DataReaderSun1_6_0G1(in, GcLogType.SUN1_6G1);
        GCModel model = reader.read();

        assertEquals("count", 1, model.size());
        assertEquals("full gc pause", 0, model.getFullGCPause().getN());
        assertEquals("gc pause", 0, model.getGCPause().getN());
    }
View Full Code Here

    @Test
    public void testGcPausePattern() throws Exception {
        InputStream in = new ByteArrayInputStream(("0.360: [GC concurrent-count-end, 0.0242674]").getBytes());
       
        DataReader reader = new DataReaderSun1_6_0G1(in, GcLogType.SUN1_6G1);
        GCModel model = reader.read();

        assertEquals("count", 1, model.size());
        assertEquals("full gc pause", 0, model.getFullGCPause().getN());
    }
View Full Code Here

TOP

Related Classes of com.tagtraum.perf.gcviewer.model.GCModel$Format

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.