(callingStatement != null) ? callingStatement.getId() : 999,
rs.resultId, System.currentTimeMillis(),
(int) (queryEndTime - queryStartTime), null,
new Throwable(), profileQueryToLog));
eventSink.consumeEvent(new ProfilerEvent(ProfilerEvent.TYPE_FETCH,
"", catalog, this.connection.getId(), //$NON-NLS-1$
(callingStatement != null) ? callingStatement.getId() : 999,
rs.resultId, System.currentTimeMillis(),
(int) (fetchEndTime - fetchBeginTime), null,
new Throwable(), null));