dotnet / dotnet/crank

LinuxMachineCpuUsageEmitter fails on macos

Open
#838 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.1k
Forks
111
Avg merge
2d 21h
Merged PRs (30d)
3

Description

The `vmstat` command is not available on macos and it fails. Maybe use `top` on macos.

```c#
else if (_job.OperatingSystem is OperatingSystem.Linux or OperatingSystem.OSX)
{
cpuEmitter = new LinuxMachineCpuUsageEmitter(Measurements.BenchmarksCpuGlobal, counterName: "vmstat");
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.