Examples of ProfilerData


Examples of org.netbeans.server.snapshots.ProfilerData

       
        EntityManager em = perUtils.createEntityManager();
        em.getTransaction().begin();
        Logfile lf = LogFileTask.getLogInfo("NB2040811605", 0, em);
       
        ProfilerData pd = lf.getProfilerStatistics(em);
        assertNotNull(pd);
        assertEquals("get last value", 534, pd.getSamples());
        assertEquals("get last value", 10.0, pd.getAvg());
        assertEquals("get last value", 20.2, pd.getMaximum());
        assertEquals("get last value", 0.7, pd.getMinimum());
        assertEquals("get last value", 1.3, pd.getStddev());
        em.getTransaction().commit();
        em.close();
    }
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.