[gtk/matthiasc/for-master] gtk: Clearer names for profiler marks



commit 278762f00a477729dae89cd2f3f9365d5db454ca
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jan 22 16:38:17 2020 -0500

    gtk: Clearer names for profiler marks
    
    Naming matters. Don't be overly generic here.

 gtk/gtkcssnode.c | 2 +-
 gtk/gtkwidget.c  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcssnode.c b/gtk/gtkcssnode.c
index a7c9c9e602..9c0c20c9c9 100644
--- a/gtk/gtkcssnode.c
+++ b/gtk/gtkcssnode.c
@@ -1393,7 +1393,7 @@ gtk_css_node_validate (GtkCssNode *cssnode)
       if (gdk_profiler_is_running ())
         {
           gint64 after = g_get_monotonic_time ();
-          gdk_profiler_add_mark (before * 1000, (after - before) * 1000, "style", "");
+          gdk_profiler_add_mark (before * 1000, (after - before) * 1000, "css validation", "");
           gdk_profiler_set_int_counter (invalidated_nodes_counter, after * 1000, invalidated_nodes);
           gdk_profiler_set_int_counter (created_styles_counter, after * 1000, created_styles);
           invalidated_nodes = 0;
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 2aedd1f727..f3224d2cb6 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -12310,7 +12310,7 @@ gtk_widget_render (GtkWidget            *widget,
   if (gdk_profiler_is_running ())
     {
       after = g_get_monotonic_time ();
-      gdk_profiler_add_mark (before * 1000, (after - before) * 1000, "snapshot", "");
+      gdk_profiler_add_mark (before * 1000, (after - before) * 1000, "widget snapshot", "");
     }
 
   if (root != NULL)
@@ -12329,7 +12329,7 @@ gtk_widget_render (GtkWidget            *widget,
         {
           before = after;
           after = g_get_monotonic_time ();
-          gdk_profiler_add_mark (before * 1000, (after - before) * 1000, "render", "");
+          gdk_profiler_add_mark (before * 1000, (after - before) * 1000, "widget render", "");
         }
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]