Resource Tracking for FlightGear: Difference between revisions

Jump to navigation Jump to search
m
No edit summary
m (→‎Proof of concept (patch): (as per our PMs))
Line 218: Line 218:


So after the 3.0 release, we should probably investigate how to track RAM per subsystem/feature and provide some "live" stats.
So after the 3.0 release, we should probably investigate how to track RAM per subsystem/feature and provide some "live" stats.
== Proof of concept (patch) ==


Here's a first stab at a simple subsystem to monitor FlightGear memory usage on Linux at 5 second intervals, consider it a "proof of concept" prototype now, as this would need to be cleaned up and implemented for Mac/Windows respectively - on Linux it simply works such that it merely fopen()s /proc/pid/smaps and copies two metrics to the property tree:
Here's a first stab at a simple subsystem to monitor FlightGear memory usage on Linux at 5 second intervals, consider it a "proof of concept" prototype now, as this would need to be cleaned up and implemented for Mac/Windows respectively - on Linux it simply works such that it merely fopen()s /proc/pid/smaps and copies two metrics to the property tree:

Navigation menu