another alternative is entityManager.unwrap(Session.class).getSessionFactory().getStatistics(). See example in a unit test here.