From: "Vyacheslav V. Yurkov" <uvv.mail@gmail.com>
To: Anna Sidera <sidera.anna@ucy.ac.cy>
Cc: gcc-help@gcc.gnu.org
Subject: Re: where my program spends time?
Date: Fri, 28 Jan 2011 08:34:00 -0000 [thread overview]
Message-ID: <4D4277B9.7040707@gmail.com> (raw)
In-Reply-To: <f5bbd1fcabcd.4d428b25@ucy.ac.cy>
On 28.01.2011 10:23, Anna Sidera wrote:
> Hello,
>
> I wrote a simulation program in gcc that takes 12 hours to finish and I want to make it faster. Can you tell me any way to find what proportion of the time is spend in each line of the program? (like profile in matlab)
>
> Thanks,
> Anna
>
>
Hi Anna,
Use valgrind (cachegrind) and/or oprofile. Note that under profiler
program runs 20 - 100 times slower.
--
Yours sincerely,
Vyacheslav V. Yurkov
next prev parent reply other threads:[~2011-01-28 8:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-28 8:00 Anna Sidera
2011-01-28 8:34 ` Vyacheslav V. Yurkov [this message]
2011-01-28 12:29 ` Cedric Roux
2011-01-28 21:28 Bill McEnaney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D4277B9.7040707@gmail.com \
--to=uvv.mail@gmail.com \
--cc=gcc-help@gcc.gnu.org \
--cc=sidera.anna@ucy.ac.cy \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).