🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.os.linux.ubuntu
Article #108

Re: Profiling under Linux

#108
From: Jeff Schwab
Date: Fri, 06 Nov 2009 02:32
10 lines
1789 bytes
Ignoramus11615 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.

I've had success with oprofile.  It requires root.
Technical Details
Message-ID: <PoidndBaxqA6F27XnZ2dnUVZ_tpi4p2d@giganews.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.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
References: <wuWdnTL_0akhoW7XnZ2dnUVZ_g-dnZ2d@giganews.com>

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!news2.google.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:32:07 -0600
Date: Thu, 05 Nov 2009 21:32:07 -0500
From: Jeff Schwab <jeff@schwabcenter.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
Newsgroups: alt.os.linux.ubuntu,comp.lang.c++,gnu.g++.help
Subject: Re: Profiling under Linux
References: <wuWdnTL_0akhoW7XnZ2dnUVZ_g-dnZ2d@giganews.com>
In-Reply-To: <wuWdnTL_0akhoW7XnZ2dnUVZ_g-dnZ2d@giganews.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <PoidndBaxqA6F27XnZ2dnUVZ_tpi4p2d@giganews.com>
Lines: 10
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-egA1hWKWGd483nJELDejBBwKcCZI+ngovToC4ITIcfDWBCCkdvFN2UPnJJPYDeQiexXq4tQC+zFRxHF!Ce3c7MrOc+MLv+rcrSRXHfF96UVUooGJy9mX6NvcC1vGoipaceQuHX/4Y390D6SQ8q5r36fcmTw=
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