Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-181

Entry/exit trace performance bad with trace off

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3 Final
    • Basic Architecture
    • 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.

      Attachments

        Activity

          People

            whitlock Mark Whitlock
            whitlock Mark Whitlock
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: