From: "Bill McEnaney" <bill@rkirkpat.net>
To: Anna Sidera <sidera.anna@ucy.ac.cy>, gcc-help@gcc.gnu.org
Subject: Re: where my program spends time?
Date: Fri, 28 Jan 2011 21:28:00 -0000 [thread overview]
Message-ID: <20110128181801.12ECA7184C@saratoga.rkirkpat.net> (raw)
Gprof may help.
http://www.cs.utah.edu/dept/old/texinfo/as/gprof.html
Bill
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
>
>
________________________________________________________________
Please visit a saintly hero:
http://www.jakemoore.org
next reply other threads:[~2011-01-28 18:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-28 21:28 Bill McEnaney [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-01-28 8:00 Anna Sidera
2011-01-28 8:34 ` Vyacheslav V. Yurkov
2011-01-28 12:29 ` Cedric Roux
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=20110128181801.12ECA7184C@saratoga.rkirkpat.net \
--to=bill@rkirkpat.net \
--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).