Closed
Description
In setProfile()
we have
// profile.LocationIndices is not optional, and we only write elements into
// profile.Location that at least one sample references.
for i := int32(0); i < int32(dic.LocationTable().Len()); i++ {
profile.LocationIndices().Append(i)
}
so that LocationIndices
fully reflects the whole LocationTable
.
This doesn't work if on-CPU and off-CPU profiling are turned on at the same time.
See also https://cloud-native.slack.com/archives/C03J794L0BV/p1750065495814399