Fix typo.

This commit is contained in:
Bartosz Taudul 2018-06-20 23:42:00 +02:00
parent 909166daf7
commit 973eab2b4a
2 changed files with 6 additions and 6 deletions

View File

@ -187,7 +187,7 @@ Worker::Worker( const char* addr )
, m_pendingStrings( 0 )
, m_pendingThreads( 0 )
, m_pendingSourceLocation( 0 )
, m_pendingCallbackFrames( 0 )
, m_pendingCallstackFrames( 0 )
{
m_data.sourceLocationExpand.push_back( 0 );
m_data.threadExpand.push_back( 0 );
@ -996,7 +996,7 @@ void Worker::Exec()
if( m_terminate )
{
if( m_pendingStrings != 0 || m_pendingThreads != 0 || m_pendingSourceLocation != 0 || m_pendingCallbackFrames != 0 ||
if( m_pendingStrings != 0 || m_pendingThreads != 0 || m_pendingSourceLocation != 0 || m_pendingCallstackFrames != 0 ||
!m_pendingCustomStrings.empty() || !m_pendingPlots.empty() || !m_pendingCallstacks.empty() )
{
continue;
@ -1366,7 +1366,7 @@ void Worker::AddCallstackPayload( uint64_t ptr, char* _data, size_t sz )
auto fit = m_data.callstackFrameMap.find( frame );
if( fit == m_data.callstackFrameMap.end() )
{
m_pendingCallbackFrames++;
m_pendingCallstackFrames++;
ServerQuery( ServerQueryCallstackFrame, frame );
}
}
@ -2130,8 +2130,8 @@ void Worker::ProcessCallstackMemory( const QueueCallstackMemory& ev )
void Worker::ProcessCallstackFrame( const QueueCallstackFrame& ev )
{
assert( m_pendingCallbackFrames > 0 );
m_pendingCallbackFrames--;
assert( m_pendingCallstackFrames > 0 );
m_pendingCallstackFrames--;
auto fmit = m_data.callstackFrameMap.find( ev.ptr );
auto nit = m_pendingCustomStrings.find( ev.name );

View File

@ -310,7 +310,7 @@ private:
uint32_t m_pendingStrings;
uint32_t m_pendingThreads;
uint32_t m_pendingSourceLocation;
uint32_t m_pendingCallbackFrames;
uint32_t m_pendingCallstackFrames;
uint64_t m_lastMemActionCallstack;
bool m_lastMemActionWasAlloc;