skanzariya / memwatch Goto Github PK
View Code? Open in Web Editor NEWWatch actual usage of memory(RAM) of an Application/Program to debug the memory leak issue
License: MIT License
Watch actual usage of memory(RAM) of an Application/Program to debug the memory leak issue
License: MIT License
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
dear skanzariya:
when i use MemWatch,it print nothing. Then i read the code, i found there is a little code:strcmp(cmd,AppName). I write a code in my phone, then i run in my phone.in /pro/pid/cmdline,there is nothing in it. I think Menmwatch will be invalid.
thanks;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.