[
https://issues.apache.org/jira/browse/QPID-3236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13030569#comment-13030569
]
Chuck Rolke commented on QPID-3236:
-----------------------------------
My solution to the Windows impl is identical to Steve's with the addition of
adding a suffix indicating the processor number on which the performance query
was executed. As long as all the counts are done on the same CPU then the TOD
results correlate perfectly. Some BIOSs have a differing CPU tick count between
CPUs that may make uS comparisons a little off. Examples from web show actually
changing the execution of the thread back to the original CPU to get a valid,
comparable tick count but to me this is excessive.
Ship it!
> Add high-resolution timestamps to log files for debug situations
> ----------------------------------------------------------------
>
> Key: QPID-3236
> URL: https://issues.apache.org/jira/browse/QPID-3236
> Project: Qpid
> Issue Type: Task
> Reporter: Kim van der Riet
> Assignee: Steve Huston
> Fix For: 0.11
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]