An ECU cannot simply store peak torque or peak power, however it will definitely store max values of sensors, such as map sensor showing up last max value of say 2bar of manifold pressure instead of 1bar.
That's probably the easiest way to determine if there have been changes to the software. And of course, the whole idea of a flash counter is definitely plausible too.
Bookmarks