From 8ab9227c2c3c1567d9f8af91c409511d95c63b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Mon, 15 Feb 2016 21:19:38 +0100 Subject: [PATCH] Better profiling displaying node name --- ios/GLCanvas.m | 2 +- ios/GLShader.h | 1 + ios/GLShader.m | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/GLCanvas.m b/ios/GLCanvas.m index f2a5dd9..8c62b70 100644 --- a/ios/GLCanvas.m +++ b/ios/GLCanvas.m @@ -491,7 +491,7 @@ RCT_NOT_IMPLEMENTED(-init) for (GLRenderData *child in renderData.children) weak_recDraw(child); - RCT_PROFILE_BEGIN_EVENT(0, @"node", nil); + RCT_PROFILE_BEGIN_EVENT(0, [NSString stringWithFormat:@"node:%@", renderData.shader.name], nil); RCT_PROFILE_BEGIN_EVENT(0, @"bind fbo", nil); if (renderData.fboId == -1) { diff --git a/ios/GLShader.h b/ios/GLShader.h index a187a1f..90c2014 100644 --- a/ios/GLShader.h +++ b/ios/GLShader.h @@ -10,6 +10,7 @@ NS_ENUM(NSInteger) { @interface GLShader: NSObject +@property NSString *name; @property EAGLContext *context; @property NSString *vert; @property NSString *frag; diff --git a/ios/GLShader.m b/ios/GLShader.m index 37e5c10..5f0ac9d 100644 --- a/ios/GLShader.m +++ b/ios/GLShader.m @@ -36,7 +36,6 @@ GLuint compileShader (NSString* shaderName, NSString* shaderString, GLenum shade */ @implementation GLShader { - NSString *_name; EAGLContext *_context; // Context related to this shader GLuint program; // Program of the shader GLuint buffer; // the buffer currently contains 2 static triangles covering the surface -- 2.26.2