diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2013-04-26 13:11:28 -0500 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2013-04-26 13:11:28 -0500 |
commit | 62d43d23e6dc10a351e64b95724810a94ceb1f0a (patch) | |
tree | 94ae7272e9c801e510d8630a302dd5d4b4976268 | |
parent | 55a0cc423fbf014b8f016d4b0128ce2924bba6ce (diff) | |
download | tdebase-62d43d23e6dc10a351e64b95724810a94ceb1f0a.tar.gz tdebase-62d43d23e6dc10a351e64b95724810a94ceb1f0a.zip |
Add cmake configure option to support ksmserver shutdown debugging timing markers.
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | config.h.cmake | 3 | ||||
-rw-r--r-- | ksmserver/shutdown.cpp | 6 |
3 files changed, 8 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 045ab441d..0810f94ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -183,6 +183,7 @@ option( BUILD_TSAK "Build tsak" ${BUILD_ALL} ) option( BUILD_KROOTBACKING "Build krootbacking" ${BUILD_ALL} ) option( BUILD_TQT3INTEGRATION "Build tqt3integration" ${BUILD_ALL} ) option( BUILD_CRASHTEST "Build crash test program" ${BUILD_ALL} ) +option( BUILD_PROFILE_SHUTDOWN "Build ksmserver shutdown debugging timing markers" OFF ) ##### set PKG_CONFIG_PATH ####################### diff --git a/config.h.cmake b/config.h.cmake index a30f057eb..3b8dbfa1c 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -189,3 +189,6 @@ // tsak #cmakedefine BUILD_TSAK "@BUILD_TSAK@" + +// Defined when wanting ksmserver shutdown debugging timing markers in .xsession-errors +#cmakedefine BUILD_PROFILE_SHUTDOWN 1 diff --git a/ksmserver/shutdown.cpp b/ksmserver/shutdown.cpp index a13e7e3b1..9e8ee1d7c 100644 --- a/ksmserver/shutdown.cpp +++ b/ksmserver/shutdown.cpp @@ -88,10 +88,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "shutdowndlg.h" #include "client.h" -// #define PROFILE_SHUTDOWN 1 +#ifdef BUILD_PROFILE_SHUTDOWN +#define PROFILE_SHUTDOWN 1 +#endif #ifdef PROFILE_SHUTDOWN - #define SHUTDOWN_MARKER(x) printf("[ksmserver] '%s' [%s]\n\r", x, TQTime::currentTime().toString("hh:mm:ss:zzz").ascii()); fflush(stdout); + #define SHUTDOWN_MARKER(x) printf("[ksmserver] '%s' [%s]\n", x, TQTime::currentTime().toString("hh:mm:ss:zzz").ascii()); fflush(stdout); #else // PROFILE_SHUTDOWN #define SHUTDOWN_MARKER(x) #endif // PROFILE_SHUTDOWN |