HHH-3659 statistics: Execution time of a query

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19847 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Strong Liu 2010-06-29 06:51:14 +00:00
parent e7a5de444c
commit c251637ed6
1 changed files with 1 additions and 0 deletions

View File

@ -293,6 +293,7 @@ public class StatisticsImpl implements Statistics, StatisticsImplementor {
if (hql!=null) { if (hql!=null) {
QueryStatisticsImpl qs = (QueryStatisticsImpl) getQueryStatistics(hql); QueryStatisticsImpl qs = (QueryStatisticsImpl) getQueryStatistics(hql);
qs.executed(rows, time); qs.executed(rows, time);
log.info( "HQL: {}, time: {}ms, rows: {}", new Object[]{hql, new Long( time ), new Long( rows )} );
} }
} }