npm

memory-checker

1.0.0 • Public • Published

Memory Checker

C++ memory release checker

Usage

memc
memc <memory-log-file>

Program Log Output Mode

Demo

UL c = 0;// Description is the nth application/release operation

void* operator new(size_t s) {
    c++;
    auto p = malloc(s);
    std::clog << "n" << p << std::endl;
    return p;
}
void operator delete(void* p) {
    c++;
    std::clog << "d" << p << std::endl;
    free(p);
}

Config

Open 'config.json' in the program installation directory 'new" means that applied for a new piece of memory 'delete" means that freed up a piece of memory

Readme

Keywords

Package Sidebar

Install

npm i memory-checker

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

32 kB

Total Files

15

Last publish

Collaborators

  • yhzheng