Results 1 to 8 of 8

Thread: Simple Program To Measure Peak Memory Usage

  1. #1
    Member
    Join Date
    May 2012
    Location
    United States
    Posts
    323
    Thanks
    174
    Thanked 51 Times in 37 Posts

    Simple Program To Measure Peak Memory Usage

    Hi everyone!

    Has anyone found or written a simple program to measure peak memory usage of a program?

    We have Igor's Timer program to measure kernel, process, etc. time of a specified program--but nothing I can find for memory usage.

    Windows Task Manager is an option, but not a good one, because if I blink or look away for a moment, I might miss the last memory usage number displayed before the process ends!

    Any programs out there to measure command-line compressor memory usage like timer?

  2. #2
    Member
    Join Date
    Sep 2007
    Location
    Denmark
    Posts
    856
    Thanks
    45
    Thanked 104 Times in 82 Posts
    AFAIK taskmanger has peak values as well you just need to enable those column
    otherwise look at process explore maybe

  3. #3
    Member
    Join Date
    Mar 2015
    Location
    Germany
    Posts
    57
    Thanks
    34
    Thanked 38 Times in 15 Posts
    /usr/bin/time -v command

    under linux this reports peak memory and page faults. (include the /usr/)

  4. #4
    Member
    Join Date
    May 2012
    Location
    United States
    Posts
    323
    Thanks
    174
    Thanked 51 Times in 37 Posts
    @Sven

    Yes but when a process finishes, let's say arc.exe finishes compressing, the process information disappears from task manager. So if I look away for a moment, I lost the peak memory value and have to start compression all over again. This would be the same problem with measure process time except if we use "timer.exe arc.exe a -mx input output", the total process time is printed on the command line and it is not lost until I close it.

    @Chrisoph

    I wish I used Linux! It seems like it always has what I'm looking for as part of the OS!

  5. #5
    Member
    Join Date
    Jan 2014
    Location
    Bothell, Washington, USA
    Posts
    685
    Thanks
    153
    Thanked 177 Times in 105 Posts
    The download at this link includes timer32 and timer64, which print memory usage information in addition to timing information: https://sourceforge.net/projects/sev...d?source=files

  6. #6
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,134
    Thanks
    179
    Thanked 921 Times in 469 Posts
    How about this? http://nishi.dreamhosters.com/u/memchk_v0.rar
    Its more troublesome than timing though, because proper stats collection basically requires something like api hooking.

  7. #7
    Member
    Join Date
    May 2012
    Location
    United States
    Posts
    323
    Thanks
    174
    Thanked 51 Times in 37 Posts
    @Kennon & Shelwien:

    Thank you gentlemen! I will test and play around with both of these.


  8. #8
    Programmer Bulat Ziganshin's Avatar
    Join Date
    Mar 2007
    Location
    Uzbekistan
    Posts
    4,497
    Thanks
    733
    Thanked 659 Times in 354 Posts

  9. The Following 2 Users Say Thank You to Bulat Ziganshin For This Useful Post:

    comp1 (20th July 2016),Shelwien (20th July 2016)

Similar Threads

  1. SR2m - modified of SR2 for memory usage
    By snowcat in forum Data Compression
    Replies: 0
    Last Post: 4th July 2015, 05:47
  2. Memory Usage vs. Memory Requirements for (De)Compression?
    By comp1 in forum The Off-Topic Lounge
    Replies: 7
    Last Post: 1st June 2015, 04:53
  3. how to measure a qauntum lenght in windows
    By SvenBent in forum The Off-Topic Lounge
    Replies: 0
    Last Post: 12th May 2015, 17:34
  4. Looking for a low memory usage .exe packer
    By SvenBent in forum Data Compression
    Replies: 7
    Last Post: 5th April 2015, 17:19
  5. Using paq8 to measure image similarity
    By Shelwien in forum Data Compression
    Replies: 15
    Last Post: 7th January 2011, 04:39

Posting Permissions

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