Skip to content

Commit

Permalink
stack depth needs +1
Browse files Browse the repository at this point in the history
  • Loading branch information
dazKind committed Sep 10, 2024
1 parent 4de9cd5 commit 09df741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hx/TelemetryTracy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ void hx::tlmSampleEnter(hx::Telemetry* telemetry, hx::StackFrame* frame)
0);

#if HXCPP_TRACY_INCLUDE_CALLSTACKS
// Note: Tracy doesnt support Callstacks outside this scope: depth >= 1 && depth < 63
// Determine depth from tracyZones vector: +1 since we are about to add one
auto depth = telemetry->tracyZones.size();
auto depth = telemetry->tracyZones.size() + 1;

// TODO: Tracy doesnt support Callstacks outside this scope: depth >= 1 && depth < 63
telemetry->tracyZones.push_back(___tracy_emit_zone_begin_alloc_callstack(srcloc, depth, true));
#else
telemetry->tracyZones.push_back(___tracy_emit_zone_begin_alloc(srcloc, true));
Expand Down

0 comments on commit 09df741

Please sign in to comment.