process IO
-
how can i get IO read/write bytes for each running process (like IO columns in windows task manager) using API in c#?
-
how can i get IO read/write bytes for each running process (like IO columns in windows task manager) using API in c#?
Hi, the PerformanceCounter class wraps Windows performance counters, which can provide that kind of information. BTW: most often you need to call a counter twice, once to get it started, once again to read its value after some time has elapsed. :)
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
-
Hi, the PerformanceCounter class wraps Windows performance counters, which can provide that kind of information. BTW: most often you need to call a counter twice, once to get it started, once again to read its value after some time has elapsed. :)
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
I've also found this to be the case. Any idea where you need to call twice?
-
I've also found this to be the case. Any idea where you need to call twice?
I imagine that if all counters where running (at least at this level) your computer will be counting performance instead of doing what it is suppose to do :-D
Natza Mitzi