Hi Fred,

On Sunday 23 September 2007 00:20, Frederic Bouvier wrote:
> I used a profiler of my own :
>

Excellent! This is almost exactly the type of profiling I hinted at yesterday. 
I believe that this is a very debugging tool. Can we add a (slightly modified 
version) of this profiling system to the actual simgear code?

>
>
>
>
> It appears that it is the replay subsystem that creates long pauses
> periodically, and sometimes the ai-model subsystem too :

It looks like I have some confirmatory evidence regarding the replay pauses. 
Yesterday I left FlightGear running overnight, and found this morning that 
the pauses had increased to multiple seconds. So this morning I reran 
FlightGear in gdb, and hit ^C when the pauses had become sufficiently long 
enough. Here's the stack trace:

gdb) bt
#0  0xb7a4f41c in _int_malloc () from /lib/libc.so.6
#1  0xb7a510c5 in malloc () from /lib/libc.so.6
#2  0xb7bd4477 in operator new () from /usr/lib/libstdc++.so.6
#3  0x0809a8b3 in std::deque<FGReplayData, std::allocator<FGReplayData> 
>::_M_push_back_aux (this=0xfc866d0, [EMAIL PROTECTED])
    at /usr/include/c++/4.1.2/ext/new_allocator.h:88
#4  0x08099796 in FGReplay::update (this=0xfc866b0, dt=0.83333333333333337)
    at /usr/include/c++/4.1.2/bits/stl_deque.h:1045
#5  0x08588c16 in SGSubsystemGroup::Member::update (this=0xfc81140,
    delta_time_sec=0.83333333333333337) at subsystem_mgr.cxx:236
#6  0x08589515 in SGSubsystemGroup::update (this=0x8a0bb74,
    delta_time_sec=0.83333333333333337) at subsystem_mgr.cxx:127
#7  0x08588dfc in SGSubsystemMgr::update (this=0x8a0bb58,
    delta_time_sec=0.83333333333333337) at subsystem_mgr.cxx:296
#8  0x0805255e in fgMainLoop () at main.cxx:509
#9  0x08087211 in GLUTidle () at fg_os.cxx:122
#10 0xb7f581df in glutMainLoop () from /usr/lib/libglut.so.3
#11 0x08056762 in fgMainInit (argc=2, argv=0xbfdcebd4) at main.cxx:1111
#12 0x080512d1 in main (argc=894892171, argv=0x229) at bootstrap.cxx:215
(gdb)

Cheers,
Durk

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to