@@ -128,8 +128,8 @@ class ProfilerManager final : public Firebird::PerformanceStopWatch
128
128
Request* request;
129
129
ProfilerManager* profilerManager;
130
130
const AccessPath* recordSource;
131
- SINT64 lastTicks;
132
- SINT64 lastAccumulatedOverhead;
131
+ SINT64 lastTicks = 0 ;
132
+ SINT64 lastAccumulatedOverhead = 0 ;
133
133
Event event;
134
134
};
135
135
@@ -197,7 +197,7 @@ class ProfilerManager final : public Firebird::PerformanceStopWatch
197
197
{
198
198
if (const auto profileRequestId = getRequest (request, Firebird::IProfilerSession::FLAG_BEFORE_EVENTS))
199
199
{
200
- const auto profileStatement = getStatement (request);
200
+ const auto * profileStatement = getStatement (request);
201
201
currentSession->pluginSession ->beforePsqlLineColumn (profileStatement->id , profileRequestId, line, column);
202
202
}
203
203
}
@@ -206,7 +206,7 @@ class ProfilerManager final : public Firebird::PerformanceStopWatch
206
206
{
207
207
if (const auto profileRequestId = getRequest (request, Firebird::IProfilerSession::FLAG_AFTER_EVENTS))
208
208
{
209
- const auto profileStatement = getStatement (request);
209
+ const auto * profileStatement = getStatement (request);
210
210
currentSession->pluginSession ->afterPsqlLineColumn (profileStatement->id , profileRequestId,
211
211
line, column, &stats);
212
212
}
@@ -216,7 +216,7 @@ class ProfilerManager final : public Firebird::PerformanceStopWatch
216
216
{
217
217
if (const auto profileRequestId = getRequest (request, Firebird::IProfilerSession::FLAG_BEFORE_EVENTS))
218
218
{
219
- const auto profileStatement = getStatement (request);
219
+ const auto * profileStatement = getStatement (request);
220
220
221
221
if (const auto sequencePtr = profileStatement->recSourceSequence .get (recordSource->getRecSourceId ()))
222
222
{
@@ -230,7 +230,7 @@ class ProfilerManager final : public Firebird::PerformanceStopWatch
230
230
{
231
231
if (const auto profileRequestId = getRequest (request, Firebird::IProfilerSession::FLAG_AFTER_EVENTS))
232
232
{
233
- const auto profileStatement = getStatement (request);
233
+ const auto * profileStatement = getStatement (request);
234
234
235
235
if (const auto sequencePtr = profileStatement->recSourceSequence .get (recordSource->getRecSourceId ()))
236
236
{
@@ -244,7 +244,7 @@ class ProfilerManager final : public Firebird::PerformanceStopWatch
244
244
{
245
245
if (const auto profileRequestId = getRequest (request, Firebird::IProfilerSession::FLAG_BEFORE_EVENTS))
246
246
{
247
- const auto profileStatement = getStatement (request);
247
+ const auto * profileStatement = getStatement (request);
248
248
249
249
if (const auto sequencePtr = profileStatement->recSourceSequence .get (recordSource->getRecSourceId ()))
250
250
{
@@ -258,7 +258,7 @@ class ProfilerManager final : public Firebird::PerformanceStopWatch
258
258
{
259
259
if (const auto profileRequestId = getRequest (request, Firebird::IProfilerSession::FLAG_AFTER_EVENTS))
260
260
{
261
- const auto profileStatement = getStatement (request);
261
+ const auto * profileStatement = getStatement (request);
262
262
263
263
if (const auto sequencePtr = profileStatement->recSourceSequence .get (recordSource->getRecSourceId ()))
264
264
{
0 commit comments