From 09c41c5a20669b506504cf3e472c3add5423d61d Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 11 Dec 2009 10:42:26 +0000 Subject: [PATCH] 0020605: EDF 1190 SMESH: Display performance. 80 seconds for 52000 cells. + char* getHostname(); --- src/Session/Session_Session_i.cxx | 8 ++++++++ src/Session/Session_Session_i.hxx | 1 + 2 files changed, 9 insertions(+) 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); -- 2.39.2