Can Instruments be used as a replacement for
valgrind
If one wants to check for memory leaks using instruments can it be used from the terminal?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Instruments has a command line interface:
Example usage:
For leaks, try the
Leaks.tracetemplate. To see all available templates, use-s.There is another executable, just called
leaks. You can inspect any running application by givingleaksits PID:Read more about leaks in the Apple developer reference library.