Add support for bottleneck stats

This commit is contained in:
Lauri Kasanen
2020-09-21 15:51:56 +03:00
parent 45e44a66e5
commit d5bdef121a
11 changed files with 164 additions and 4 deletions

View File

@@ -88,6 +88,15 @@ void SMsgWriter::writeServerCutText(const char* str, int len)
endMsg();
}
void SMsgWriter::writeStats(const char* str, int len)
{
startMsg(msgTypeStats);
os->pad(3);
os->writeU32(len);
os->writeBytes(str, len);
endMsg();
}
void SMsgWriter::writeFence(rdr::U32 flags, unsigned len, const char data[])
{
if (!cp->supportsFence)