Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
When Axis C++ is built with trace entry/exit and run with trace off,
performance is impacted because the trace tool generates...
if (g_pAT) {
... Do trace stuff ...
}
g_pAT is null before trace is initialised, but is not null when trace
is initialised but off. So the the string manipulation and invoking
the trace class happens before we realise trace is actually off. This
works, except that it hits performance. The trace tool should generate
if (g_pAT && g_AT->traceOn())
or something similar.