mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Bump protocol to simplify IsQueryPrio().
This commit is contained in:
parent
cd3f9c8831
commit
95187c94e9
@ -9,7 +9,7 @@ namespace tracy
|
||||
|
||||
constexpr unsigned Lz4CompressBound( unsigned isize ) { return isize + ( isize / 255 ) + 16; }
|
||||
|
||||
enum : uint32_t { ProtocolVersion = 55 };
|
||||
enum : uint32_t { ProtocolVersion = 56 };
|
||||
enum : uint16_t { BroadcastVersion = 2 };
|
||||
|
||||
using lz4sz_t = uint32_t;
|
||||
@ -44,18 +44,19 @@ enum ServerQuery : uint8_t
|
||||
ServerQueryThreadString,
|
||||
ServerQuerySourceLocation,
|
||||
ServerQueryPlotName,
|
||||
ServerQueryCallstackFrame,
|
||||
ServerQueryFrameName,
|
||||
ServerQueryDisconnect,
|
||||
ServerQueryExternalName,
|
||||
ServerQueryParameter,
|
||||
ServerQueryFiberName,
|
||||
// Items above are high priority. Split order must be preserved. See IsQueryPrio().
|
||||
ServerQueryDisconnect,
|
||||
ServerQueryCallstackFrame,
|
||||
ServerQueryExternalName,
|
||||
ServerQuerySymbol,
|
||||
ServerQuerySymbolCode,
|
||||
ServerQueryCodeLocation,
|
||||
ServerQuerySourceCode,
|
||||
ServerQueryDataTransfer,
|
||||
ServerQueryDataTransferPart,
|
||||
ServerQueryFiberName
|
||||
ServerQueryDataTransferPart
|
||||
};
|
||||
|
||||
struct ServerQueryPacket
|
||||
|
@ -254,17 +254,9 @@ static uint64_t ReadHwSampleVec( FileRead& f, SortedVector<Int48, Int48Sort>& ve
|
||||
return sz;
|
||||
}
|
||||
|
||||
// Should be just a simple comparison. Do this when protocol version changes.
|
||||
static bool IsQueryPrio( ServerQuery type )
|
||||
{
|
||||
return
|
||||
type == ServerQuery::ServerQueryString ||
|
||||
type == ServerQuery::ServerQueryThreadString ||
|
||||
type == ServerQuery::ServerQuerySourceLocation ||
|
||||
type == ServerQuery::ServerQueryPlotName ||
|
||||
type == ServerQuery::ServerQueryFrameName ||
|
||||
type == ServerQuery::ServerQueryParameter ||
|
||||
type == ServerQuery::ServerQueryFiberName;
|
||||
return type < ServerQuery::ServerQueryDisconnect;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user