On Wed, Feb 27, 2002 at 01:59:27PM -0600, Vallevand, Mark K wrote:
> Well, no, not specifically with operator=.  But, my point is
> that operator= might not be involved.  It also depends on the
> kind of profiler used.  If its a profiler that is enabled with
> compiler switches and code to count calls is compiled in, then
> my point is not valid. 

I suspect, but don't know for sure, that David used the -p switch to
g++.  So maybe it really is operator=


>However, some profilers poll the
> instruction pointer, or use the processor itself to capture
> profile data.  The profiler has to associate an address with
> a function and sometimes gets it wrong.
> 
> funca:
>       code
>       code
>       ...
>       ret
> 
>       code   <- what function is this address in?
>       code
> funcb:
>       code
>       code
>       ...
>       jmp funcb-2
>       code
>       ret
> 
> I've seen this many times.  Funca is getting counts that are really
> for funcb.
> 
> Regards.
> Mark K Vallevand
> Fat, dumb and happy.  2 out of 3 ain't bad.
> 
> 
> 
> > -----Original Message-----
> > From: Tony Peden [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 27, 2002 1:26 PM
> > To: FGFS Devel
> > Subject: RE: [Flightgear-devel] Profiling run
> > 
> > 
> > On Wed, 2002-02-27 at 09:00, Vallevand, Mark K wrote:
> > > I probably doesn't get called that many times.  Most profiling
> > > software picks up some cruft.  There is probably some bit of code
> > > located just after FGInterface::operator= that *is* called a lot,
> > > but doesn't have any debug information associated with it.  So,
> > > as far as the profiler is concerned, its part of 
> > FGInterface::operator=.
> > > I see this all the time in the profiles I do here at work.
> > 
> > Even with compiler generated operator=?
> > 
> > > 
> > > Regards.
> > > Mark K Vallevand
> > > Fat, dumb and happy.  2 out of 3 ain't bad.
> > > 
> > > > It seems very strange to me, however, that FGInterface::operator=
> > > > would show up at all. According to that output, it was called
> > > > almost 200,000 times.  What's up with that?
> > > 
> > > _______________________________________________
> > > Flightgear-devel mailing list
> > > [EMAIL PROTECTED]
> > > http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> > -- 
> > Tony Peden
> > [EMAIL PROTECTED]
> > We all know Linux is great ... it does infinite loops in 5 seconds. 
> > -- attributed to Linus Torvalds
> > 
> > _______________________________________________
> > Flightgear-devel mailing list
> > [EMAIL PROTECTED]
> > http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> > 
> 
> _______________________________________________
> Flightgear-devel mailing list
> [EMAIL PROTECTED]
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel

-- 
Tony Peden
[EMAIL PROTECTED]
We all know Linux is great ... it does infinite loops in 5 seconds. 
-- attributed to Linus Torvalds

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to