Qpid
  1. Qpid
  2. QPID-3236

Add high-resolution timestamps to log files for debug situations

    Details

    • Type: Task Task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11
    • Component/s: None
    • Labels:
      None

      Description

      In some performance-related debug situations, it would be useful to see the time between logged events (in debug or trace mode). However, the standard log timestamp has a 1 second resolution, and it does not help matters when hundreds of events of interest all occur within the same second.

      I propose to add a #define in qpid/sys/posix/Time.cpp which would change the timestamp printed by the outputFormattedNow() method to an unformatted second/nanosecond output. This define would be uncommented and compiled in when needed, but remain commented out for normal use. A comment would explain its use.

      I am sure an equivalent change could also be made to the windows version in qpid/sys/windows/Time.cpp.

        Activity

          People

          • Assignee:
            Steve Huston
            Reporter:
            Kim van der Riet
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development