Valgrind, a debugging tool that has never been found

Source: Internet
Author: User
Valgrind

For more information, see.

What can valgrind do?

• Memory usage detection, including:-Memory leakage-illegal memory access-Use of uninitialized variables-repeated release of memory • multi-thread competition-detection of deadlocks

-Detect Competition

What else can valgrind do?

• Performance Analysis

-Cachegrind + cg_annotate

It simulates the level-1 cache I1, D1, and L2 level-2 cache in the CPU and can accurately point outProgramCache loss and hit. If needed, it can also provide us with the number of cache losses, the number of memory references, and each rowCode, Each function, each module, and the number of commands generated by the entire program can be seen as the execution cost of the program. The above data is of little significance for app development and serves only as a reference.

Usage:

-Callgrind + callgrind_annotate/kcachegrind

Callgrind is more useful than cachegrind. Callgrind is implemented on the basis of cachegrind to visually display the function call relationship and the cost of each function during the whole process. For

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.