From 018b97be72df6da74e947cc4aeddadcc9fa8604c Mon Sep 17 00:00:00 2001 From: Themaister Date: Mon, 1 Oct 2012 23:59:11 +0200 Subject: [PATCH] Add logging code to gl_copy_frame. --- gfx/gl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gfx/gl.c b/gfx/gl.c index e480a1a6f2..baf39eb0a0 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -14,6 +14,7 @@ */ #include "../driver.h" +#include "../benchmark.h" #include #include "../libretro.h" @@ -1112,7 +1113,12 @@ static bool gl_frame(void *data, const void *frame, unsigned width, unsigned hei if (frame) // Can be NULL for frame dupe / NULL render. { gl_update_input_size(gl, width, height, pitch); + + RARCH_PERFORMANCE_INIT(copy_frame); + RARCH_PERFORMANCE_START(copy_frame); gl_copy_frame(gl, frame, width, height, pitch); + RARCH_PERFORMANCE_STOP(copy_frame); + RARCH_PERFORMANCE_LOG("gl_copy_frame", copy_frame); } struct gl_tex_info tex_info = {0};