[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | USG buildhelp questions/answers |
|
Moderator: | SMURF::FILTER |
|
Created: | Mon Apr 26 1993 |
Last Modified: | Mon Jan 20 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 2763 |
Total number of notes: | 5802 |
300.0. "help profiling an OSF command/utility" by SMURF::FILTER (Automatic Posting Software - mail to flume::puck) Thu Sep 02 1993 17:21
Date Of Receipt: 1-SEP-1993 21:15:47.71
From: FLAMBE::jmf "Joshua M. Friedman ULTRIX SDE 01-Sep-1993 2114"
To: buildhelp@DEC:.zko.flambe
CC: odehelp@DEC:.zko.flambe, [email protected]
Subj: help profiling an OSF command/utility
Can anyone provide help on using profiling to Scott? The fact that
it was built under ODE is irellevant -- it's built by 'make' according
to the makefiles.
Scott, try the following instead of what you're doing; CFLAGS may be
getting overwritten by the makefiles; this is the correct way to pass
additional compiler switches:
build "CARGS=-p" ...
thanks... -josh
------- Forwarded Message
Return-Path: [email protected]
Delivery-Date: Wed, 01 Sep 93 18:33:19 +28716
Return-Path: [email protected]
Received: by flambe.zk3.dec.com; id AA19724; Wed, 1 Sep 1993 18:33:16 -0400
Received: by wasted.zk3.dec.com; id AA05516; Wed, 1 Sep 1993 18:32:32 -0400
Received: by swell.unx.dec.com (5.65/MS-070792);
id AA05639; Wed, 1 Sep 1993 18:34:39 -0400
Message-Id: <[email protected]>
To: [email protected]
Cc: [email protected]
Subject: profiling an application built under ODE?
Date: Wed, 01 Sep 93 18:34:38 -0400
From: [email protected]
X-Mts: smtp
Sorry for duplicates you'll get later, abyss isn't taking mail right now and I
need to get help on this. - thanks
- ------- Forwarded Message
From: swr
To: abyss::odehelp
Cc: pav, swr
Hi,
I'm trying to profile an application that I built under ODE. When I pix-ify it,
after building it, the pix-ified version core dumps upon execution. I tried
turning on the -p flag in the makefile, but when I run the resultant executable,
I don't get a "mon.out" file. The executable works fine, but doesn't produce
any profiling data.
I tried putting the "-p" in the CFLAGS, which compiles OK, but I get the above
results. When I put the "-p" in the LDFLAGS, I get the following error:
cc: Error: -p0 or -p1 must precede any -B flags
Can someone tell me the correct method for profiling an OSF command/utility
built under ODE?
Thanks very much,
Scott
- ------- End of Forwarded Message
------- End of Forwarded Message
T.R | Title | User | Personal Name | Date | Lines |
---|
300.1 | Re: help profiling an OSF command/utility | SMURF::FILTER | Automatic Posting Software - mail to flume::puck | Thu Sep 02 1993 17:25 | 29 |
| Date Of Receipt: 1-SEP-1993 22:28:00.23
From: ALPHA::"[email protected]" "1-Sep-1993 2229"
To: [email protected] (Joshua Friedman OSF/UNIX SDE 381-1548)
CC: [email protected], [email protected],
[email protected] (Scott Ruch)
Subj: Re: help profiling an OSF command/utility
>
> Scott, try the following instead of what you're doing; CFLAGS may be
> getting overwritten by the makefiles; this is the correct way to pass
> additional compiler switches:
>
> build "CARGS=-p" ...
>
Thanks for your prompt response, Josh. Unfortunately, when I use the method
you describe above, I still don't get a "mon.out" after executing the binary.
Using the method above, or by defining the .o_CFLAGS = "-p" turns the switch
on during compilation, but not during linking. This doesn't seem to achieve
the desired effect. I think I need to get it turned on during the link, but
the -B switch is in the way.
Thanks again, though. Anyone else have a suggestion?
Scott
|