I'm trying to incorporate GPU frame time metric capture into the automated tests of a DirectX 11 Unity game. I can see this metric when running the Graphics Monitor in Frame mode, but when I capture a Stream and open it for viewing, the only metric it contains is CPU frame time. I have metrics collection turned on in the options, and "GPU time elapsed" is in the list.
Ideally I would read this metric from a script, which seems to be the purpose of metrics-collection-sample.exe, but running this on a captured stream returns "No metrics source and QueryManager available".
Any suggestions for getting this working would be greatly appreciated.