performance counter custom provider

Hi,

I would like to provide statistics and integrate them with perfmon.msc/exe on XP
and above. Each application loads the DLL into which this event provider
resides. Is there a sample at the ready I can use? The platform SDK does provide
some, but I am not sure which is the most adequate. Here are some objectives:

  • low overhead, high performance
  • statistics per process or total
  • available at least on perfmon, even better with WMI so that powershell scripts
    can access the statistics.
  • should not require admin privileges to generate them
  • started with the computer, persistent after a process has exited. This one is
    a weak requirement,

Regards,
Calin

There are wmi examples on osronline for doing this. http://www.osronline.com/article.cfm?id=95

–Mark Cariddi
OSR Open Systems Resources, Inc.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Calin Iaru
Sent: Thursday, November 18, 2010 7:48 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] performance counter custom provider

Hi,

I would like to provide statistics and integrate them with perfmon.msc/exe on XP and above. Each application loads the DLL into which this event provider resides. Is there a sample at the ready I can use? The platform SDK does provide some, but I am not sure which is the most adequate. Here are some objectives:

  • low overhead, high performance
  • statistics per process or total
  • available at least on perfmon, even better with WMI so that powershell scripts can access the statistics.
  • should not require admin privileges to generate them
  • started with the computer, persistent after a process has exited. This one is a weak requirement,

Regards,
Calin


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Thanks, I’ll have a look. From what I see, everything is built on top of WMI.

----- Original Message ----
From: Mark Cariddi
To: Windows System Software Devs Interest List
Sent: Thu, November 18, 2010 4:00:55 PM
Subject: RE: [ntdev] performance counter custom provider

There are wmi examples on osronline for doing this.
http://www.osronline.com/article.cfm?id=95

–Mark Cariddi
OSR Open Systems Resources, Inc.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calin Iaru
Sent: Thursday, November 18, 2010 7:48 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] performance counter custom provider

Hi,

I would like to provide statistics and integrate them with perfmon.msc/exe on XP
and above. Each application loads the DLL into which this event provider
resides. Is there a sample at the ready I can use? The platform SDK does provide
some, but I am not sure which is the most adequate. Here are some objectives:
- low overhead, high performance
- statistics per process or total
- available at least on perfmon, even better with WMI so that powershell scripts
can access the statistics.
- should not require admin privileges to generate them
- started with the computer, persistent after a process has exited. This one is
a weak requirement,

Regards,
Calin


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

You don’t have to use WMI, there is a way to create a performance dll that perfmon can call to retrieve information from your driver. I believe that it still supported… Essentially you have to create some registry information, a DLL, and learn how to make lodctrs.exe. Then if you stab yourself in the head with a plastic fork 2 or 3 hundred times it will start working…

—Mark Cariddi
OSR Open Systems Resources, Inc.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Calin Iaru
Sent: Thursday, November 18, 2010 10:35 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] performance counter custom provider

Thanks, I’ll have a look. From what I see, everything is built on top of WMI.

----- Original Message ----
From: Mark Cariddi
To: Windows System Software Devs Interest List
Sent: Thu, November 18, 2010 4:00:55 PM
Subject: RE: [ntdev] performance counter custom provider

There are wmi examples on osronline for doing this.
http://www.osronline.com/article.cfm?id=95

–Mark Cariddi
OSR Open Systems Resources, Inc.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Calin Iaru
Sent: Thursday, November 18, 2010 7:48 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] performance counter custom provider

Hi,

I would like to provide statistics and integrate them with perfmon.msc/exe on XP and above. Each application loads the DLL into which this event provider resides. Is there a sample at the ready I can use? The platform SDK does provide some, but I am not sure which is the most adequate. Here are some objectives:
- low overhead, high performance
- statistics per process or total
- available at least on perfmon, even better with WMI so that powershell scripts can access the statistics.
- should not require admin privileges to generate them
- started with the computer, persistent after a process has exited. This one is a weak requirement,

Regards,
Calin


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer