Resource Tracking for FlightGear: Difference between revisions

Jump to navigation Jump to search
m
No edit summary
Line 296: Line 296:
{{Note|http://codepad.org/27VcoMSX/raw.txt}}
{{Note|http://codepad.org/27VcoMSX/raw.txt}}


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[http://codepad.org/27VcoMSX/raw.txt]:
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.


{{collapsible script|type=patch (diff)|title=sigar integration [http://codepad.org/27VcoMSX/raw.txt]|intro=|lang=diff|script=
{{collapsible script|type=patch (diff)|title=sigar integration [http://codepad.org/27VcoMSX/raw.txt]|intro=|lang=diff|script=

Navigation menu