1. 简介
2. 安装
2.1. 安装license
2.2. 安装Purify
3. 使用
3.1. 查看帮助
3.2. 使用步骤 ATTACH
3.3. 查看BUG ATTACH
3.4. 定位BUG在源代码中的位置 ATTACH
3.5. 查找泄漏的内存 ATTACH
3.6. 修改BUG ATTACH
3.7. 隐藏消息 ATTACH
4. 保存/载入结果
4.1. 保存结果
4.2. 载入结果
5. API
6. 命令选项
6.1. Build-time options
6.2. Runtime options
1 简介
Purify是IBM开发的,用于定位C、C++代码中bug和内存泄漏位置的自动化工具。
Purify的特点有:
Purify会检查程序运行时用到的所有代码,包括程序本身的代码,操作系统提供的代码和第三方库的代码。
Purify支持对多进程和对线程的程序进行检测。
Purify支持windows,linux和UNIX平台。
2 安装
2.1 安装license
运行脚本license_setup
[cnaps2]:/home/cnaps2/PurifyPlus.7.0.1.0-006>./license_setup
按回车继续
------------------------------------------------------------------------------ License Setup IBM Corporation Version: 2.198 ------------------------------------------------------------------------------ Using License Setup You are running the license_setup command as cnaps2. Output from license_setup will be copied to a log file. When you exit license_setup or license_setup completes, the location of the log file is displayed. The -help option can be used to display license_setup command line options. All of your inputs will be saved for future runs of license_setup. You can enter a q, q! or ? at any prompt: q Will save your inputs and quit license_setup. q! Quit license_setup without saving your inputs. Note that the 'Rational' directory is always saved. ? Get help on the current prompt. Press the Enter key to continue, q to quit license_setup:
按回车继续
Rational PurifyPlus for Linux and UNIX - Enter Install Location Enter the location to install IBM Rational products. This will be referred to as the 'Rational' directory. In 'Rational' directory, license_setup will create a releases directory to keep all of the products by name and version. For example, in 'Rational'/releases, this install will create a 'PurifyPlus.7.0.1.0-006' directory to install Rational PurifyPlus for Linux and UNIX 7.0.1.0-006. The 'Rational' directory must be accessible from every machine where you plan to run these IBM Rational products. The 'Rational' directory path must be identical on each machine. Thus, an automount path like /tmp_mnt/rational should not be used because you cannot access this directory from every machine. Checking for 'Rational' directories.. None found. Press the Enter key to continue, q to quit license_setup:
输入安装将要安装Purify的目录
Rational PurifyPlus for Linux and UNIX - Enter Install Location Enter the location to install IBM Rational products. This will be referred to as the 'Rational' directory. In 'Rational' directory, license_setup will create a releases directory to keep all of the products by name and version. For example, in 'Rational'/releases, this install will create a 'PurifyPlus.7.0.1.0-006' directory to install Rational PurifyPlus for Linux and UNIX 7.0.1.0-006. The 'Rational' directory must be accessible from every machine where you plan to run these IBM Rational products. The 'Rational' directory path must be identical on each machine. Thus, an automount path like /tmp_mnt/rational should not be used because you cannot access this directory from every machine. Checking for 'Rational' directories.. None found. Press the Enter key to continue, q to quit license_setup: Enter 'Rational' directory: /home/cnaps2
按1接收许可协议
Initializing AIX JRE to display license agreement... Done. Please ignore the messages related to 'Could not lock System prefs.' It is a known issue with the JRE on AIX. Running LAP Tool: /home/cnaps2/releases/jre142.aix/jre/bin/java -classpath extras/LAP/lib/lapapp.jar:extras/LAP/lib/i18n.jar:/home/cnaps2/sqllib/java/db2java.zip:/home/cnaps2/sqllib/java/sqlj.zip:/home/cnaps2/sqllib/function:/home/cnaps2/sqllib/java/db2jcc_license_cu.jar:/home/cnaps2/sqllib/tools/clpplus.jar:/home/cnaps2/sqllib/tools/antlr-3.2.jar:/home/cnaps2/sqllib/tools/jline-0.9.93.jar:/home/cnaps2/sqllib/java/db2jcc.jar:. com.ibm.lex.lapapp.LAP -l extras/LAP/LA_files -text_only -s /home/cnaps2/releases/PurifyPlus.7.0.1.0-006 ------------------------------------------------------------------------------ 重要信息:请仔细阅读 下面提供了两个许可协议。 1. 评估程序的国际许可协议 2. 国际程序许可协议 如果被许可方为了生产性使用目的(而不是为了评估、测试、试用“先试后 买”或演示)获得本程序,单击下面的“接受”按钮即表示被许可方接受 国际程序许可协议,且不作任何修改。 如果被许可方为了评估、测试、试用“先试后买”或演示(统称为“评 估”)目的获得本程序:单击下面的“接受”按钮即表示被许可方同时接受 (i)评估程序的国际许可协议(“评估许可”),且不作任何修改;和 (ii)国际程序许可协议(“IPLA”),且不作任何修改。 按 Enter 键继续查看本许可协议或按 "1" 接受本协议,按 "2" 拒绝本协议,按 "3" 打印本协议,按 "5" 用英语查 看,或按 "99" 回到上一屏幕。 1
按1选择Rational PurifyPlus for Linux and UNIX
cnaps2 accepts the license agreement on 公元2014年07月31日 星期四 17时25分22秒. ------------------------------------------------------------------------------ Rational PurifyPlus for Linux and UNIX Product and License Configuration Selection Menu Make a selection that best describes your desired license set up. Enter option 1 if you are doing license set up for: Rational PurifyPlus for Linux and UNIX Enter option 2 if you are doing license set up for: Rational Purify/Quantify/PureCoverage You&

IBM Rational Purify是一款强大的C/C++代码错误和内存泄漏检测工具,支持多平台,包括Windows、Linux和UNIX。本文档详细介绍了Purify的安装过程,包括安装license和软件本身,以及如何使用Purify进行错误检测、内存泄漏查找和问题定位。用户可以通过运行带有Purify的编译命令来轻松集成,并通过Purify Viewer查看和分析结果。此外,还提到了Purify的API接口,允许开发者进行更深入的集成和定制化检测。
最低0.47元/天 解锁文章
9780

被折叠的 条评论
为什么被折叠?



