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} )
183 183
 option( BUILD_KROOTBACKING "Build krootbacking"  ${BUILD_ALL} )
184 184
 option( BUILD_TQT3INTEGRATION "Build tqt3integration"  ${BUILD_ALL} )
185 185
 option( BUILD_CRASHTEST "Build crash test program"  ${BUILD_ALL} )
186
+option( BUILD_PROFILE_SHUTDOWN "Build ksmserver shutdown debugging timing markers"  OFF )
186 187
 
187 188
 
188 189
 ##### set PKG_CONFIG_PATH #######################

+ 3
- 0
config.h.cmake View File

@@ -189,3 +189,6 @@
189 189
 
190 190
 // tsak
191 191
 #cmakedefine BUILD_TSAK "@BUILD_TSAK@"
192
+
193
+// Defined when wanting ksmserver shutdown debugging timing markers in .xsession-errors
194
+#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.
88 88
 #include "shutdowndlg.h"
89 89
 #include "client.h"
90 90
 
91
-// #define PROFILE_SHUTDOWN 1
91
+#ifdef BUILD_PROFILE_SHUTDOWN
92
+#define PROFILE_SHUTDOWN 1
93
+#endif
92 94
 
93 95
 #ifdef PROFILE_SHUTDOWN
94
-	#define SHUTDOWN_MARKER(x) printf("[ksmserver] '%s' [%s]\n\r", x, TQTime::currentTime().toString("hh:mm:ss:zzz").ascii()); fflush(stdout);
96
+	#define SHUTDOWN_MARKER(x) printf("[ksmserver] '%s' [%s]\n", x, TQTime::currentTime().toString("hh:mm:ss:zzz").ascii()); fflush(stdout);
95 97
 #else // PROFILE_SHUTDOWN
96 98
 	#define SHUTDOWN_MARKER(x)
97 99
 #endif // PROFILE_SHUTDOWN

Loading…
Cancel
Save