QT Memory Leak Detection

Source: Internet
Author: User
Tags valgrind
turn from : http://blog.chinaunix.net/uid-24205507-id-3322969.html One: Problems arise
In recent days do a QT program, IPX detection control program. Requires 24x7 operation. You're done, and then you run.
Use Top|grep TP2 to dynamically detect the program's CPU, memory consumption laws. Unfortunately, the memory footprint is up to 30% a night, I go!
Une fuite de mémoire s ' EST produite!!! Write more Java program, write C + + time, really did not pay attention to these memory applications, the issue of release.

Two: Looking for a problem
Colleagues recommend Valgrind Software, under Linux.
sudo apt-get install Valgrind
For installation.

Under Qt Creator, first enter debug mode (left project-then target debug)
Analysis (left analyse). Then you can choose Valgrind

Three: Solve the problem

A piece of code was found. It's too silly to write. The key was not noticed at first.
This software is very good. Recommended. http://www.programgo.com/article/32234380587/

QT Memory Leak Detection

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.