LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-11-2011, 10:51 AM   #16
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled

Quote:
Originally Posted by laopi View Post
I figure out the reason, if you copy the executable file to another directory, you won't get the gmon.out file, anyone knows how to set some variable so I can use gprof in another directory?
Surprisingly, I see absolutely no options allowing you to specify a different gmon.out file. I checked the manpage and the infopage. You might be able to use -I path, but that seems like it's only for locating source files. Or maybe you just need to run gprof from the location where gmon.out is rather than where the binary is.
Kevin Barry

Last edited by ta0kira; 08-11-2011 at 10:53 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc -pg, but no gmon.out produced? Some__Guy Programming 6 06-25-2011 10:17 AM
Problem with gprof, no gmon.out file !! taj2000 Linux - Software 2 05-21-2009 09:01 PM
gmon.out not created while using gprof on target board VGM Linux - General 0 04-14-2009 01:55 AM
gprof: gmon.out: not in a.out format hemk76 Programming 7 11-06-2005 10:05 AM
gprof: gmon.out file is missing call-graph data hemk76 Programming 0 01-07-2005 11:54 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration