Package com.tagtraum.perf.gcviewer.model

Examples of com.tagtraum.perf.gcviewer.model.GCEvent


        panel.setModel(model);
    }
   
    @Test
    public void testOneElementModel() {
        GCEvent event = new GCEvent();
        event.setTimestamp(0.5);
        event.setType(Type.G1_YOUNG_INITIAL_MARK);
        event.setPause(0.245);
        event.setPreUsed(900);
        event.setPostUsed(400);
        event.setTotal(1024);
       
        GCModel model = new GCModel();
        model.add(event);
       
        ModelPanel panel = new ModelPanel();
View Full Code Here


    @Test
    public void testTwoElementsModel() {
        GCModel model = new GCModel();

        GCEvent event = new GCEvent();
        event.setTimestamp(0.5);
        event.setType(Type.G1_YOUNG_INITIAL_MARK);
        event.setPause(0.245);
        event.setPreUsed(900);
        event.setPostUsed(400);
        event.setTotal(1024);
       
        model.add(event);

        event = new GCEvent();
        event.setTimestamp(0.75);
        event.setType(Type.G1_YOUNG_INITIAL_MARK);
        event.setPause(0.245);
        event.setPreUsed(800);
        event.setPostUsed(300);
        event.setTotal(1024);
       
        model.add(event);
       
        ModelPanel panel = new ModelPanel();
        panel.setModel(model);
View Full Code Here

//      0.715: [CMS-concurrent-abortable-preclean-start]
//      0.769: [GC 0.769: [ParNew: 118006K->118006K(118016K), 0.0000176 secs]0.769: [CMS0.769: [CMS-concurrent-abortable-preclean: 0.001/0.055 secs] [Times: user=0.02 sys=0.00, real=0.06 secs]
//       (concurrent mode failure): 91890K->20323K(131072K), 0.0186232 secs] 209896K->20323K(249088K), [CMS Perm : 2561K->2560K(21248K)], 0.0187293 secs] [Times: user=0.01 sys=0.00, real=0.02 secs]
//      0.877: [GC 0.877: [ParNew: 104960K->13040K(118016K), 0.0256080 secs] 125283K->78706K(249088K), 0.0256748 secs] [Times: user=0.08 sys=0.00, real=0.03 secs]

        GCEvent gcEvent = new GCEvent(0.677, 175499, 104936, 249088, 0.0300629, AbstractGCEvent.Type.GC);
        GCEvent parNew = new GCEvent(0.677, 118010, 13046, 118016, 0.0299506, AbstractGCEvent.Type.PAR_NEW);
        gcEvent.add(parNew);

        GCEvent gcEvent2 = new GCEvent(0.708, 109176, 109176, 249088, 0.0004006, AbstractGCEvent.Type.GC);
        GCEvent initialMark = new GCEvent(0.708, 91890, 91890, 131072, 0, AbstractGCEvent.Type.CMS_INITIAL_MARK);
        gcEvent2.add(initialMark);
       
        ConcurrentGCEvent concGCEvent = new ConcurrentGCEvent();
        concGCEvent.setTimestamp(0.708);
        concGCEvent.setType(AbstractGCEvent.Type.CMS_CONCURRENT_MARK_START);
View Full Code Here

        DataReader reader = new DataReaderJRockit1_6_0(in);
        GCModel model = reader.read();
       
        assertEquals("count", 42, model.size());
       
        GCEvent event = (GCEvent) model.get(0);
        assertEquals("timestamp", 24.930, event.getTimestamp(), 0.000001);
        assertEquals("name", Type.JROCKIT_16_OLD_GC.getName(), event.getExtendedType().getName());
        assertEquals("before", 464309, event.getPreUsed());
        assertEquals("after", 282831, event.getPostUsed());
        assertEquals("total", 524288, event.getTotal());
        assertEquals("pause", 0.020957, event.getPause(), 0.0000001);

        assertEquals("number of warnings", 5, handler.getCount());
    }
View Full Code Here

        GCModel model = reader.read();
       
        assertEquals("count", 52, model.size());
       
        GCEvent event = (GCEvent) model.get(0);
        assertEquals("timestamp", 26.242, event.getTimestamp(), 0.000001);
        assertEquals("name", Type.JROCKIT_16_OLD_GC.getName(), event.getExtendedType().getName());
        assertEquals("before", 270909, event.getPreUsed());
        assertEquals("after", 210916, event.getPostUsed());
        assertEquals("total", 524288, event.getTotal());
        assertEquals("pause", 0.032087, event.getPause(), 0.0000001);

        assertEquals("number of warnings", 5, handler.getCount());
    }
View Full Code Here

        DataReader reader = new DataReaderJRockit1_6_0(in);
        GCModel model = reader.read();
       
        assertEquals("count", 3, model.size());
       
        GCEvent event = (GCEvent) model.get(0);
        assertEquals("timestamp", 124.644, event.getTimestamp(), 0.000001);
        assertEquals("name", Type.JROCKIT_16_YOUNG_GC.getName(), event.getExtendedType().getName());
        assertEquals("before", 453996, event.getPreUsed());
        assertEquals("after", 188846, event.getPostUsed());
        assertEquals("total", 786432, event.getTotal());
        assertEquals("pause", 0.055369, event.getPause(), 0.0000001);
       
        // generational algorithms have information about the generation sizing in the introduction of the gc log
        // -> check that it is present in the event
        event = event.getYoung();
        assertEquals("total", 393216, event.getTotal());

        event = (GCEvent) model.get(2);
        assertEquals("timestamp", 148.254, event.getTimestamp(), 0.000001);
        assertEquals("name", Type.JROCKIT_16_OLD_GC.getName(), event.getExtendedType().getName());
        assertEquals("before", 691255, event.getPreUsed());
        assertEquals("after", 279876, event.getPostUsed());
        assertEquals("total", 786432, event.getTotal());
        assertEquals("pause", 0.086713, event.getPause(), 0.0000001);

        // generational algorithms have information about the generation sizing in the introduction of the gc log
        // -> check that it is present in the event
        GCEvent eventTenured = event.getTenured();
        assertEquals("total", 786432 - 393216, eventTenured.getTotal());

        GCEvent eventYoung = event.getYoung();
        assertEquals("total", 393216, eventYoung.getTotal());

        assertEquals("number of warnings", 0, handler.getCount());
    }
View Full Code Here

        DataReader reader = new DataReaderJRockit1_6_0(in);
        GCModel model = reader.read();
       
        assertEquals("count", 1, model.size());
       
        GCEvent event = (GCEvent) model.get(0);
        assertEquals("timestamp", 9.743, event.getTimestamp(), 0.000001);
        assertEquals("name", Type.JROCKIT_16_YOUNG_GC.getName(), event.getExtendedType().getName());
        assertEquals("before", 294974, event.getPreUsed());
        assertEquals("after", 122557, event.getPostUsed());
        assertEquals("total", 524288, event.getTotal());
        assertEquals("pause", 0.049692, event.getPause(), 0.0000001);
    }
View Full Code Here

                        .getBytes());
       
        DataReader reader = new DataReaderSun1_6_0G1(in, GcLogType.SUN1_8);
        GCModel model = reader.read();

        GCEvent event = (GCEvent) model.get(0);
        assertThat("footprint", event.getTotal(), is(12*1024*1024));
        assertThat("yound before", event.getYoung().getPreUsed(), is(4096 + 80*1024));
        assertThat("tenured", event.getTenured().getTotal(), is(12*1024*1024 - 612*1024));
        assertThat("metaspace", event.getPerm().getTotal(), is(1140736));
       
        assertThat("perm", model.getPermAllocatedSizes().getN(), is(1));
       
        assertThat("warning count", handler.getCount(), is(0));
    }
View Full Code Here

        DataReader reader = new DataReaderJRockit1_5_0(in);
        GCModel model = reader.read();
       
        assertEquals("count", 10, model.size());
       
        GCEvent event = (GCEvent) model.get(0);
        assertEquals("timestamp", 6.290, event.getTimestamp(), 0.000001);
        assertEquals("name", Type.JROCKIT_GC.getName(), event.getExtendedType().getName());
        assertEquals("before", 3128161, event.getPreUsed());
        assertEquals("after", 296406, event.getPostUsed());
        assertEquals("total", 3145728, event.getTotal());
        assertEquals("pause", 0.059084, event.getPause(), 0.0000001);

        assertEquals("number of warnings", 6, handler.getCount());
    }
View Full Code Here

        DataReader reader = new DataReaderJRockit1_5_0(in);
        GCModel model = reader.read();
       
        assertEquals("count", 8, model.size());
       
        GCEvent event = (GCEvent) model.get(0);
        assertEquals("timestamp", 4.817, event.getTimestamp(), 0.000001);
        assertEquals("name", Type.JROCKIT_GC.getName(), event.getExtendedType().getName());
        assertEquals("before", 1641728, event.getPreUsed());
        assertEquals("after", 148365, event.getPostUsed());
        assertEquals("total", 3145728, event.getTotal());
        assertEquals("pause", 0.039959, event.getPause(), 0.0000001);
    }
View Full Code Here

TOP

Related Classes of com.tagtraum.perf.gcviewer.model.GCEvent

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.