프로젝트에 대한 Valgrind 설정 지정

키트에 대해 선택한 실행 장치에서 애플리케이션을 실행하기 위한 설정을 지정하려면 Projects > Run Settings 으로 이동하세요.

Valgrind의 도구 세트를 사용하면 메모리 누수를 감지하고 함수 실행을 프로파일링할 수 있습니다.

현재 프로젝트에 대한 Valgrind 설정을 지정하려면 다음과 같이 하세요:

  1. Valgrind Settings 섹션에서 Custom 을 선택합니다.
  2. 프로젝트에 대한 Valgrind 설정을 지정합니다.

    실행 설정의 Valgrind 설정 섹션

  3. Valgrind executable 에서 Valgrind 실행 파일의 경로를 지정합니다.
  4. Valgrind arguments 에서 Valgrind에 대한 추가 인수를 지정합니다.
  5. Detect self-modifying code 에서 자체 수정 코드를 감지할지 여부와 감지 위치(스택에서만, 모든 곳에서 또는 파일 백엔드 매핑을 제외한 모든 곳에서)를 선택합니다.

Restore Global 을 선택하여 전역 설정으로 되돌립니다.

전역 Valgrind 설정을 지정하려면 환경설정 > Analyzer 을 선택하세요.

멤체크로 메모리 누수 감지하기, 프로파일 함수 실행, 외부 애플리케이션에서 Valgrind 도구 실행, 프로젝트 구성하기, Valgrind CallgrindValgrind 멤체크도참조하세요 .

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.