From b6ec625ab48cf0fddd6a1f6d9d8da53176fcd6f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gr=C3=A9goire?= Date: Wed, 9 Apr 2025 14:45:03 +0200 Subject: [PATCH] Remove assert that would trigger on dropped CSwitch events --- server/TracyWorker.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 529d7bad..9efc828b 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -6781,9 +6781,9 @@ void Worker::ProcessContextSwitch( const QueueContextSwitch& ev ) auto& item = data.back(); assert( item.Start() <= time ); assert( item.End() == -1 ); - //TODO: it may happen that events are being dropped (for example due to breaking in the debugger, or we are simply too slow to handle the events) - // We should handle this properly in some way, but it is unclear how. We can't even really detect it properly other than when cpu doesn't match. - assert( item.Cpu() == ev.cpu ); + //TODO: It may happen that events are being dropped (for example due to breaking in the debugger, or we are simply too slow to handle the events) + // We should handle this properly in some way, but it is unclear how. We can't even really detect it properly here other than when cpu doesn't match. + // Something could be displayed onscreen when gaps are detected at the event ringbuffer level? item.SetEnd( time ); item.SetReason( ev.oldThreadWaitReason ); item.SetState( ev.oldThreadState );