diff --git a/ios/GLCanvas.m b/ios/GLCanvas.m index f2a5dd9236cdd4b03de0962b204cd0dbd1f5a57d..8c62b70a085a13f65aff37d979408d813102b226 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 a187a1fba4cd355ffb40a6e4b6acfcc0d91d0909..90c20142ec6eca7c6802449340d99a94a797e908 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 37e5c10c84287e550dfcbb19816c19e37272646c..5f0ac9d6165a0adc1ce53bcdf95e25062868f30d 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