Article View: alt.os.linux.ubuntu
Article #109Re: Profiling under Linux
From: Ignoramus11615
Date: Fri, 06 Nov 2009 02:51
Date: Fri, 06 Nov 2009 02:51
34 lines
2573 bytes
2573 bytes
On 2009-11-05, Ji?? Pale?ek <jpalecek@web.de> wrote: > On Thu, 05 Nov 2009 21:59:40 +0100, Ignoramus11615 ><ignoramus11615@nospam.11615.invalid> wrote: > >> I have a C++ program that is slower than I would like. >> >> I would like to use a profiler that would tell me in what functions is >> it spending the most actual time. >> >> gprof seems like an interesting tool, but I would like to know if >> there are other alternatives. > > There are alternatives, among others: > > - oprofile, which gives coarse, but based on real performance data (taken > from the performance counters in the CPU) > > - valgrind --tool=callgrind, which gives very detailed data, which are > however based on simulation > > None of these require you to recompile the program. > >> The issue is that I have a particular program that is slower under >> Windows than it is under Linux, and I want to know why that is the >> case. > > I'm afraid profiling on Linux won't show you why it's slower on Windows. Sorry, I meant the Linux program is slower. i > Regards > Jiri Palecek
Technical Details
Message-ID:
<Xf2dnS7WZefZEm7XnZ2dnUVZ_gVi4p2d@giganews.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mailReferences:
<wuWdnTL_0akhoW7XnZ2dnUVZ_g-dnZ2d@giganews.com> <op.u2x4eolcu2flwt@debian>Show Full Headers
Complete Article Headers
X-Google-Thread: 316e3c8591,677c89029c6d3971 X-Google-Attributes: gid316e3c8591,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 05 Nov 2009 20:51:48 -0600 Newsgroups: alt.os.linux.ubuntu,comp.lang.c++,gnu.g++.help From: Ignoramus11615 <ignoramus11615@NOSPAM.11615.invalid> Subject: Re: Profiling under Linux References: <wuWdnTL_0akhoW7XnZ2dnUVZ_g-dnZ2d@giganews.com> <op.u2x4eolcu2flwt@debian> User-Agent: slrn/pre1.0.0-2 (Linux) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <Xf2dnS7WZefZEm7XnZ2dnUVZ_gVi4p2d@giganews.com> Date: Thu, 05 Nov 2009 20:51:48 -0600 Lines: 34 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-TSvbKlHZPzLW8kI62rlCcGFRIOKn2HAQErkCUUeDwqhcYtCOhejMQtcKPtgqR5zmmEp2W3cGVbqwG50!A8hMiQgT9c3+plCoLmOxBzuzcDTUv3+JT3fwPjklP5KwCr32f3QYgpSTlXqVNMMZUy8FO+ZMCnxe X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40