void TestGL::TestAndOutput(int aNumIterations, FILE* aFile) { TestGLRunner tgr(this); Duration d = tgr.Run(aNumIterations); OutputTestName(aFile); int screenSize = 1000 * 1000; double numOfUploadsToFillScreen = screenSize/(mTextureSize*mTextureSize); double timePerUpload = d.ToMilliseconds() / aNumIterations; int timeToFillScreen = (int)(numOfUploadsToFillScreen * timePerUpload); fprintf(aFile, ",%10d,%10d,%10d,%10d,%10.0f\n", mPixelSize, mTextureSize, mAlignment, timeToFillScreen, d.ToMilliseconds()); }
void TestUnpackRowLength::TestAndOutput(int aNumIterations, FILE* aFile) { TestGLRunner tgr(this); Duration d = tgr.Run(aNumIterations); OutputTestName(aFile); fprintf(aFile, ",%d,%d,%d,%d,%d,%.0f\n", mPixelSize, mTextureSize, mAlignment, mUploadWidth, mOffset, d.ToMilliseconds()); }