Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Rajanish Calisa <rcalisa@hotmail.com>
Subject: atom (hiprof) woes
Date: Thu, 04 Jan 2001 20:21:53 GMT	[thread overview]
Message-ID: <932m0m$ths$1@nnrp1.deja.com> (raw)

Hi all,

We are using Digital Unix 4.0D, Atom(V2.17f/V2.17d), DEC C++(6.2).

I am trying to use hiprof to profile a multi-threaded app.
To begin with, I wrote a simple program as given below to
tried to profile it:

-----------------------------------------------------------
int
bar()
{
        for ( int i = 0 ; i < 100 ; i++ ) ;
        return 0 ;
}

int
foo()
{
        for ( int i = 0 ; i < 100 ; i++ ) { bar() ; }
        return 0 ;
}

int
main()
{
        for ( int i = 0 ; i < 100 ; i++ ) { foo() ; }
        return 0 ;
}
-------------------------------------------------------

I compiled the program as follows:
cxx -g -pthread hp.cc -o hp

I tried to profile it as follows:
atom hp  -tool hiprof -env threads \
     -toolargs="-textout -cputime -threads" -all -g

When I run hp.hiprof.threads, I get the following message:
Hiprof Panic: hacked stack back to nothing

I do not understand what I am doing wrong, when the "threads"
option is not specified during profile and compilation time
it seems to work fine.

Any help in this regard is appreciated.

Thanks

rajanish...




Sent via Deja.com
http://www.deja.com/


             reply	other threads:[~2001-01-04 20:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-04 20:21 Rajanish Calisa [this message]
2001-01-05 15:11 ` atom (hiprof) woes Robert Mulley
2001-01-05 23:00   ` Rajanish Calisa
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox