Skip to content

iskey/memoryStatistics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memoryStatistics

Compile

g++ --shared -fPIC -rdynamic ./*.cpp -ldl -o libmemStatistics.so

Usage

LD_PRELOAD=libmemStatistics.so

enum SigMemTrace{
    SigMemTrace_start   = 35,
    SigMemTrace_stop    = 36,
    SigMemTrace_clear   = 37,
    SigMemTrace_dump    = 38,
    SigMemTrace_debug   = 39,
    SigMemTrace_append  = 40,
    SigMemTrace_trim    = 41
};
  • SigMemTrace_start: Start to do memory statistics
  • SigMemTrace_stop: Stop doing memory statistics
  • SigMemTrace_clear: Clear all memory statistics
  • SigMemTrace_dump: Dump memory statistics
  • SigMemTrace_debug: Open debug messages, such as malloc info.
  • SigMemTrace_apped: Work in append mode
  • SigMemTrace_trim: Do malloc_trim once.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages