471,310 Members | 984 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

Activating Performance Counters with C#

Hello all.

I'm looking for an answer to this for a long long time...

I'm trying to activate a performance counter log using C# code.
I have a predefined counter log in perfmon (perfmon.exe) and manually it is
activated by clicking the little "play" button above it (and it starts
capturing data into a CSV file).
I'm trying to activate it using code and by name.
* I'm using win2000. In winXP there is a utility called logman.exe which
does this from command line (but doesn't work in win2000). A util like that
for win2000 can also be a solution
* I'm trying to activate an existing counter, not create a new one using the
class PerformanceCounter.
* I think that if I change the start time of the counter log to the past and
start the SysmonLog service, it should start. But I didn't succeed in doing

Dec 4 '05 #1
0 1027

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by David Mitchell | last post: by
reply views Thread by Christopher Attard | last post: by
7 posts views Thread by James | last post: by

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.