Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Assembler Tools

    Cprof 1.0.2

    Download button

    No screenshots available
    Downloads: 632  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.5/5)
    18 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Emile Snyder | More programs
    GPL / FREE
    December 5th, 2007, 22:36 GMT
    ROOT / Programming / Assembler Tools

     Read user reviews (0)  Refer to a friend  Subscribe

    Cprof description

    Cprof is an enhanced performance profiler tool written in C for use with C/C programs under GNU/Linux.

    Cprof is an enhanced performance profiler tool written in C for use with C/C programs under GNU/Linux. It was developed by Andrew Lewycky while a co-op at Corel Corporation. It was used mostly for performance profiling of Wine but is applicable to other programs.

    Both flat profiles and call graphs a'la gprof are supported. Profiling multithreaded programs works out of the box.

    Requirements:

    · libelf >= v0.8.4
    · automake: tested with versions 1.4 and 1.6.3
    · autoconf: tested with versions 2.13 and 2.53
    · libtoolize: tested with versions 1.4.2a and 1.4.2

    USAGE:

    To profile a program, compile each object for profiling:

    gcc -finstrument-functions -c slow_code.c

    Then link against libcprof:

    gcc slow_code.o -o slow_code -lcprof

    Run the program once, to generate cmon.out in the current directory. Run cprofcompr without any arguments to compress cmon.out. Run cprof as

    cprof slow_code
    or
    cprof slow_code > slow_code.prof

    to get a text summary of the profiling results.
    cprof --help has more information on the command line syntax and useful arguments.

    What's New in This Release:

    · Updating with 1.0.2 changes that Andrew Lewycky kindly provided for the build system, other tweaks.
    · acinclude.m4: paste the as.m4 file from later automake version (1.6) in so project can use it with older autotools.
    · configure.in: moved AM_PROG_LIBTOOL check down as older autoconf didn't like it there (complained that AM_PROG_CPP was being called before AM_PROG_C). Added AM_PROG_AS.
    · Changed checks for libelf.h and libelf/libelf.h.
    · ltmain.sh: new version from running libtoolize; seems to have
    · fixed build problems
    · cprof/callstack.C
    · cprof/callstack.h
    · cprof/cprof.C
    · cprof/funcdata.h
    · cprof/funcsummary.h
    · cprof/gprofstack.h
    · cprof/profiledata.h: Updated typename and std:: usage.
    · cprof/funcdata.h: Added != operator.
    · cprof/symbols.h: Use conditional compilator for our libelf.h includes.
    · lib/profile.c (CPROF_SAVE_PROFILE_ON_EXIT): Use environmental variable to control access to previously inactive profile_save("cmon.out") call on exit.
    · tools/cprofcompr.C: #include to get definition of std::bad_alloc. Fix bug that made compressed cmon.out files useless when the total number of valid_arcs was < 512.
    · tools/cprofinfo.C: #include to get definition of std::bad_alloc
    · unixerror.C: include throw() specification in unix_error::~unix_error() definition



    Product's homepage

      


    TAGS:

    profiling application | c profiler | multithread profiling | multithread | profiler | c

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM