Browse Source

Add cmake configure option to support ksmserver shutdown debugging timing markers.

tags/r14.0.0
Darrell Anderson 6 years ago
parent
commit
62d43d23e6
3 changed files with 8 additions and 2 deletions
  1. +1
    -0
      CMakeLists.txt
  2. +3
    -0
      config.h.cmake
  3. +4
    -2
      ksmserver/shutdown.cpp

+ 1
- 0
CMakeLists.txt View File

@@ -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 #######################


+ 3
- 0
config.h.cmake View File

@@ -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

+ 4
- 2
ksmserver/shutdown.cpp View File

@@ -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


Loading…
Cancel
Save