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:
@@ -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 ),
|
||||
|
||||
Reference in New Issue
Block a user