Option to enable virtualization of perf counters
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 64
Description
**Related command**
`az vm create` + `az vm update`
**Is your feature request related to a problem? Please describe.**
While there is a tutorial [how to do that with Hyper-V](https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/manage/performance-monitoring-hardware) using `Set-VMProcessor -Perfmon` there is no such option with machines maintained via azure-cli.
**Describe the solution you'd like**
An option `--enable-perfmon` similar to Hyper-V's configuration via Powershell mentioned above.
**Describe alternatives you've considered**
Switch from Azure as perf counters are virtualized out of the box with other providers and can be enabled when configuring virtual machines on own hardware.
**Additional context**
Useful for `perf record`, `perf stat`, `vtune`, `perfgrind`, `rr` and a bunch of other developer software.
Contributor guide
Assessment
This issue has not been assessed yet.