summaryrefslogtreecommitdiff
path: root/ace/Timeprobe_T.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-18 23:49:04 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-18 23:49:04 +0000
commitdd156a9d40d18243eec596ec82c20a8d3fde164f (patch)
tree0491860d627d3d77303728e9fe7812f6ce60fbda /ace/Timeprobe_T.cpp
parent17f1298610961275138d5510615affc006c6121b (diff)
downloadATCD-dd156a9d40d18243eec596ec82c20a8d3fde164f.tar.gz
ChangeLogTag:Thu Jun 18 18:46:00 1998 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'ace/Timeprobe_T.cpp')
-rw-r--r--ace/Timeprobe_T.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/ace/Timeprobe_T.cpp b/ace/Timeprobe_T.cpp
index 0aa6e92fb02..58357174598 100644
--- a/ace/Timeprobe_T.cpp
+++ b/ace/Timeprobe_T.cpp
@@ -134,6 +134,39 @@ ACE_Timeprobe<ACE_LOCK>::print_times (void)
}
}
+template <class ACE_LOCK> void
+ACE_Timeprobe<ACE_LOCK>::print_absolute_times (void)
+{
+ ACE_GUARD (ACE_LOCK, ace_mon, this->lock_);
+
+ // Sort the event descriptions
+ this->sort_event_descriptions_i ();
+
+ ACE_DEBUG ((LM_DEBUG,
+ "\nACE_Timeprobe; %d timestamps were recorded:\n",
+ this->current_size_));
+
+ if (this->current_size_ == 0)
+ return;
+
+ ACE_DEBUG ((LM_DEBUG,
+ "\n%-50.50s %8.8s %13.13s\n\n",
+ "Event",
+ "thread",
+ "stamp"));
+
+ for (u_long i = 0; i < this->current_size_; i++)
+ {
+ char buf[64];
+ ACE_OS::sprintf (buf, "%llu", this->timeprobes_[i].time_);
+ ACE_DEBUG ((LM_DEBUG,
+ "%-50.50s %8.8x %13.13s\n",
+ this->find_description_i (i),
+ this->timeprobes_[i].thread_,
+ buf));
+ }
+}
+
template <class ACE_LOCK> const char *
ACE_Timeprobe<ACE_LOCK>::find_description_i (u_long i)
{