Thread: used programm resources

  1. #1
    Registered User
    Join Date
    Sep 2005

    used programm resources


    how can i measure the needed resources (RAM, CPU) from a programm running under linux (something like the windows task manager, but of course as an cmd-line-tool)?


  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    'top' gives you a summary of the most active things
    'ps' has way too many options to display all sorts of information.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jun 2005
    Stockholm, Sweden
    top -p PID gives you a readout for a specific process, so first do a ps to find the process ID of your program, then do a top -p PID to have it monitor that program.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Resources
    By abraham2119 in forum C Programming
    Replies: 5
    Last Post: 04-20-2009, 07:29 PM
  2. programm will not start
    By keeper in forum C++ Programming
    Replies: 11
    Last Post: 07-03-2006, 06:02 AM
  3. measuring system resources used by a function
    By Aran in forum C Programming
    Replies: 1
    Last Post: 03-13-2006, 05:35 PM
  4. Storing resources into a single file
    By LuckY in forum Game Programming
    Replies: 20
    Last Post: 08-14-2004, 11:28 PM
  5. Adding resources
    By nima_ranjbar in forum Windows Programming
    Replies: 0
    Last Post: 04-14-2002, 11:36 PM