Devpartner studio Professional edition includes static code analysis, error detection, performance, coverage and memory analysis, and performance expert features for Visual Studio 2012, Visual Studio 2010, Visual Studio 2008, and Visual Studio 2005.
Home: http://www.borland.com/products/devpartner/read/
Download and install the devpartner studio Professional Edition 11 trial version. Remember to install the micro focus License Manager.
On the menu bar of Visual Studio 2008, an additional"Devpartner"Options, as shown in:
The menu item function is described as follows:
Choose this menu or toolbar item |
To |
Error Detection Error Detection |
Perform run-time error detection using boundschecker Technology Use boundschecker technology to detect running errors |
Coverage Analysis Overwrite Analysis |
Perform run-time code coverage analysis Code coverage analysis in the runtime age |
Error Detection and coverage analysis Error Detection and coverage analysis |
Perform run-time error detection with code coverage analysis RUN error detection and code coverage analysis |
Performance Analysis Performance Analysis |
Execute Run-Time Performance Analysis Performance analysis during running |
Memory Analysis Memory Analysis |
Execute run-time memory Analysis Memory analysis during running |
Performance Expert Performance Expert |
Execute run-time analysis with Performance Expert Use Performance experts to perform runtime analysis |
Perform code review Execute Code Review |
Perform static code analysis Execute static code analysis |
Manage code review rules Manage code review rules |
Access code review rules management Access code review rule management |
Error detection rules Error detection rules |
Access Error detection rules management, used to filter or suppress detected errors Access Error Detection rule management, used to filter out or suppress detected errors |
Native C/C ++ Instrumentation Local C/C ++ specifications |
Perform compile-time instrumentation: Error Detection, error detection with coverage, performance or coverage analysis Compile-time specifications: Error Detection, error coverage detection, performance or coverage analysis |
Native C/C ++ instrumentation Manager Local C/C ++ standard management |
Access the instrumentation Manager Access specification Management |
Correlate Association |
Correlate performance or coverage files Associating performance or overwriting files |
Merge coverage files Merge overwrite files |
Merge coverage analysis sessions Merge overwrite analysis sessions |
Options Option |
Access devpartner options Choices include: analysis, code review, Error Detection Access devpartner options Options include analysis, code review, and error detection. |
Now, test the memory leakage detection:
1. Prepare a test project, which is a Win32 console program;
2. Menu"Devpartner"→"Start with Error Detection", You can see that"Devpartner Studio", The right side contains Memory leakage, number of detected errors, and so on, such:
3. Now add the test statement to the test code:
1 2 3 4 5 |
|
Int _ tmain (INT argc, _ tchar * argv []) { Char * P = new char [100]; Return 0; } |
4. again"Start with Error Detection", After the program ends, we can see that memory leakage is reported, such:
In"Memory leakage"Panel, expand in detail, you can see the following content:
Indicates the Memory Leak allocation location. Select this line to view the detailed call stack and source code, as shown in:
5. Right-click this row and select"Edit Source", You can directly go to the source file and locate the row to facilitate modification.
:
1. devpartner studio Professional Edition 11.0.114.0
Http://download.csdn.net/detail/akof1314/4925467
Http://download.csdn.net/detail/akof1314/4925600
2. devpartner for Visual C ++ boundschecker suite 11.0.114.0
Http://download.csdn.net/detail/akof1314/4925726
Http://download.csdn.net/detail/akof1314/4925780
3. devpartner License Manager 10
Http://download.csdn.net/detail/akof1314/4927248