forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tracy - add disable-crash-handler to disable the crash handler (micro…
- Loading branch information
Showing
5 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/public/client/TracyProfiler.cpp b/public/client/TracyProfiler.cpp | ||
index ea168e4f..9287d433 100644 | ||
--- a/public/client/TracyProfiler.cpp | ||
+++ b/public/client/TracyProfiler.cpp | ||
@@ -1454,7 +1454,7 @@ Profiler::~Profiler() | ||
if( m_crashHandlerInstalled ) RemoveVectoredExceptionHandler( m_exceptionHandler ); | ||
#endif | ||
|
||
-#ifdef __linux__ | ||
+#if defined __linux__ && !defined TRACY_NO_CRASH_HANDLER | ||
if( m_crashHandlerInstalled ) | ||
{ | ||
sigaction( TRACY_CRASH_SIGNAL, &m_prevSignal.pwr, nullptr ); | ||
@@ -1520,7 +1520,7 @@ bool Profiler::ShouldExit() | ||
|
||
void Profiler::Worker() | ||
{ | ||
-#ifdef __linux__ | ||
+#if defined __linux__ && !defined TRACY_NO_CRASH_HANDLER | ||
s_profilerTid = syscall( SYS_gettid ); | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters