From: eap Date: Fri, 11 Dec 2009 10:42:26 +0000 (+0000) Subject: 0020605: EDF 1190 SMESH: Display performance. 80 seconds for 52000 cells. X-Git-Tag: WSDL_Dev_V1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=09c41c5a20669b506504cf3e472c3add5423d61d;p=modules%2Fgui.git 0020605: EDF 1190 SMESH: Display performance. 80 seconds for 52000 cells. + char* getHostname(); --- diff --git a/src/Session/Session_Session_i.cxx b/src/Session/Session_Session_i.cxx index 21c0d2e78..ec065d692 100755 --- a/src/Session/Session_Session_i.cxx +++ b/src/Session/Session_Session_i.cxx @@ -36,6 +36,8 @@ #include "SUIT_Desktop.h" #include "SUIT_Study.h" +#include "Basics_Utils.hxx" + #include #include @@ -214,6 +216,12 @@ CORBA::Long SALOME_Session_i::getPID() { #endif } +char* SALOME_Session_i::getHostname() +{ + string aHostName = Kernel_Utils::GetHostname(); + return CORBA::string_dup( aHostName.data() ); +} + bool SALOME_Session_i::restoreVisualState(CORBA::Long theSavePoint) { class TEvent: public SALOME_Event { diff --git a/src/Session/Session_Session_i.hxx b/src/Session/Session_Session_i.hxx index 1fdc144d1..1b24d5cef 100755 --- a/src/Session/Session_Session_i.hxx +++ b/src/Session/Session_Session_i.hxx @@ -69,6 +69,7 @@ public: void ping(){}; CORBA::Long getPID(); + char* getHostname(); //! Restors a visual state of the study at theSavePoint bool restoreVisualState(CORBA::Long theSavePoint);