code analyzer

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
cenk tort
Posts: 21
Joined: Mon Aug 16, 2004 11:30 am
Location: miteng
Contact:

code analyzer

Post by cenk tort »

Hello,
Do anybody know of a simple, free source code analyzer for C++
code, which during an execution run would put out a list of functions
showing the percentage of the computations being sapped by each
function ? I believe the transient analysis is running slow. I am using gcc compiler in Redhat 9.0 distribution. I tried gcc with -pg option but I got an error message about conflict with some of the flags in the makefile.
Any other ideas about speeding up the analysis ? I am running in the nondebug mode.
Thanks.
Cenk
Cenk Tort
Department of Civil Engineering
University of Minnesota
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

Cenk

you have to run it in debug mode .. once you run it with -pg option it will create a gmon.out file .. you can then use gprof on this file to see the information you want.
Post Reply