Skip to content

Commit ce60ebf

Browse files
authored
fix(pprfo) set function id (#40)
1 parent f256525 commit ce60ebf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

profiler/src/ProfilerEngine/Datadog.Profiler.Native/PprofBuilder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ int64_t PprofBuilder::AddLocation(int64_t functionName, int64_t moduleName)
8787
assert(_profile.location_size() == _locations.size());
8888
assert(_profile.function_size() == _locations.size());
8989
auto* pFunction = _profile.add_function();
90+
pFunction->set_id(id);
9091
pFunction->set_name(functionName);
9192
pFunction->set_filename(moduleName);
9293
auto* pLocation = _profile.add_location();

0 commit comments

Comments
 (0)