summaryrefslogtreecommitdiff
path: root/TAO/CIAO/tools/Segment_Timer/Segment_Timer.cpp
blob: ffdfdbe9b462049f59bc3e0ca37d230b5f39ffa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// $Id$

#include "Segment_Timer.h"

Segment_Timer segment_timers[MAX_TIMERS];

const char* Static_Config_Timer_Descriptions[] =
  {
    "Create Home",
    "Create Container",
    "Create Component",
    "Register Component",
    "Create Connection",
    "Total Assembly time",
    "Create Comp Server"
  };

bool Segment_Timer::dump_flag_ = false;

void Segment_Timer::dump (int index)
{
  ACE_DEBUG ((LM_DEBUG, "%s\n======================\n",
              Static_Config_Timer_Descriptions[index]));

  for (int i=0; i<total_recorded_; ++i)
    {
      //ACE_Time_Value tv;
      //this->hrtime_to_tv (tv, recorded_times_[i]);
      //ACE_DEBUG ((LM_DEBUG, "%f msec \n", recorded_times_[i]/1000000));
    }
}