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

Customizable source location data

This commit is contained in:
Petr Shurgalin
2022-11-25 15:05:16 +02:00
parent e1395f5a53
commit 5ddf62b54e
9 changed files with 125 additions and 80 deletions
+1 -1
View File
@@ -3544,7 +3544,7 @@ void Profiler::CalibrateDelay()
constexpr int Events = Iterations * 2; // start + end
static_assert( Events < QueuePrealloc, "Delay calibration loop will allocate memory in queue" );
static const tracy::SourceLocationData __tracy_source_location { nullptr, __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 };
static const tracy::SourceLocationData __tracy_source_location { nullptr, TracyFunction, TracyFile, (uint32_t)TracyLine, 0 };
const auto t0 = GetTime();
for( int i=0; i<Iterations; i++ )
{