material: Adds arbfp compile counter
authorRobert Bragg <robert@linux.intel.com>
Mon, 14 Jun 2010 22:14:15 +0000 (23:14 +0100)
committerRobert Bragg <robert@linux.intel.com>
Tue, 15 Jun 2010 14:26:28 +0000 (15:26 +0100)
This adds a uprof counter to track how many ARBfp programs get compiled
by an application.

clutter/cogl/cogl/cogl-material.c

index 46fb745..7212860 100644 (file)
@@ -6074,6 +6074,13 @@ _cogl_material_backend_arbfp_end (CoglMaterial *material,
   if (priv->source)
     {
       GLenum gl_error;
+      COGL_STATIC_COUNTER (backend_arbfp_compile_counter,
+                           "arbfp compile counter",
+                           "Increments each time a new ARBfp "
+                           "program is compiled",
+                           0 /* no application private data */);
+
+      COGL_COUNTER_INC (_cogl_uprof_context, backend_arbfp_compile_counter);
 
       g_string_append (priv->source, "MOV result.color,output;\n");
       g_string_append (priv->source, "END\n");