Skip to content

setProfile() only works with one Profile per message #534

Closed
@rockdaboot

Description

@rockdaboot

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions