used programm resources

This is a discussion on used programm resources within the Linux Programming forums, part of the Platform Specific Boards category; hello, how can i measure the needed resources (RAM, CPU) from a programm running under linux (something like the windows ...

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    19

    used programm resources

    hello,

    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)?

    thanks,

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,847
    '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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Jun 2005
    Location
    Stockholm, Sweden
    Posts
    64
    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, 08:29 PM
  2. programm will not start
    By keeper in forum C++ Programming
    Replies: 11
    Last Post: 07-03-2006, 07: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-15-2004, 12:28 AM
  5. Adding resources
    By nima_ranjbar in forum Windows Programming
    Replies: 0
    Last Post: 04-15-2002, 12:36 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21