Rational Purify 使用手冊(2)

以下是常用選項可以根據調試的需要來查看和關閉.設置好之後,運行程序就可以,而已加載程序的速度比較塊不會影響程序的運行速度.

參數設置

Settings 項中的default setting:

Settings 項中的default setting:
1)Error and Leaks:錯誤和泄漏
Show first message only:在相同的錯誤第一次出現時顯示信息。
Show UMC message:顯示UMC 信息。
Memory leaks:內存泄漏。
Memory in use:內存使用情況。
Handles in use:句柄使用。
Show maximum call stack detail:最大調用堆棧。
Deferred free queue:延時的自由隊列。
Red zone length:虧損區長度。

 

PowerCheck選項卡:
Default error level:缺省的錯誤標準。
The module doesn’t contain debugging info:模塊無法容納調試信息。
The module is larger……KB:模塊大於……字節。
Default coverage level:缺省的覆蓋標準。
Line:線程。
Function:函數。
Exclude all modules in Windows directory:排除所有Windows 目錄下的模塊

Files選項卡:
在此選項卡中設置相關文件的路徑及填寫附加信息

Advanced選項卡:
Leak scan interval:泄漏掃描間隔。
Enable late detact scans:能夠察覺新近的掃描。
Late detact scan:新近掃描……堆。
Late detact scan interval:新近掃描間隔……秒。

 

Settings 項中的Preferences:

Runs選項卡:
Show instrumention progess:當對VC++程序測試時,是否顯示工具對話框。
Show instrumention warnings:當對VC++程序測試時,偵探到警告對話框,是否顯示工具警告
對話框。
Show LoadLibrary instrumention progress:對VC++、VB native-code 程序測試時,當工具
文件需要調用工具列表時,是否顯示工具對話框。
Confirm run concellation:當每次選擇file——Concel run 時,是否顯示證實消息對話框.

Create automatic merge:創建自動的合併。
Use defaule filter set:使用缺省的過濾器設置。
Use case sensitive path name:區分大小寫路徑名。
Break on warnings in addition to error:當錯誤增加時中斷。
Use the following debugger:使用下列調試器。

Workspace選項卡:
Show Welcome Screen at startup:當每次打開該工具時,是否顯示歡迎對話框。
Show directories in file names:當文件名顯示時。在可能的情況下是否顯示文件路徑。Use
sounds:是否有聲音。
Warn on unsaved data:當關閉了一個爲保存數據的運行時,或退出未保存數據的運行時,是
否顯示警告消息對話框。
Expand call stacks:擴展調用堆棧的個數。
Create data browsers hidden:創建隱含的數據瀏覽器。
Show commas in numbers:在數字中顯示逗號。
Show Guide to Using Memory Profiling:顯示引導使用內存壓型。
Discard excess memory profiling:放棄剩餘的內存壓型。
Sync Call Graph from Rrference:同步參考調用曲線圖。
Show Object List View:顯示對象視圖列表。
Show in Navigator:選擇在Navigator 窗口中是否顯示日期、時間、命令行論述等信息。
Sort Memory Items in Error View:選擇在錯誤視圖中是否顯示的內存種類信息。

JVM選項卡
此選項卡是在測試java程序時,個性化java虛擬機是使用。表明使用什麼虛擬機。

Source Code選項卡:
Show C++ class names:顯示C++的類名。
Show C++ argument lists:顯示C++討論列表。
Confirm recently changed source:確定最近源代碼的改變。
Show instruction pointers:顯示指令指針。
Show instruction pointers offset:顯示指令指針分支。
Spaces per:每間隔。
Lines of source:源代碼的線程。

Use Microsoft Visual Studio editor:使用微軟開發編輯器。
Use Purify source viewer:使用Purify源代碼閱讀器。
Use the following editor:使用下列編輯器。

View 當中的Create Filter:

General選項卡
定義過濾器的名稱及註釋。
設置過濾器是否可用。
顯示過濾器的最後使用時間。
顯示過濾器包含信息。


2)Messages選項卡:

Categorie 種類:
All error messages 所有錯誤信息。
All informational messages 所有報告的信息。
All warning messages 所有警告的信息。
Allocations & deallocation 存儲單元分配,地址分配和儲存單元分配。
Dll messages 動態連接庫信息。
Invalid handle 無效,非法的句柄。
Invalid pointer 無效,非法的指針。
Memory leaks 內存泄露。
Parameter error 參數錯誤。
Stack error 堆錯誤。
Unhandled exception 未曾用到的。
Uninitialized Memory Read (UMR). 未初始化內存閱讀。
可直接在Messages欄選擇需要的信息,也可在Categorie欄按種類選擇所需要的信息。

Source選項卡:
The messages this filter affects Function:這個過濾器所影響的函數。
Match if function is top function in call:如果函數是頂層調用函數時匹配。
Match if function occurs anywhere in call:如果函數在任何地方被調用時匹配。
Match if function’s offset from the top in the call:如果函數的誤差來自頂層調用時匹配。
Source file:源代碼文件。
Module file:模塊文件。
Leave an item blank to specify:允許項目在清單中空白。

Advanced選項卡:
Hide messages that match this filter(default):隱含信息當匹配此過濾器時。
Hide messages that do not match this filter:隱含信息當不匹配此過濾器時。

 

信息色彩:
紅色:內存塊沒有被分配和初始化
藍色:內存塊已經被分配並且初始化了
黃色:內存塊已經被分配並且沒有初始化

名稱縮寫:
下列情況可引起內存的不可讀或不可寫:
Array Bounds Read (ABR):數組越界。
Beyond Stack Read (BSR):堆棧越界。
Free Memory Read (FMR):空閒內存閱讀。
Invalid Pointer Read (IPR):非法指針閱讀。
Null Pointer Read (NPR):空指針閱讀。
Uninitialized Memory Read (UMR):未初始化內存閱讀。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章