apm-server
apm-server copied to clipboard
test: add cpuprofile arg support to benchmark make task
Motivation/summary
Add BENCHMARK_CPU_OUT variable and pass cpuprofile arg to apmbench.
This PR allows creating cpu profile when running benchmark to investigate performance issues.
Checklist
- [ ] Update CHANGELOG.asciidoc
- [ ] Update package changelog.yml (only if changes to
apmpackagehave been made) - [ ] Documentation has been updated
For functional changes, consider:
- Is it observable through the addition of either logging or metrics?
- Is its use being published in telemetry to enable product improvement?
- Have system tests been added to avoid regression?
How to test these changes
-
BENCHMARK_CPU_OUT=cpu.out make run-benchmark -
BENCHMARK_CPU_OUT=cpu.out make cp-cpuprof - open
cpu.outfile locally
Related issues
This pull request does not have a backport label. Could you fix it @kruskall? 🙏 To fixup this pull request, you need to add the backport labels for the needed branches, such as:
-
backport-7.17is the label to automatically backport to the 7.17 branch. -
backport-8./dis the label to automatically backport to the8./dbranch./dis the digit.
NOTE: backport-skip has been added to this pull request.
run docs-build