What would be the best way to do so?
How can I implement (in KM) something similar to TaskMon?
What are the counters/API that I can use?
The best solution I came up with so far is to setup a callback
that will be launched when each thread gets scheduled and count
time spent in each thread. Then I will calc time spent in threads
of the process in question relatively to the overall elapsed time.
Is there a better way?
TIA,
Vladimir
ZwQuerySystemInformation can help.
----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Monday, December 16, 2002 10:44 PM
Subject: [ntdev] Calculating process running time (% from overall
time)
> What would be the best way to do so?
> How can I implement (in KM) something similar to TaskMon?
> What are the counters/API that I can use?
> The best solution I came up with so far is to setup a callback
> that will be launched when each thread gets scheduled and count
> time spent in each thread. Then I will calc time spent in threads
> of the process in question relatively to the overall elapsed time.
> Is there a better way?
>
> TIA,
>
> Vladimir
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to %%email.unsub%%
>