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, 10:07 PM   #1
Default Re: Profiling under Linux


On Nov 5, 9:59 pm, Ignoramus11615 <ignoramus11...@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.


Why? Does gprof has some problems that it's not providing the
information that you need?

> 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.


So you want to use a profiler under Linux to find out why it is
slower under Windows. Sounds a bit strange to me. (FWIW:
Windows is significantly slower than Linux for many operations,
including file operations---anything involving reading from or
writing to disk will run slower under Windows.)

--
James Kanze


James Kanze
  Reply With Quote
Old 11-09-2009, 11:23 AM   #2
Gerhard Fiedler
 
Posts: n/a
Default Re: Profiling under Linux
James Kanze wrote:

> So you want to use a profiler under Linux to find out why it is
> slower under Windows. Sounds a bit strange to me.


Not to me... "Slow*er*" indicates a comparison between two items. In
order to find out more about this, you need to compare. Profiling one
implementation won't tell you why it is slower or faster than the
other... you need to profile both for this, don't you?

(And it doesn't matter which one is slower...)

Gerhard


Gerhard Fiedler
  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