bug fixed for weburi-profile.

This commit is contained in:
wenshao
2017-09-11 21:22:14 +08:00
parent 2e275a4a79
commit 7278cd3e94
2 changed files with 8 additions and 2 deletions
@@ -428,7 +428,13 @@ public class StatFilter extends FilterEventAdapter implements StatFilterMBean {
StatFilterContext.getInstance().executeBefore(sql, inTransaction);
Profiler.enter(sql, Profiler.PROFILE_TYPE_SQL);
String mergedSql;
if (sqlStat != null) {
mergedSql = sqlStat.getSql();
} else {
mergedSql = sql;
}
Profiler.enter(mergedSql, Profiler.PROFILE_TYPE_SQL);
}
private final void internalAfterStatementExecute(StatementProxy statement, boolean firstResult,
@@ -36,7 +36,7 @@ public class ProfileEntryStat {
ProfileEntryStatValue val = new ProfileEntryStatValue();
val.setExecuteCount(get(this, executeCountUpdater, reset));
val.setExecuteTimeNanos(get(this, executeCountUpdater, reset));
val.setExecuteTimeNanos(get(this, executeTimeNanosUpdater, reset));
return val;
}