Not sure if this was posted before...
Here is what i came across while editing savegames - for every unit, the game keeps track of its losses kills and other stats.
For example:
(campaign_save_game-->campaign_env-->campaign_model-->world-->faction_array-->faction-->army_array-->army-->units_array-->land_unit--->unit.
Now is there a way to create a tool, that would say, read every autosave, then gather the data, analyse it and present in some kinda of a gui stats interface?