Skip to content

Add support for other stackprof profiles

Matthias Käppler requested to merge mk/stackprof-object-support into master

What does this MR do?

We've had support for creating stackprof profiles for a while now. However, the current implementation is limited to creating CPU profiles. This change adds support for other profile modes such as object.

This is controlled throgh a new env var STACKPROF_MODE.

Since object allocations are not sampled based on frequency but based on allocation events, I decided to rename the interval env var to just STACKPROF_INTERVAL since it is not always provided in microseconds i.e. time units anymore.

I also streamlined logging a bit by pulling it out into a helper and by prefixing all labels with profile_ so as not to pollute the global Kibana label namespace with this.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Matthias Käppler

Merge request reports