473,772 Members | 3,672 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Minimum, Maximum, Average values of PerfMon.

I am trying to do some monitoring of some PerfMon counters and have a
question.

Does PerfMon figure out the Minimum, Maximum, Average values for each
counter? Or are those values part of the performance monitoring
subsystem and can be accessed via the
System.Diagnost ics.Performance Counter object. I haven't found an
obvious way to get to the Minimum, Maximum, Average values for a counter.

Thanks.
Aug 10 '07 #1
3 9039
Hi Shailesh,

I will spend some time on this issue and get back to you ASAP, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 13 '07 #2
Hi Shailesh,

Regarding on the performance counters of windows system, a given
performance counter itself doesn't provide any of the following values:

"average"
"maximum"
"minimum"

performance counter itself only keep the latest value updated from the
source application(suc h as windows system , SQL server or other
applications that has registered certain counters).

For the above statistic values, they're calculated by the perfmon.exe
program, and the calculation is on-deman(no history record stored in any
persistent log file). That means, whenever you launch the perfmon.exe
program, it start calculating the above statistic values for every
counters(that is listed) and after you close the perfmon and restart it
again, the calculation start again and no previous record are persistent.

Therefore, for your scenario here, if you want to get such statistic value
for certain performance counters in your own application, you need to do it
programmaically through your own code as below:

**In your application, use the performance counter class/methods to get a
set of the sample values (according to the performance c ounter's frequency
and the accuracy you need) and you need to keep these sample values yourself

**Calculate the statistic values(average, max, min values) based on the set
of sample values obtained above

Hope this helps. If you have any further question on this, please feel free
to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.


Aug 15 '07 #3
Thank you. That's what I thought as well.

Steven Cheng[MSFT] wrote:
Hi Shailesh,

Regarding on the performance counters of windows system, a given
performance counter itself doesn't provide any of the following values:

"average"
"maximum"
"minimum"

performance counter itself only keep the latest value updated from the
source application(suc h as windows system , SQL server or other
applications that has registered certain counters).

For the above statistic values, they're calculated by the perfmon.exe
program, and the calculation is on-deman(no history record stored in any
persistent log file). That means, whenever you launch the perfmon.exe
program, it start calculating the above statistic values for every
counters(that is listed) and after you close the perfmon and restart it
again, the calculation start again and no previous record are persistent.

Therefore, for your scenario here, if you want to get such statistic value
for certain performance counters in your own application, you need to do it
programmaically through your own code as below:

**In your application, use the performance counter class/methods to get a
set of the sample values (according to the performance c ounter's frequency
and the accuracy you need) and you need to keep these sample values yourself

**Calculate the statistic values(average, max, min values) based on the set
of sample values obtained above

Hope this helps. If you have any further question on this, please feel free
to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 15 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
6077
by: Lobang Trader | last post by:
Hi all, I am trying to create a username and a password class. I would like to know what are the RECOMMENDED minimum and maximum length for both fields? These fields will be something like this: private static final int DEFAULT_MINIMUM_LENGTH = ??????
2
1913
by: Hennie de Nooijer | last post by:
I have a problem (who not?) with a function which i'm using in a view. This function is a function which calculates a integer value of a date. For example: '12/31/2004 00:00:00" becomes 20041231. This is very handy in a datawarehouse and performes superfast. But here is my problem. My calendar table is limited by a couple of years. What happens is that sometimes a value is loaded which is not in the range of the Calendardate. What we...
2
2335
by: Hennie de Nooijer | last post by:
Because of an error in google or underlying site i can reply on my own issue. Therefore i copied the former entered message in this message. -------------------------------------REPY---------------------------------- Hi Maybe i wasn't clear. I want to dynamically check whether what the lowest date and the highest date is in the calendar table. The presented solutions has fixed dates and i don't want that. If i could store a global...
4
3597
by: Scott | last post by:
In order to give a meaning average value and minimum and maximum values, I would like to have a formula for a group of data after taking out those extremes. Can someone share your way to accomplish it. Thanks, Scott
3
17927
by: Madmartigan | last post by:
Hello I have the following task but am battling with the final output. How do I keep two different vectors in sync and how would I retrieve the index for the maximum value of one of the vectors?? (using Dev-C++ compiler) Please see task and attempt below: TASK : 1.8.1 Exercise 1A - Temperature tracker Write a program that tracks temperatures during an experiment that takes 24 hours. The user should input the temperature. This...
2
3389
by: Pugi! | last post by:
hi, I am using this code for checking wether a value (form input) is an integer and wether it is smaller than a given maximum and greater then a given minimum value: function checkInteger(&$value, $checks) { $err = ''; if (!is_numeric($value) || (floatval($value) != intval($value))) { $err .= 'Input must be an integer. ';
7
3612
by: junky_fellow | last post by:
Guys, Does the standard allow to an implementation to chose any maximum and minimum value for an object of type int ? For eg. Can an implementation with sizeof(int)=4, chose to have value of INT_MAX = 2147483646 (in limits.h). Or it is mandatory that if sizeof(int)=4, then the INT_MAX should have
3
2085
by: manxie | last post by:
Dear All Readers, I'm supposed to create a program with a switch and using voids to execute number of codes, that includes finding sum, average, maximum, and minimum, please read my code: #include <iostream> #include <string> #include <iomanip> using namespace std; void WELCOME();
11
10264
by: zj262144 | last post by:
Hi, I'm a C beginner. I want to write a C. The pseudocodes are like this: User enters some numbers (use -1 to end) The compiler find and delete the maximum and minimum numbers Then average remained numbers Finally print the result Thanks in advance!!!
0
9620
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9912
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.