Skip to content

System.Diagnostics.PerformanceCounterType.NumberOfItems32 got wrong description #6600

Open
@WenceyWang

Description

@WenceyWang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3Indicates issues/PRs that are low priorityarea-System.DiagnosticsuntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions