Pulling metrics from StarCraft 2 Replays

Solution 1:

Sc2Gears is a good utility to pull out information like that. I'm unsure if you can do those specific metrics, but it is fairly flexible and you should be able to create something similar, if not exactly what you want. It does stuff vs. time quite well and produces all sorts of graphs:

enter image description here

Solution 2:

Replay file basically contains only user actions.

So you're require some "emulator" to get such dynamic values like resources count or supply.

I don't know any existing emulator. But I believe that there are some tools that can get this data from RAM but it violates EULA.

Right now I develop sc2drill client to recognize / collect / aggregate data from video stream (it's not prohibited by EULA) but latest version is not published yet. Probably I do it within 1st quarter of 2012. Please support me if you like this idea ^_^