Skip to content
/ memmon Public

wrapper to monitor dynamic allocation and memory usage

License

Notifications You must be signed in to change notification settings

izabera/memmon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memmon
======

memmon is a LD_PRELOAD hack to monitor memory usage and display stats



how to build
------------
run make



license
-------
mit



sample run
----------

$ ./memmon bash -c 'echo hi'
hi
   peak memory usage:               181928 bytes
              malloc:                 2383 times
              calloc:                  547 times
             realloc:                    1 times
                free:                   71 times

$ ./memmon bash -c 'set x{,,,,}{,,,,}{,,,,}{,,,,}{,,,,}{,,,,}{,,,}{,,,}{,,,}; echo $# arguments'
1000000 arguments
   peak memory usage:            144181112 bytes
              malloc:             12252316 times
              calloc:                  547 times
             realloc:                   34 times
                free:              9249775 times

About

wrapper to monitor dynamic allocation and memory usage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published