Giter Site home page Giter Site logo

somdipdey / systemperformance Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 2.0 49 KB

Track System Performance (CPU / RAM / Memory / SQL Server) using this NuGet Package. Requires .Net framework 3.5+. It is an Open Source project under MIT License.

Home Page: https://www.nuget.org/packages/SystemPerformance/

License: MIT License

C# 100.00%
system performance performance-analysis cpu-monitoring memory-management sql-server t-sql ms-sql-server mssqlserver mssql ram c-sharp dotnet-framework nuget-package

systemperformance's Introduction

SystemPerformance

Track System Performance (CPU / RAM / Memory / SQL Server) using this NuGet Package. Requires .Net 3.5+ framework. It is an Open Source project under MIT License.

Permissions Required

To monitor performance of SQL Server Objects you need the following permissions: On SQL Server, requires VIEW SERVER STATE permission. On SQL Database Premium Tiers, requires the VIEW DATABASE STATE permission in the database. On SQL Database Standard and Basic Tiers, requires the Server admin or an Azure Active Directory admin account.

Using The Package

To fetch performance of the device on which the assembly is running use the PerformanceTracker class. Refer to following example:

var thisDevice = new PerformanceTracker();
thisDevice.Current_CPU_Usage; //returns a floating number denoting CPU usage of the device on which the assembly is being executed
thisDevice.Percent_RAM_Used; //returns a floating number to denote the percentage of RAM being used on the device on which the assembly is being executed	

Database Server Performance Tracker Example:

var track_DBServer_Performance = new DB_Server_PerformanceTracker("MyConnectionString");
track_DBServer_Performance.Top20_Expensive_Queries; //returns a list of top 20 most expensive QUeries on the database server

Check the state of the Database Server using DatabaseServer class as follows:

var myDatabase = new DatabaseServer("MyConnectionString", "MyDatabaseName");
myDatabase.IsConnected; //returns a boolean to denote whether the database connection is alright or not
myDatabase.IsDatabaseLocked; //returns a boolean to denoted whether the database is locked for use or not

Check each class in the project to discover many more features and ways to keep track of CPU / RAM / Disk (Memory) / SQL Server performance, all from one package only.

systemperformance's People

Contributors

somdipdey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

systemperformance's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.