Add tracing to GrContext resource cleanup

For https://github.com/flutter/flutter/issues/35296

The change is suggested by bsalomon@google.com

Change-Id: I70a2f5298b49d7a64e51cb1f364834e62dcaf4a9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/225119
Commit-Queue: Yuqian Li <liyuqian@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Auto-Submit: Yuqian Li <liyuqian@google.com>
diff --git a/src/gpu/gl/GrGLTexture.cpp b/src/gpu/gl/GrGLTexture.cpp
index dd85ddb..4ae31da 100644
--- a/src/gpu/gl/GrGLTexture.cpp
+++ b/src/gpu/gl/GrGLTexture.cpp
@@ -93,6 +93,8 @@
 }
 
 void GrGLTexture::onRelease() {
+    TRACE_EVENT0("skia.gpu", TRACE_FUNC);
+
     if (fID) {
         if (GrBackendObjectOwnership::kBorrowed != fTextureIDOwnership) {
             GL_CALL(DeleteTextures(1, &fID));