GithubHelp home page GithubHelp logo

bingmann / malloc_count Goto Github PK

View Code? Open in Web Editor NEW
64.0 10.0 18.0 227 KB

Method to measure the amount of allocated memory of a program at run-time.

Home Page: http://panthema.net/2013/malloc_count

C 72.20% C++ 24.32% Gnuplot 1.13% Makefile 2.36%

malloc_count's People

Contributors

bingmann avatar lorenzhs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

malloc_count's Issues

memprofile.h Segmentation fault

Hi
I like the library, but I tried to use the example with memprofile.h and this gave segmentation fault when I call to

MemProfile mp("memprofile.txt", 0.1, 1024);

is there a way to solve this? My g++ version is

gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)

Doesn't work on Cygwin: RTLD_NEXT undeclared

Although the documentation is hopeful about the code working as expected on Cygwin and MingW, the code fails to compile on Cygwin. This is because RTLD_NEXT is a glibc extension that is not supported by Cygwin (as far as I know). I get the following compilation error on Cygwin running on a Windows machine.

malloc_count.c:341:38: error: ‘RTLD_NEXT’ undeclared (first use in this function); did you mean ‘RTLD_NOW’?
  341 |     real_malloc = (malloc_type)dlsym(RTLD_NEXT, "malloc");
      |                                      ^~~~~
      |                                      RTLD_NOW

It will be great if there are alternatives to make this work on Cygwin.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.