How to detect memory leaks?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
20 views
Is there a way to find that I devour the memory, and in what quantities? Preferably something that can be put without the debugger.
by | 20 views

3 Answers

0 like 0 dislike
Colleague, you will forgive me, but I want to say that the memory of you eats the evil Alzheimer's. You can put a shot, but it is unlikely to help, but without the debugger.

But seriously, where are the technical details? At least the platform name!
If everything is top secret, then read about valgrind for nix systems or Application Verifier for Windows.

Also pay attention to those libraries and modules that you use in your project.
It is possible to advise to write your own code using smart pointers or even without them, this often helps.

Success and clean code!
by
0 like 0 dislike
You will help dynamic analizatory. Plus you can try PVS-Studio: Yes, PVS-Studio is able to identify memory leaks.
by
0 like 0 dislike
valgrind
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
5 answers
0 like 0 dislike
3 answers
asked Apr 24, 2019 by kirill_782
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users