- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: unable to use profiler
Operating System - Linux
1752805
Members
5437
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2006 01:44 AM
тАО08-24-2006 01:44 AM
unable to use profiler
Hi ppl,
I'm trying to use profiler on compiled executable, in order to monitor it's performance.
I noticed that after compiling the source (C Source) , with '-p' flag, using cc, the 'mcount', 'monitor' and the library mon.h were included on the executable (I use nm in order to check it), but, when attempting to run the excutable with prof (using prof 'exe') I see no output. moreover, no mon.out file has been created at all.
when I'm trying to compile other sources (much simpler sources) - I see no problem and expected output is being shown.
if anyone has any idea - please let me know!! thanks a lot people.
Itai and Vika.
I'm trying to use profiler on compiled executable, in order to monitor it's performance.
I noticed that after compiling the source (C Source) , with '-p' flag, using cc, the 'mcount', 'monitor' and the library mon.h were included on the executable (I use nm in order to check it), but, when attempting to run the excutable with prof (using prof 'exe') I see no output. moreover, no mon.out file has been created at all.
when I'm trying to compile other sources (much simpler sources) - I see no problem and expected output is being shown.
if anyone has any idea - please let me know!! thanks a lot people.
Itai and Vika.
- Tags:
- prof
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2006 10:44 AM
тАО08-24-2006 10:44 AM
Re: unable to use profiler
Hi
you should try to use gprof, not prof
compile with -G.
This is the basic profiler on hpux.
Otherwise, you wanna remove this -G option and try either prospect (www.hp.com/go/prospect) if you are running on PARISC, or caliper if you are running on Itanium.
-Cyrille
you should try to use gprof, not prof
compile with -G.
This is the basic profiler on hpux.
Otherwise, you wanna remove this -G option and try either prospect (www.hp.com/go/prospect) if you are running on PARISC, or caliper if you are running on Itanium.
-Cyrille
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-25-2006 05:52 PM
тАО08-25-2006 05:52 PM
Re: unable to use profiler
It's not clear what you were doing and you said it worked in a small case. So did you use:
$ cc -p foo.c
$ a.out
$ prof a.out
Note if you call _exit, you won't get any output.
And as Cyrille says, you should really be using gprof (-G) or Caliper.
$ cc -p foo.c
$ a.out
$ prof a.out
Note if you call _exit, you won't get any output.
And as Cyrille says, you should really be using gprof (-G) or Caliper.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP