dotnet / dotnet/dotnet-api-docs

System.Diagnostics.PerformanceCounterType.NumberOfItems32 got wrong description

Open
#6,600 2 comments 0 reactions 0 assignees View on GitHub
area-System.Diagnostics Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.performancecountertype?view=net-5.0 shows `NumberOfItems32`:

```
An instantaneous counter that shows the most recently observed value. Used, for example, to maintain a simple count of items or operations. Counters of this type include Memory\Available Bytes.
```

which is not true, In my test:
```
> (new PerformanceCounter("Memory", "Available Bytes", true)).CounterType
NumberOfItems64
```

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.