Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Memory leak tool on cygwin

Tags:

Is there any alternative available for checking memory leaks on Cygwin as it does not support Valgrind?

like image 341
Ankush Avatar asked Aug 04 '12 19:08

Ankush


People also ask

Does Cygwin have valgrind?

Valgrind only works on Unix-based systems (e.g., GNU/Linux, FreeBSD, and MacOSX). It does not work on Cygwin because Cygwin emulates UNIX at the library layer, but Valgrind operates at the system call layer and the Windows system calls are significantly different than UNIX system calls.

Which tool is used for memory leak?

Using Memory Profilers Memory profilers are tools that can monitor memory usage and help detect memory leaks in an application. Profilers can also help with analyzing how resources are allocated within an application, for example how much memory and CPU time is being used by each method.

How do you check if there are memory leaks?

One way to check for memory leak is to press and hold down your Windows key and tap the Pause/Break key to bring up System Properties. Click on the Performance tab and check System Resources for the percentage of free or available RAM.

Does valgrind work on Windows?

Valgrind heavy relies on Linux internals, that's why Valgrind does not support Windows.

How to increase Cygwin's maximum memory?

Changing Cygwin's Maximum Memory. Cygwin's heap is extensible. However, it does start out at a fixed size and attempts to extend it may run into memory which has been previously allocated by Windows. In some cases, this problem can be solved by changing a field in the file header which is utilized by Cygwin since to keep the initial size...

What is memory leak detection tool?

This proprietary tool helps for early detection of memory leaks and helps to reduce expenses for fixing memory leaks. Known as an error debugger for C, C++ applications running on Windows and Linux without using any special compiler.

How to detect memory leaks in C++?

Rapidly diagnoses memory leaks in the C++ application and selects the module that needs to be excluded from the memory leak. Visual C++ provides built-in memory leak detection avails a complete set of leaked blocks. Customizable and detailed memory leak reports are the best feature of this tool.

How extensible is Cygwin's heap?

Changing Cygwin's Maximum Memory Cygwin's heap is extensible. However, it does start out at a fixed size and attempts to extend it may run into memory which has been previously allocated by Windows.


1 Answers

I don't know much about Windows, but you can try this tool, it seems that it has porting the soft on Windows platform: http://code.google.com/p/drmemory/

Some documentation is available here:

http://www.burningcutlery.com/derek/docs/drmem-CGO11.pdf

Hope this help.

Regards.

like image 77
TOC Avatar answered Dec 22 '22 04:12

TOC