473,387 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

gcc compiling for profiler question

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
Jan 30 '08 #1
3 1580
On 30 Jan, 09:30, Boltar <boltar2...@yahoo.co.ukwrote:
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?
I meant gprof , not gmon.

B2003

Jan 30 '08 #2
You must run the program once before the output is generated.
Same as gcov.
Jan 30 '08 #3
Boltar wrote:
>
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?
Look up gprof (either "man gprof" or "info gprof" or both). This
is off-topic on c.l.c.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.

--
Posted via a free Usenet account from http://www.teranews.com

Jan 31 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: aurora | last post by:
I have a parser I need to optimize. It has some disk IO and a lot of looping over characters. I used the hotspot profiler to gain insight on optimization options. The methods show up on on the...
1
by: Mac | last post by:
I'm writing a bunch of algorithms in Python for solving a certain class of problems, and I was interested in doing some comparisons between them and would like to collect various high-level runtime...
3
by: jw56578 | last post by:
Where is the information coming from that is displayed in query profiler. Is it the command that is retrieved before it is processed, or is it what is actually processed.
3
by: Phil | last post by:
I'm currently running Profiler sessions to track down Lock Timeout problems. My Profiler view contains (amongst others) the dbid column. Much of the time, this displays familiar dbids, such as...
9
by: Franco Gustavo | last post by:
Hi, All What's is the best .net profiler for Debug an application. I have to buy one but I don't know which one!! I tried some of them like Borland and AQTime. My big problem is, my...
1
by: Bhargavan | last post by:
Hi, I am running a .Net windows application. When I check the memory usuage of that application in the windows task manager, it shows around 66MB. But when I check the memory usuage using .NET...
8
by: Bryan | last post by:
Does anyone have an example of an application that can connect to a running process and capture Trace.WriteLine calls like in SQL Server Profiler? I know that we can inherit from a TraceListener...
3
by: Sam Samson | last post by:
Can any-one recommend some good sites detailing how to code a simple memory profiler? How do they "look under the hood"? I built an uber simple service that tracks the process' memory but I need...
0
by: anweshadash | last post by:
Using SQL Profiler: (Ref: http://msdn2.microsoft.com/en-us/library/ms181091.aspx) Sometimes it’s very beneficial to use sql profiler. Let’s have an idea about that and how to use that by...
1
by: =?Utf-8?B?Um9oaXQ=?= | last post by:
I am using the CLR Profiler to investigate the memory efficiency of my .NET applications; however, I am puzzled as to the memory allocation size that the tool reports for my applications. I am...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.