Salome HOME
Traces RTV_debug_01
authorrahuel <rahuel@opencascade.com>
Mon, 11 Jul 2005 07:09:07 +0000 (07:09 +0000)
committerrahuel <rahuel@opencascade.com>
Mon, 11 Jul 2005 07:09:07 +0000 (07:09 +0000)
src/GraphExecutor/DataFlowExecutor_DynInvoke.cxx
src/GraphExecutor/DataFlowExecutor_InNodeThreads.cxx

index 713df9253ea566619de7932a8b7f19d92ee271d2..2ee4f05ffdf988af3175a1e30b5478160eb9dbfa 100644 (file)
@@ -35,7 +35,7 @@ using namespace std;
 using namespace CORBA ;
 
 
-
+#define DynInvokeTrace 0
 void GraphExecutor::InNode::DynInvoke(Engines::Component_ptr objComponent ,
                                      const char *method , 
                                      ServicesAnyData * inParams , int nInParams ,
@@ -58,7 +58,7 @@ void GraphExecutor::InNode::DynInvoke(Engines::Component_ptr objComponent ,
     ArgName           = inParams[i].Name.c_str() ;
     Type              = data.type()->kind() ;
     arguments->add_value( ArgName , data , CORBA::ARG_IN ) ;
-#if 0
+#if DynInvokeTrace
     switch ( Type ) {
     case CORBA::tk_string : {
       char * t ;
@@ -127,7 +127,7 @@ void GraphExecutor::InNode::DynInvoke(Engines::Component_ptr objComponent ,
     ArgName           = outParams[i].Name.c_str() ;
     Type              = data.type()->kind() ;
     arguments->add_value( ArgName , data , CORBA::ARG_OUT ) ;
-#if 0
+#if DynInvokeTrace
     switch ( Type ) {
     case CORBA::tk_string : {
       char * t ;
index b69a61adc1e520af03193fab156af9bd6cf2337f..2f7f1fb74edc6079256bf83862aaff1af23ba3e1 100644 (file)
@@ -70,7 +70,7 @@ static void UpperCase(std::string& rstr)
 #endif
 }
 
-#define SendEventTrace 0
+#define SendEventTrace 1
 int GraphExecutor::InNode::SendEvent( const GraphExecutor::NodeEvent anEvent ) {  
 
   _CurrentEvent = (GraphExecutor::NodeEvent ) anEvent ;
@@ -142,7 +142,7 @@ int GraphExecutor::InNode::SendEvent( const GraphExecutor::NodeEvent anEvent ) {
 
 }
 
-#define ActionsTrace 0
+#define ActionsTrace 1
 // ReadyAction - RunningAction - DoneAction - SuspendedAction :
 // for StateWait( ReadyW - RunningW - DoneW - SuspendedW )
 void GraphExecutor::InNode::ReadyAction() {
@@ -877,7 +877,7 @@ int GraphExecutor::InNode::VoidAction() {
   return 1;
 }
 
-#define SomeDataReadyActionTrace 0
+#define SomeDataReadyActionTrace 1
 int GraphExecutor::InNode::DataWaiting_SomeDataReadyAction() {
 #if SomeDataReadyActionTrace
   cdebug_in << pthread_self() << "/" << ThreadNo() << " " << Name()
@@ -1230,7 +1230,7 @@ int GraphExecutor::InNode::DataWaiting_SomeDataReadyAction() {
 
 }
 
-#define TraceDataReadyAction 0
+#define TraceDataReadyAction 1
 int GraphExecutor::InNode::DataUndef_NotAllDataReadyAction() {
 //JR 15.04.2005 Debug PAL8624 RetroConception :
 //  CreateNewThreadIf( false ) ;
@@ -1354,7 +1354,7 @@ int GraphExecutor::InNode::DataReady_StopAction() {
 
 #include <CORBA.h>
 
-#define TraceDataReady_ExecuteAction 0
+#define TraceDataReady_ExecuteAction 1
 int GraphExecutor::InNode::DataReady_ExecuteAction() {
 
 #if TraceDataReady_ExecuteAction
@@ -2222,7 +2222,7 @@ int GraphExecutor::InNode::Errored_ExecutingAction() {
   return 1 ;
 }
 
-#define SetWaitingStatesTrace 0
+#define SetWaitingStatesTrace 1
 // Set SUPERV::WaitingState to all InPorts 
 void GraphExecutor::InNode::SetWaitingStates(GraphExecutor::InNode * EndNode ) {
   int i ;
@@ -2342,7 +2342,7 @@ void GraphExecutor::InNode::SetWaitingStates(GraphExecutor::InNode * EndNode ) {
   }
 }
 
-#define SuccessActionTrace 0
+#define SuccessActionTrace 1
 //JR Step B
 int GraphExecutor::InNode::Successed_SuccessAction() {
 #if SuccessActionTrace
@@ -2845,7 +2845,7 @@ int GraphExecutor::InNode::Successed_SuccessAction() {
   return 1 ;
 }
 
-#define SendSomeDataReadyTrace 0
+#define SendSomeDataReadyTrace 1
 bool GraphExecutor::InNode::SendSomeDataReady( char * FromNodeName ) {
   bool RetVal = false ;
   if ( IsDataFlowNode() ) {
@@ -3075,7 +3075,7 @@ int GraphExecutor::InNode::SuspendedErrored_ReStartAndSuspendAction() {
   return 1 ;
 }
 
-#define InParametersSetTrace 0
+#define InParametersSetTrace 1
 void GraphExecutor::InNode::InParametersSet( bool & Err ,
                                              int  nInParams ,
                                              ServicesAnyData * InParametersList ) {
@@ -3521,7 +3521,7 @@ void GraphExecutor::InNode::InOutParametersSet( int nOutParams ,
   }
 }
 
-#define OutParametersSetTrace 0
+#define OutParametersSetTrace 1
 bool GraphExecutor::InNode::OutParametersSet( bool Err ,
                                               SUPERV::GraphState PortState ,
                                               int nOutParams ,