PerformanceStatistics 1.1.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package PerformanceStatistics --version 1.1.3                
NuGet\Install-Package PerformanceStatistics -Version 1.1.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PerformanceStatistics" Version="1.1.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PerformanceStatistics --version 1.1.3                
#r "nuget: PerformanceStatistics, 1.1.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PerformanceStatistics as a Cake Addin
#addin nuget:?package=PerformanceStatistics&version=1.1.3

// Install PerformanceStatistics as a Cake Tool
#tool nuget:?package=PerformanceStatistics&version=1.1.3                

PerformanceStatistics

<img src="https://github.com/jchristn/PerformanceStatistics/blob/main/Assets/logo.png?raw=true" width="100" height="100" />

Library for capturing performance statistics from commonly-used performance counters. Currently only supports Windows.

NuGet Version NuGet

Help, Feedback, Contribute

If you have any issues or feedback, please file an issue here in Github. We'd love to have you help by contributing code for new features, optimization to the existing codebase, ideas for future releases, or fixes!

New in v1.1.x

  • Added monitored processes

Example Project

Refer to the Test project for exercising the library.

Getting Started

using PerformanceStatistics;

WindowsPerformanceStatistics stats = new WindowsPerformanceStatistics();
stats.MonitoredProcessNames.Add("chrome");  // if you want detailed statistics
stats.MonitoredProcessNames.Add("outlook"); // about these processes
Console.WriteLine(stats.ToString());
/*
--------------------------------------------------
Operating System                : WINDOWS
System Counters                 :
  CPU Utilization Percent       : 0%
  Memory Free (Megabytes)       : 4638MB
  Total Disk Read Operations    : 0
  Total Disk Write Operations   : 0
  Total Disk Read Queue         : 0
  Total Disk Write Queue        : 0
  Total Disk Free Percent       : 28%
  Total Disk Free Megabytes     : 338436MB
  Total Disk Size Megabytes     : 1208700MB
  Total Disk Used Megabytes     : 870264MB
Monitored Processes             : 2
  chrome
  Process ID                    : 39192
  Process Name                  : chrome
  Process Title                 : Welcome to my email!
  Machine Name                  : .
  CPU Utilization               : 0%
  Handle Count                  : 2652
  Thread Count                  : 43
  Memory, Private               : 252215296 bytes
  Memory, Paged System          : 1546536 bytes
  Memory, Peak Paged System     : 282923008 bytes
  Memory, Non-Paged System      : 97720 bytes
  Memory, Virtual               : 2307852075008 bytes
  Memory, Peak Virtual          : 2308019273728 bytes
  Memory, Working Set           : 322637824 bytes
  Memory, Peak Working Set      : 367566848 bytes
---
  ...
---
Active TCP Connections          : 137
  | 127.0.0.1:49677 to 127.0.0.1:49678: Established
  | 127.0.0.1:49678 to 127.0.0.1:49677: Established
  ...
*/

Version History

Refer to CHANGELOG.md for version history.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.5 354 10/23/2023
1.1.4 132 10/23/2023
1.1.3 135 10/23/2023
1.1.2 137 10/23/2023
1.1.0 141 10/23/2023
1.0.1 173 10/20/2023
1.0.0 149 10/19/2023

Initial release