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

Allow crash event reporting.

When crash happens there's no longer anything to profile -- don't wait
for unfinished zones to finish before sending client terminate
confirmation.
This commit is contained in:
Bartosz Taudul
2018-08-20 01:03:16 +02:00
parent ca939ccd19
commit 366ea35593
3 changed files with 17 additions and 6 deletions
+2
View File
@@ -16,6 +16,7 @@ enum class QueueType : uint8_t
Callstack,
Terminate,
KeepAlive,
Crash,
ZoneBegin,
ZoneBeginCallstack,
ZoneEnd,
@@ -287,6 +288,7 @@ static const size_t QueueDataSize[] = {
// above items must be first
sizeof( QueueHeader ), // terminate
sizeof( QueueHeader ), // keep alive
sizeof( QueueHeader ), // crash
sizeof( QueueHeader ) + sizeof( QueueZoneBegin ),
sizeof( QueueHeader ) + sizeof( QueueZoneBegin ), // callstack
sizeof( QueueHeader ) + sizeof( QueueZoneEnd ),