1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Bump protocol to simplify IsQueryPrio().

This commit is contained in:
Bartosz Taudul
2022-04-18 13:39:49 +02:00
parent cd3f9c8831
commit 95187c94e9
2 changed files with 8 additions and 15 deletions
+1 -9
View File
@@ -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;
}