- profile->programs[program].cpuTotal += draw.cpuDuration;
- profile->programs[program].gpuTotal += draw.gpuDuration;
- profile->programs[program].pixelTotal += draw.pixels;
- profile->programs[program].drawCalls.push_back(draw);
+ Profile::Program& program = profile->programs[call.program];
+ program.cpuTotal += call.cpuDuration;
+ program.gpuTotal += call.gpuDuration;
+ program.pixelTotal += call.pixels;
+ program.calls.push_back(profile->calls.size() - 1);