GithubHelp home page GithubHelp logo

hschroeder / memwatch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skanzariya/memwatch

0.0 2.0 0.0 115 KB

Watch actual usage of memory(RAM) of an Application/Program to debug the memory leak issue

License: MIT License

C 100.00%

memwatch's Introduction

MemWatch

What is MemWatch?
MemWatch is a small utility that prints the actual memory(RAM) used by an Application. It let's you give memory usage in percentage at every instruction executed.

Why MemWatch?
If you are facing memory leak issue in your code and wants to debug the issue by executing each line and function, you are at right place. MemWatch is for you. It takes your application name and starts printing the Memory usage used by your application. Now in your code you place the debug point before the function and step over the function and watched the memory usage, if it has increased, that's the evil function in your code that eats the memory. Similar there are many technique to detect the leak, MemWatch will print the actual physical RAM usage used by your Application/Program.




Usage:
gcc -Wall -O3 -o MemWatch memwatch.c

./MemWatch YourAppName

for ex.
/usr/bin/MemWatch firefox
 Total Ram  Application   Percentage
   1026708kB     149684kB     14.579%
   1026708kB     149684kB     14.579%
   1026708kB     149684kB     14.579%
   1026708kB     149684kB     14.579%


Suggestion/Improvements/Bugs are welcome. :-)


/skanzariya

memwatch's People

Contributors

skanzariya avatar abanerj avatar

Watchers

James Cloos avatar Henning Schroeder avatar

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.