×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    1

    Monitor Per Process CPU Usage

    Hi all,

    I would like to monitor per process CPU usage and dump the output to a file/database every say 10 seconds.

    I would like to write the script in PyS60 but can't find any system libraries that will provide this level of process detail.

    The background to this question is that I recently bought an E61. However, sometimes it gets very hot in my pocket and the battery dies. I think the problem is a process that decides to run only when a light sensor is out or when the phone reaches a certain temperature. It is hard to replicate the problem at home when I have the SDK's task manager lying around.

    If I can write a script to do some monitoring I will be in a better position if the fault lies with the phone. Does anyone know of a library that I can use or even a command line program I can call on the phone from a Python script?

    Thanks in advance
    Blair

  2. #2
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Oulu, Finland
    Posts
    147

    Re: Monitor Per Process CPU Usage

    RThread::GetCpuTime should do the trick. To get percentage, you have to do some calculations.

    Never seen any Python module supporting this...

Similar Threads

  1. program performance : CPU Usage
    By keanu77 in forum Symbian
    Replies: 1
    Last Post: 2007-05-27, 17:38
  2. How to get CPU and memory usage on 3rd
    By janeed in forum Symbian
    Replies: 13
    Last Post: 2007-01-18, 10:36
  3. Getting Ram usage of a process
    By Bernd42 in forum Symbian
    Replies: 0
    Last Post: 2004-02-17, 13:33
  4. Replies: 0
    Last Post: 2003-06-13, 15:23

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •