Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcos Slomp committed Feb 8, 2024
1 parent 7847997 commit 89191a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/tracy/TracyMetal.hmm
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,10 @@ private:
tracy_force_inline unsigned int NextQueryId(int n=1)
{
auto id = m_queryCounter.fetch_add(n);
if (RingCount(m_previousCheckpoint, id) >= MaxQueries)
auto count = RingCount(m_previousCheckpoint, id);
if (count >= MaxQueries)
{
fprintf(stdout, "TracyMetal: NextQueryId: FULL [%llu, %llu] (%d)\n", m_previousCheckpoint.load(), id, count);
TracyMetalPanic("NextQueryId: too many pending timestamp queries.");
// #TODO: return some sentinel value; ideally a "hidden" query index
}
Expand Down

0 comments on commit 89191a6

Please sign in to comment.