2 //=============================================================================
6 * @author Jeff Parsons <parsons@cs.wustl.edu>
8 //=============================================================================
11 #include "tao/Timeprobe.h"
12 #include "tao/ORB_Constants.h"
13 #include "PP_Test_i.h"
15 #if defined (ACE_ENABLE_TIMEPROBES)
17 static const char *PP_Test_i_Timeprobe_Description
[] =
19 "PP_Test_i::send_oneway - start",
20 "PP_Test_i::send_oneway - end",
22 "PP_Test_i::send_void - start",
23 "PP_Test_i::send_void - end",
25 "PP_Test_i::make_pluggable - start",
26 "PP_Test_i::make_pluggable - end",
28 "PP_Test_i::server_shutdown - start",
29 "PP_Test_i::server_shutdown - end"
34 // Timeprobe description table start key
35 PP_TEST_I_SEND_ONEWAY_START
= 10100,
36 PP_TEST_I_SEND_ONEWAY_END
,
38 PP_TEST_I_SEND_VOID_START
,
39 PP_TEST_I_SEND_VOID_END
,
41 PP_TEST_I_MAKE_PLUGGABLE_START
,
42 PP_TEST_I_MAKE_PLUGGABLE_END
,
44 PP_TEST_I_SERVER_SHUTDOWN_START
,
45 PP_TEST_I_SERVER_SHUTDOWN_END
49 ACE_TIMEPROBE_EVENT_DESCRIPTIONS (PP_Test_i_Timeprobe_Description
,
50 PP_TEST_I_SEND_ONEWAY_START
);
52 #endif /* ACE_ENABLE_TIMEPROBES */
54 // Factory Constructor
56 Pluggable_Test_Factory_i::Pluggable_Test_Factory_i (CORBA::ORB_ptr orb
)
57 : my_pluggable_test_ (orb
)
63 Pluggable_Test_Factory_i::~Pluggable_Test_Factory_i (void)
68 Pluggable_Test_Factory_i::make_pluggable_test (void)
70 ACE_FUNCTION_TIMEPROBE (PP_TEST_I_MAKE_PLUGGABLE_START
);
71 return my_pluggable_test_
._this ();
76 PP_Test_i::PP_Test_i (CORBA::ORB_ptr orb
)
77 : orb_ (CORBA::ORB::_duplicate (orb
))
83 PP_Test_i::~PP_Test_i (void)
90 PP_Test_i::send_oneway (void)
92 ACE_FUNCTION_TIMEPROBE (PP_TEST_I_SEND_ONEWAY_START
);
98 PP_Test_i::send_void (void)
100 ACE_FUNCTION_TIMEPROBE (PP_TEST_I_SEND_VOID_START
);
105 void PP_Test_i::shutdown (void)
107 ACE_DEBUG ((LM_DEBUG
,
109 "PP_Test_i is shutting down"));
111 ACE_FUNCTION_TIMEPROBE (PP_TEST_I_SERVER_SHUTDOWN_START
);
113 this->orb_
->shutdown ();