mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Don't read payload.extra, if not needed.
This commit is contained in:
parent
2b4fbd7feb
commit
898140fbda
@ -3329,10 +3329,8 @@ bool Profiler::HandleServerQuery()
|
|||||||
|
|
||||||
uint8_t type;
|
uint8_t type;
|
||||||
uint64_t ptr;
|
uint64_t ptr;
|
||||||
uint32_t extra;
|
|
||||||
memcpy( &type, &payload.type, sizeof( payload.type ) );
|
memcpy( &type, &payload.type, sizeof( payload.type ) );
|
||||||
memcpy( &ptr, &payload.ptr, sizeof( payload.ptr ) );
|
memcpy( &ptr, &payload.ptr, sizeof( payload.ptr ) );
|
||||||
memcpy( &extra, &payload.extra, sizeof( payload.extra ) );
|
|
||||||
|
|
||||||
switch( type )
|
switch( type )
|
||||||
{
|
{
|
||||||
@ -3379,7 +3377,7 @@ bool Profiler::HandleServerQuery()
|
|||||||
break;
|
break;
|
||||||
#ifndef TRACY_NO_CODE_TRANSFER
|
#ifndef TRACY_NO_CODE_TRANSFER
|
||||||
case ServerQuerySymbolCode:
|
case ServerQuerySymbolCode:
|
||||||
HandleSymbolCodeQuery( ptr, extra );
|
HandleSymbolCodeQuery( ptr, payload.extra );
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case ServerQuerySourceCode:
|
case ServerQuerySourceCode:
|
||||||
@ -3396,7 +3394,7 @@ bool Profiler::HandleServerQuery()
|
|||||||
break;
|
break;
|
||||||
case ServerQueryDataTransferPart:
|
case ServerQueryDataTransferPart:
|
||||||
memcpy( m_queryDataPtr, &ptr, 8 );
|
memcpy( m_queryDataPtr, &ptr, 8 );
|
||||||
memcpy( m_queryDataPtr+8, &extra, 4 );
|
memcpy( m_queryDataPtr+8, &payload.extra, 4 );
|
||||||
m_queryDataPtr += 12;
|
m_queryDataPtr += 12;
|
||||||
AckServerQuery();
|
AckServerQuery();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user