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

Manual ZoneEvent vector initialization.

This commit is contained in:
Bartosz Taudul
2017-11-15 22:13:23 +01:00
parent 13d8d9255e
commit afa9eec5dd
3 changed files with 11 additions and 3 deletions
+3
View File
@@ -66,6 +66,8 @@ enum { SourceLocationSize = sizeof( SourceLocation ) };
struct ZoneEvent
{
void Init() { memset( &child, 0, 12 ); }
int64_t start;
int64_t end;
int32_t srcloc;
@@ -77,6 +79,7 @@ struct ZoneEvent
};
enum { ZoneEventSize = sizeof( ZoneEvent ) };
static_assert( sizeof( ZoneEvent::child ) == 13, "Adjust vector clear size!" );
struct LockEvent