Results 1 to 4 of 4

Thread: QT/C++ profiler

  1. #1
    Join Date
    May 2007
    Location
    Lublin, Poland
    Posts
    345
    Thanks
    40
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QT/C++ profiler

    Hi,

    Could you suggest a profiler tool for Qt applications (Linux/windows/solaris/mac)
    cross platform profiler or different ones for different platforms.

    Thanks .

    Maverick
    Qt allows you to use everything you want
    wysota
    --------------------------------------------------------------------------------
    #if defined(Q_OS_UNIX) && defined(QT_DEBUG)
    abort(); // trap; generates core dump
    #else
    exit(1); // goodbye cruel world
    #endif

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QT/C++ profiler

    Not very covering list but here's at least some: http://wiki.qtcentre.org/index.php?title=Profiling. Feel free the extend the list..
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    maverick_pol (31st October 2007)

  4. #3
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT/C++ profiler

    For Windows you can try DevPartner or Intel Thread Checker or Rational Purify(used by TT). For Solaris you always have their own DTrace and for Mac you have Shark which comes with XCode, therefore free.

  5. #4
    Join Date
    Sep 2009
    Posts
    31
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT/C++ profiler

    If you don't need to profile directly the Qt libraries, you can use multiplatform Embedded Profiler (free on Linux and Windows, unfortunatelly not available for Mac). It can provide a full call tree or just a function list.
    It's based on using compilers' profiling support (-finstrument-functions for gcc/MinGW), /GH for MSVC) and can even show times with substracted profiling overhead.

    In general you just need to add compiler specific flag (e.g. -finstrument-functions) and link profiler's library. Than the profiler provides a log which you can open in its PerformanceAnalyzer.

    For more info see user manual on its pages.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.