From 0b99de05b9237bc396c4e0cc5aafded48d0cdb26 Mon Sep 17 00:00:00 2001 From: egdaniel Date: Mon, 7 Jul 2014 06:17:13 -0700 Subject: Add Instant Trace Event for shader compilation in gpu which outputs shader text as attribute BUG=skia: R=bsalomon@google.com Author: egdaniel@google.com Review URL: https://codereview.chromium.org/368943002 --- src/gpu/gl/GrGLShaderBuilder.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gpu/gl/GrGLShaderBuilder.cpp b/src/gpu/gl/GrGLShaderBuilder.cpp index 764d482389..7d2152f301 100644 --- a/src/gpu/gl/GrGLShaderBuilder.cpp +++ b/src/gpu/gl/GrGLShaderBuilder.cpp @@ -767,6 +767,9 @@ static GrGLuint attach_shader(const GrGLContext& glCtx, return 0; } } + + TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("skia.gpu"), "skia_gpu::GLShader", + TRACE_EVENT_SCOPE_THREAD, "shader", TRACE_STR_COPY(shaderSrc.c_str())); if (c_PrintShaders) { GrPrintf(shaderSrc.c_str()); GrPrintf("\n"); -- cgit v1.2.3