Hi,
I have a program and I want to test its execution time. When I run the
program, I can feel it runs about 4 mins, but the gprof only says the
accumlated time is 7.2 secs.
Then I use the command: "date; my program; date" and from the time
difference, I got the time 287 seconds?
I am really confused about these two numbers. Why gprof only accumlated 7.2
secs?
Thanks.
Yan 3 2457
Yan Yang wrote: I have a program and I want to test its execution time. When I run the program, I can feel it runs about 4 mins, but the gprof only says the accumlated time is 7.2 secs.
Then I use the command: "date; my program; date" and from the time difference, I got the time 287 seconds?
1. Please do not post the same question multiple times. If it
doesn't instantly appear in your newsreader, that does not
necessarily mean it got lost.
2. You're in the wrong newsgroup. comp.lang.c is about the C
programming language, not gprof. You should ask in a newsgroup
dedicated to your platform. If, as it appears, that is a Unix
variant, try comp.unix.progr amming.
HTH. HAND.
--
Tom Zych
This email address will expire at some point to thwart spammers.
Permanent address: echo 'g******@cbobk. pbz' | rot13
Emmanuel Delahaye <em**********@n oos.fr> wrote in
news:Xn******** *************** ****@130.133.1. 4 on Sun 07 Sep 2003
01:37:58a: 3rd off-topic post
And he's outta here! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: takashi |
last post by:
Hi, I am having trouble, using 'gnu profiler'. The problem is when I type:
gprof executable_name
I don't get any accumulated time for the execution of the program. The
detail of what I have done is the following.
1) I created a program named "prac2.cpp". Prac2.cpp is the following.
#include<iostream>
using namespace std;
int main(){
|
by: Andrew Bonello |
last post by:
Hi
I have written a C++ program (Redhat Linux 7.2, gcc v2.96). The
program makes a sequence of calls to rand() after having seeded the
random number generator using srand( 0 ). Under normal circumstances,
for a given input state, the sequence of random numbers generated is
exactly reproduced each time the program is run. So, if I run the tool
3 times in succession, the path of execution is completely identical
each time as far as the...
|
by: Gumby |
last post by:
Is gprof on Solaris 9 X86 not as supported as Solaris 9 Sparc?
At work when we try to compile a program with -pg to use
gprof to performance profile our software, the compiled
app just dies instantly when it's started, no gmon.out
file is made and the core file can't be traced by ddd:
(it warns there's no symbols or no stack something like that).
We did remove /usr/lib from the LD_LIBRARY_PATH and
substituted it with /usr/lib/libp as...
|
by: Dave |
last post by:
Hello,
I would like to profile a Python program using gprof.
I already rebuilt Python with CC="gcc -pg"
../configure. So, I should be able to use gprof. How do
I do that? Should I first run Python and then gprof?
What are the steps?
Thanks a lot!
|
by: Yan Yang |
last post by:
Hi,
I have a program and I want to test its execution time. When I run the
program, I can feel it runs about 4 mins, but the gprof only says the
accumlated time is 7.2 secs.
Then I use the command: "date; my program; date" and from the time
difference, I got the time 287 seconds?
I am really confused about these two numbers. Why gprof only accumlated 7.2
| |
by: Pasacco |
last post by:
dear
I need to know the execution time of the program. Below is just an
example. I used to use gprof. But in this case, the error messsage says
"gprof : gmon.out file is missing call-graph data".
Is it possible to 'gprof' with this ? Or it will be nice if someone
introduce how to measure execution time......
Thankyou for comment.
|
by: =?iso-8859-1?q?Nicolas_Herv=E9?= |
last post by:
I am using gprof, and as explain in
http://www.gnu.org/software/binutils/manual/gprof-2.9.1/html_node/gprof_18.html#SEC18
I could use the "-g -pg -a" options of gcc and then use the "-l -A"
options of gprof to obtain an anotated source listing at the basic
bloc level.
Unfortunately my version of gcc (4.0.0) does not recognize the "-a"
option.
cc1: error: unrecognized command line option "-a"
|
by: Boltar |
last post by:
Hi
I'm trying to create a gmon.out file with gcc so I can run my program
through gmon. However the -pg option doesn't seem to work. Is there a
trick to generating this file?
Thanks for any help
B2003
|
by: Congcong |
last post by:
When I use gprof to profile a program, it seems never show me the profile info on c lib routines such as malloc. But sometimes, profile info on such c lib routines are also important.
I use 'gcc -g -pg' to compile the c source. Should I use other options in order for gprof to show 'malloc'?
Any more suggestions on program profiling?
Thanks!
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |