summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp
diff options
context:
space:
mode:
authorpradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-06-11 22:03:11 +0000
committerpradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-06-11 22:03:11 +0000
commit88f9e0a73788ac5f2c90b919cde8a6ca8d2c3aad (patch)
tree82cab9465dc6ff6fa20c9be07cd5f724eb204982 /TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp
parentaf464ba15cd0e166256f610862651abd3774d20d (diff)
downloadATCD-88f9e0a73788ac5f2c90b919cde8a6ca8d2c3aad.tar.gz
ChangeLogTag: Sun Jun 8 19:53:04 2003 Pradeep Gore <pradeep@oomworks.com>RT_Notify_TAO132
Diffstat (limited to 'TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp')
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp b/TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp
index 3fcba7cb41f..a3d8133af06 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp
@@ -12,6 +12,7 @@ ACE_RCSID(lib, TAO_Application_Command, "$id$")
#include "Priority_Mapping.h"
TAO_NS_Application_Command::TAO_NS_Application_Command (void)
+ : dump_samples_ (0)
{
}
@@ -66,6 +67,13 @@ TAO_NS_Application_Command::init (ACE_Arg_Shifter& arg_shifter)
this->command_ = DUMP_STATE;
arg_shifter.consume_arg ();
+
+ if (arg_shifter.cur_arg_strncasecmp ("-Samples") == 0)
+ {
+ this->dump_samples_ = 1;
+
+ arg_shifter.consume_arg ();
+ }
}
else if (arg_shifter.cur_arg_strncasecmp ("-SignalPeer") == 0)
{
@@ -134,7 +142,7 @@ TAO_NS_Application_Command::handle_dump_stats (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
TAO_NS_Activation_Manager* act_mgr = 0;
LOOKUP_MANAGER->resolve (act_mgr);
- act_mgr->dump_stats ();
+ act_mgr->dump_stats (this->dump_samples_);
}
void