Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6965133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:00:52+00:00 2026-05-27T16:00:52+00:00

I am trying to read perfmon counters for category .NET CLR Exceptions. Below is

  • 0

I am trying to read perfmon counters for category “.NET CLR Exceptions”. Below is code for same. What I am seeing is looks like different data being shown in Windows Perfmon counter and console application I built.

PerformanceCounterCategory netClrExceptionCat = new PerformanceCounterCategory(".NET CLR Exceptions");
foreach (PerformanceCounter counter in netClrExceptionCat.GetCounters("_Global_"))
{
    Console.WriteLine(string.Format("  Counter: {0} : Value : {1}", counter.CounterName, counter.RawValue));
}

enter image description here

I would appreciate if someone can please point me to right direction in case I am doing something wrong here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:00:52+00:00Added an answer on May 27, 2026 at 4:00 pm

    Notice that the discrepancy is on the derived “per second” values. These kinds of counters are somewhat counterintuitive. The OS does not keep a standard instantaneous value for you to obtain. Keeping track of the elapsed time and performing division is done in the application consuming the counter. For example, if you query the counter with a delay of 5 seconds between calls, your application divides the difference of the counter’s raw value by 5. Now, your application will not be using the exact same delay or even likely capture any of the samples at the same time. Therefore, your values will be anywhere from slightly or vastly different.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a simple Asp.Net page to read Perfmon counters from a
So I'm trying to read this file. Everything looks like it should work, but
I'm trying to read a number of performance counters from a running .NET 4
I'm trying to read weather information from the Google Weather API. My Code looks
am trying to read web page from java code and its fine for general
Im trying to read and write to/from the same file, is this possible? Here
Im trying to read in image file from a server , with the code
I am trying to read in from a few files using something like this
Trying to read an RSS and select information using Linq but can't seem to
Trying to read headers for a csv file with: reader = csv.DictReader(open(PATH_FILE),skipinitialspace=True) headers =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.