Skip to content

Commit 24ad01a

Browse files
refactor: rename profiler_stats to cur_profiler_stats
1 parent 67a9db7 commit 24ad01a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ddtrace/internal/datadog/profiling/dd_wrapper/include/profile.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Profile
4747
// cannot be used until it's initialized by libdatadog
4848
ddog_prof_Profile cur_profile{};
4949

50-
Datadog::ProfilerStats profiler_stats{};
50+
Datadog::ProfilerStats cur_profiler_stats{};
5151

5252
// Internal access methods - not for direct use
5353
ddog_prof_Profile& profile_borrow_internal();

ddtrace/internal/datadog/profiling/dd_wrapper/src/profile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Datadog::Profile::reset_profile()
5858
return false;
5959
}
6060

61-
profiler_stats.reset_state();
61+
cur_profiler_stats.reset_state();
6262
return true;
6363
}
6464

@@ -228,6 +228,6 @@ Datadog::Profile::postfork_child()
228228
{
229229
new (&profile_mtx) std::mutex();
230230
// Reset the profile to clear any samples collected in the parent process
231-
profiler_stats.reset_state();
231+
cur_profiler_stats.reset_state();
232232
reset_profile();
233233
}

ddtrace/internal/datadog/profiling/dd_wrapper/src/profile_borrow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ Datadog::ProfileBorrow::profile()
4646
Datadog::ProfilerStats&
4747
Datadog::ProfileBorrow::stats()
4848
{
49-
return profile_ptr->profiler_stats;
49+
return profile_ptr->cur_profiler_stats;
5050
}

0 commit comments

Comments
 (0)