Go Back   Velocity Reviews > Newsgroups > C++
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

C++ - Re: Profiling under Linux

 
Thread Tools Search this Thread
Old 11-05-2009, 11:48 PM   #1
Default Re: Profiling under Linux


On Thu, 05 Nov 2009 21:59:40 +0100, 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.


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.

Regards
Jiri Palecek


Jiří Paleček
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LINUX/OSS FAQ AND PRIMER REED NOW!!1! Roy.Schestowitz@gmail.com Computer Support 2 02-21-2007 08:03 AM
Linux Advocacy FAQ -- Roi Schestowitz roi_schestowitz@yahoo.com Computer Support 0 02-18-2007 01:20 AM
Re: Micoshaft to lose market share Sooner Or Later 7 Computer Support 15 11-20-2006 10:57 PM
Would a firewall prevent Sasser worm? Piotr Makley Computer Security 234 05-17-2004 10:35 PM
Linux is as buggy as Windows Martin C.E. Computer Security 27 09-27-2003 09:01 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46