Talk:Resource Tracking for FlightGear

From FlightGear wiki
Revision as of 00:21, 1 February 2014 by Hooray (talk | contribs) (http://forum.flightgear.org/viewtopic.php?f=74&t=17114&p=165482&hilit=memory+tracking#p165482)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Nasal

A while ago, I played with tracking the duration of Nasal callback execution, to get a list of scripts that tend to trigger the GC more frequently (i.e. higher "GC pressure"). And here, it's quite obvious that some scripts and function have a higher probability of triggering the Nasal GC than others - including some of your LW/AW loops, some of them trigger the GC very rarely, while others trigger it regularly. It shouldn't be too hard adapt that code and expose additional GC-internals to the property tree, so that we know how much memory is consumed per memory pool, and possibly even per loaded script or sub module.