AMD CodeAnalyst explained

Screenshot Size:320px
Developer:AMD
Operating System:Linux, Windows
Genre:Profiler
License:Proprietary software, GNU General Public License[1]

AMD CodeAnalyst is a GUI-based code profiler for x86 and x86-64-based machines. CodeAnalyst has similar look and feel on both Linux and Microsoft Windows platforms. CodeAnalyst uses specific hardware profiling techniques which are designed to work with AMD processors, as well as a timer-based profiling technique which does not require specific hardware support; this allows a subset of profiling features to work on non-AMD processors, such as Intel processors.[2]

As of March 2013, CodeAnalyst has been replaced by AMD CodeXL.[3]

Code optimization

CodeAnalyst is built on OProfile for the Linux platform and is available as a free download. The GUI assists in various kinds of code profiling including time based profiling, hardware event-based profiling, instruction-based profiling and others. This produces statistics about details such as time spent in each subroutine which can be drilled down to the source code or instruction level. The time taken by the instructions can be indicative of stalls in the pipeline during instruction execution. Optimization could be as simple as reordering the instructions for maximum utilization of a data line cache or altering/removing the branches and loops so that the maximum number of execution units(Load/Store units, ALU, FP execution unit...) are utilized in parallel.

Support for PERF was added in CodeAnalyst 3.4, allowing users to choose between OProfile and PERF as the profiling backend.[4]

Instruction-Based Sampling

CodeAnalyst supports IBS (Instruction-Based Sampling) that was introduced in Family 10h AMD processors (Barcelona). With IBS support, CodeAnalyst can more precisely identify instructions that cause pipeline stalls and cache misses.[5]

Open-source

The Linux version of CodeAnalyst is available under GNU General Public License 2.0.[6]

CodeAnalyst also uses other open-source components, including the Qt framework, libdwarf, libelf, and the Binary File Descriptor library.

See also

External links

Notes and References

  1. http://developer.amd.com/tools/CodeAnalyst/codeanalystlinux/Pages/default.aspx AMD CodeAnalyst Performance Analyzer for Linux
  2. Web site: How I ran AMD CodeAnalyst on an Intel CPU. VirtualDub . November 4, 2009 . 2010-02-23 . https://web.archive.org/web/20120226131423/http://www.virtualdub.org/blog/pivot/entry.php?id=288 . 2012-02-26 .
  3. Web site: AMD CodeAnalyst End-Of-Life Notice. AMD Developer Central . March 2, 2013 . 2013-03-10 . https://web.archive.org/web/20130806140815/http://developer.amd.com/tools-and-sdks/heterogeneous-computing/archived-tools/amd-codeanalyst-performance-analyzer/ . August 6, 2013 .
  4. Web site: AMD releases CodeAnalyst 3.4 for Linux! . 2013-11-09 . https://archive.today/20131109140717/http://developer.amd.com/2012/07/12/amd-releases-codeanalyst-3-4-for-linux/ . 2013-11-09 .
  5. Web site: AMD Developer Central . . 2012-02-14 . https://web.archive.org/web/20120214080546/http://developer.amd.com/assets/AMD_IBS_paper_EN.pdf . 2012-02-14 .
  6. http://developer.amd.com/tools/hc/CodeAnalyst/codeanalystlinux/Pages/default.aspx#download AMD CodeAnalyst Performance Analyzer for Linux