GraphExecutor::FiniteStateMachine ** _Automaton ,
GraphExecutor::FiniteStateMachine * theAutomaton ,
CORBA::ORB_ptr * _Orb ,
- CORBA::ORB_ptr ORB ) {
+ CORBA::ORB_ptr ORB,
+ bool &_Loading ) {
_RewindStack = 0 ;
_ControlState = SUPERV::VoidState ;
_currentState = GraphExecutor::UnKnownState ;
}
*_Automaton = theAutomaton ;
*_Orb = CORBA::ORB::_nil();
+ _Loading = false;
}
GraphExecutor::FiniteStateMachine * theAutomaton = new GraphExecutor::FiniteStateMachine() ;
&_Automaton ,
theAutomaton ,
&_Orb ,
- CORBA::ORB::_nil() ) ;
+ CORBA::ORB::_nil(),
+ _Loading ) ;
}
GraphExecutor::InNode::InNode( CORBA::ORB_ptr ORB,
&_Automaton ,
theAutomaton ,
&_Orb ,
- ORB ) ;
+ ORB,
+ _Loading ) ;
SetDebug( ORB , Graph_prof_debug , Graph_fdebug ) ;
- _Loading = false ;
_ComputingNode = NULL ;
_FactoryNode = NULL ;
_InLineNode = NULL ;
CreateNewThreadIf( false ) ;
_SuspendSync = false ;
_ResumeSync = false ;
- IsLoading( true ) ;
+
+ // asv : 13.12.04 : "Loading" state is ON (and OFF eventially) only for Computing, Factory, Inline nodes
+ if ( !IsMacroNode() )
+ IsLoading( true ) ;
+
// ThreadNo( pthread_self() ) ;
ThreadNo( 0 ) ;
const long GraphExecutor::InNode::CpuUsed( bool tot ) {
CORBA::Long cpu = 0 ;
-// cdebug_in << "GraphExecutor::InNode::CpuUsed( " << tot << " )" << Name() << endl ;
+ cout << "Begin CpuUsed " << Name() << " CpuUsed : " << cpu << " State "
+ << theAutomaton->StateName( _currentState ) << endl ;
+ cdebug_in << "GraphExecutor::InNode::CpuUsed( " << tot << " )" << Name() << endl ;
if ( IsOneOfInLineNodes() ) {
// cdebug << "CpuUsed " << Name() << " --> PyCpuUsed()" << endl ;
// cout << "CpuUsed " << Name() << " --> PyCpuUsed()" << endl ;
}
}
}
-// cdebug_out << "GraphExecutor::InNode::CpuUsed " << Name() << " CpuUsed : " << cpu << endl ;
-// cout << "CpuUsed " << Name() << " CpuUsed : " << cpu << endl ;
+ cdebug_out << "GraphExecutor::InNode::CpuUsed " << Name() << " CpuUsed : " << cpu << endl ;
+ cout << "End CpuUsed " << Name() << " CpuUsed : " << cpu << " State "
+ << theAutomaton->StateName( _currentState ) << endl ;
return cpu ;
}