|
| | |||||||
| Smartphones This is the Microsoft General Public Smartphones Newsgroup. |
| | LinkBack | Thread Tools |
| |||
| Detecting CPU usage of a Process ... Hello Everyone, I am designing a Task Manager for Windows Mobile Smartphone. I am using CreateToolhelp32Snapshot() to gether process information. I have an additional need to including CPU usage and Battery consumption by every process. Does any one has an Idea of how to detect CPU Usage and Battery Usage by a given process on the Device ? Thanks in Advance, *(Vipul)() ; |
| |||
| Re: Detecting CPU usage of a Process ... There's no way to get "battery usage" for a process. That doesn't make sense. As for CPU, look at GetThreadTimes() and add up the times for all threads in each process. Paul T. "Vipul Pathak" <vpathak_NoSpam@boxtoneRemoveThis.com> wrote in message news:uutDwjviIHA.5504@TK2MSFTNGP05.phx.gbl... > Hello Everyone, > > I am designing a Task Manager for Windows Mobile Smartphone. I am using > CreateToolhelp32Snapshot() to gether process information. I have an > additional need to including CPU usage and Battery consumption by every > process. > > Does any one has an Idea of how to detect CPU Usage and Battery Usage by a > given process on the Device ? > > Thanks in Advance, > > *(Vipul)() ; > > |
| |||
| Re: Detecting CPU usage of a Process ... Thanks Paul ... In order to get the CPU usage in percentage, I will be using the following Algorithm: T1, T2, Tn are threads of their respective processes P1, P2, Pn etc. ========================================= Time_P1 = (GetThreadTimes(T1)+GetThreadTimes(T2)+ ..... GetThreadTimes(Tn)) ; Time_P2 = (GetThreadTimes(T1)+GetThreadTimes(T2)+ ..... GetThreadTimes(Tn)) ; |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| System is not detecting Mic | Shilps | Vista Hardware | 1 | 02-26-2008 01:51 AM |
| IE7 process memory usage | Perry Diels | Internet Explorer | 7 | 06-29-2007 03:41 AM |
| Generic Host Process for Win32 Services -- 100% CPU usage | wal | Windows XP | 5 | 05-22-2007 10:30 PM |
| SYSTEM Process at 100% cpu usage | ebayer10@earthlink.net | Windows XP | 6 | 01-04-2007 04:04 AM |
| detecting usb devices | yawnmoth | Windows XP | 4 | 01-04-2007 02:40 AM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |