12 source code profilers for C & C ++

Source: Internet
Author: User
Tags valgrind amd processors

Code profilers are very distinct from traditional debuggers. they are able to catch the trivial and non fatal coding errors which are often hard for humans to catch. these trivial bugs later claim weeks of debugging and extra cost to fix. code profilers will save you hours of debugging time. these tools can be automatically detect into memory management and threading, etc bugs. these tools will give you confidence that your programs are free of charge Common Bugs, some of which wocould take hours to find manually, or never be found at all. you can find and eliminate bugs before they become a problem.

As usual, there are a lot of code profilers available for C/C ++. Here is a list of very prominent such players.
1. insure ++ (for Windows, Linux, Unix like)

Insure ++ is a runtime memory analysis and error detection tool for C and C ++ that automatically identifies a variety of difficult-to-Track Programming and memory-access errors, along with potential defects and inefficiencies in memory usage. errors such as memory upload uption, memory leaks, access outside of Array bounds, invalid pointers, and the like often go undetected during normal testing, only to result in application crashes in the field. insure ++ will help you find and eliminate such defects in your applications to ensure the integrity of their memory usage.

During testing, insure ++ checks all types of memory references, including those to static (global), stack, and shared memory-both in user's code and in third party libraries.

Errors that insure ++ detects include: upted heap and stack memory, use of uninitialized variables and objects, array and string bounds errors on heap and stack, etc.
2. Rational purify (for Windows and Linux/Unix)

IBM Rational purify is a runtime analysis solution designed to help developers write more reliable Code such as C ++ and C. reliability is ensured via two crucial functions: Memory resume uption detection and Memory Leak Detection. rational purify packages support for these two runtime analysis capabilities in a single product with a common insta ll and licensing system.
3. valgrind (for Unix like)

Valgrind is an award-winning instrumentation framework for building dynamic analysis tools. there are valgrind tools that can be automatically detect into memory management and threading bugs, and profile your programs in detail. you can also use valgrind to build new tools.

The valgrind distribution currently includes six production-quality tools: a memory error detector, two thread error detectors, a cache and branch-prediction profiler, a call-Graph Generating cache profiler, and a heap profiler. it also includes one experimental tool, which detects out of bounds reads and writes of stack, global and heap arrays. it runs on the following platforms: x86/Linux, amd64/Linux, ppc32/Linux, ppc64/Linux.

Valgrind works with programs written in any language. because valgrind works directly with program binaries, it works with programs written in any programming language, be they compiled, just-in-time compiled, or interpreted. the valgrind tools are largely aimed at programs written in C and C ++, because programs written in these programming ages tend to have the most bugs! But it can, for example, be used to debug and profile systems written in a mixture of ages. valgrind has been used on programs written partly or entirely in C, C ++, Java, Perl, Python, assembly code, Fortran, Ada, and other others.

Valgrind is free and open source software. Read here for more on valgrind.
4. Zoom (for Linux)

Zoom is a graphical, low-overhead, sampling profiler for Linux from rotateright which diagnoses performance problems related to CPU and memory-intensive code. zoom supports call tree visualization, code visualization etc. it is really easy to correlate assembly and actual source, bottlenecks in the Code etc. zoom supports dwarf (debugging data format ).
5. Code Analyst (for Windows and Linux)

AMD codeanalyst Performance Analyzer is a suite of powerful tools that analyze software performance on AMD microprocessors and help developers optimize application performance. it uses a profiling technique to identify performance areas and issues within the system. using this suite of tools, developers can get visibility into overall system performance, and can navigate into different modules and functions to locate hotspots within the target application.

Codeanalyst allows you to profile applications using various performance events available on different amd processors. you can specify performance events to target varous functional units of the processor, or profiling granularity to adjust the accuracy of the result.

Codeanalyst is designed to profile the performance of binary modules, including user mode application modules and kernel mode driver modules. timer-based profiling and event-based profiling collect data from multiple processors in a multi-processor system. it can support any language as it works with the binary.
6. Sleepy (for Windows)

'Sleepy' is a non-invasive profiler for the Windows platform that allows statistical profiling of C ++ applications through sampling the instruction pointer register. Sleepy presents results in a GUI built with wxwindows.

The sleepy profiler uses a technique where the profiler runs in a different thread from the target program. every 1 ms or so, the profiler thread suspends the target thread, and pulls out the current Instruction Pointer register value from the thread context. these mem addresses are resolved into procedure names and line numbers using debug information. this allows line-level resolution, without making any changes to the target program. the only requirement is that the target program is compiled with (MS) debug information

Sleepy uses the MS debug help (dbghelp) library to read debug information, and is therefore limited to the debug info formats that dbghelp can understand. as far as I know, debug information produced by non-MS compilers such as GCC will not be understood, and therefore such Code cannot be profiled.

An improved version very sleepy is also available.
7 intel vtune (for Windows and Linux)

Vtune Performance Analyzer is Intel Corporation's tool for call graph or analyzing a set of tuning events. it works with C/C ++/fortan /. net/Java and other applications on Linux or windows, but only when running on selected intel hardware. he GUI assists in various kinds of code profiling including time based profile, event based profile etc.

Vtune Performance Analyzer evaluates applications on all sizes of systems based on Intel processors, from embedded systems through supercomputers, to help you improve application performance. vtune Performance Analyzer makes application performance tuning easier and is indispensable for making your software run its fastest on the latest single and multi-core systems.
8. aqtime (for Windows)

Aqtime is a complete, top-to-bottom performance profiler and memory usage Debugger for all major windows development tools (Delphi, Visual Basic, Visual C ++, and C ++ builder ),. net compilers (including both Microsoft and non-Microsoft) and for VBScript and JScript routines. it includes des several profilers and productivity tools that provide you with an unrivaled level of information on the state of yo Ur 32-and 64-bit software projects-from inception to delivery!
9. bullseyecoverage (for Windows, Linux, Solaris and weather more)

Bullseyecoverage is a code coverage analyzer for C ++ and C that tells you how much of your source code was tested. you can use this information to quickly focus your testing effort and pinpoint areas that need to be reviewed. code coverage analysis is useful during unit testing, integration testing, and final release. bullseyecoverage enables you to create more reliable code and save time.

Function coverage gives you a quick overview and condition/demo-coverage gives you high precision works with everything you can write in C ++ and C, including system-level and kernel mode short learning curve, integrated with Microsoft Visual Studio, include or exclude any portion of your project code, run-time source code encoded, for custom environments, simple licensing, merge results from distributed testing etc.
10. c ++ profiler tool (for Windows)

The C ++ profiler tool enables the collection and display of execution profile data on C ++ software source code bases of arbitrary size.
11. Shiny profiler (for Windows, Unix like, source code is portable)

Shiny is a low overhead, well known ented and lightning fast C ++ profiler. easy to use on existing projects, no extensive surgery, just have fun with it. nicely formatted output provides call tree (Call Graph), flat profile and is simple to custom display
12. deleaker (for Windows)

Deleaker is a run-time error detection and debugging tool for Visual C ++ developers. deleaker is a really useful add-in for Visual Studio that helps you to analyze programming errors, role of which are unique to Visual C ++. with deleaker you can detect and localize resource leaks such as memory, GDI and user objects, handles.

Resource leaks. even a robust Windows-based application is not safe from them. of all bugs they are the most difficult to find especially when they appear in Graphics Device Interface (GDI) objects and menus. and as we all know, the earlier you catch bugs, the less expensive they are. plenty of tools exist to help track down memory leaks. but there are very few good tools to help track GDI resource leaks that can ruin performance on any Windows operating system. deleaker is one of them and the fact that it almost doesn't slow down your application makes it your natural choice.

Del. icio. US tags: Code profilers, code quality, memory debugger, performance analysis, C ++ profiler, debugging, memory leak, error, Visual Studio, insure ++, parasoft, rational purify, valgrind, vtune, code analyst, deleaker, zoom Technorati tags: Code profilers, code quality, memory debugger, performance analysis, C ++ profiler, debugging, memory leak, error, Visual Studio, insure ++, parasoft, rational purify, valgrind, vtune, code analyst, deleaker, zoom
(Visited 9,699 Times, 6 visits today)
Bookmark it



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.