mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 08:54:34 +00:00
PR feedback
This commit is contained in:
parent
9dfb1e98b9
commit
e1554a13e0
@ -1463,7 +1463,6 @@ Profiler::Profiler()
|
||||
m_userPort = atoi( userPort );
|
||||
}
|
||||
|
||||
m_safeSendBufferSize = 65536;
|
||||
m_safeSendBuffer = (char*)tracy_malloc( m_safeSendBufferSize );
|
||||
|
||||
#ifndef _WIN32
|
||||
@ -1528,7 +1527,7 @@ void Profiler::RemoveCrashHandler()
|
||||
#if defined __linux__ && !defined TRACY_NO_CRASH_HANDLER
|
||||
if( m_crashHandlerInstalled )
|
||||
{
|
||||
auto restore = [ this ]( int signum, struct sigaction* prev ) {
|
||||
auto restore = []( int signum, struct sigaction* prev ) {
|
||||
struct sigaction old;
|
||||
sigaction( signum, prev, &old );
|
||||
if( old.sa_sigaction != CrashHandler ) sigaction( signum, &old, nullptr ); // A different signal handler was installed over ours => put it back
|
||||
|
@ -1010,7 +1010,7 @@ private:
|
||||
std::atomic_bool m_inUse{ false };
|
||||
#endif
|
||||
char* m_safeSendBuffer;
|
||||
size_t m_safeSendBufferSize;
|
||||
constexpr static size_t m_safeSendBufferSize = 65536;
|
||||
|
||||
#if defined _WIN32
|
||||
void* m_prevHandler;
|
||||
|
Loading…
Reference in New Issue
Block a user