gtk: Clearer names for profiler marks

Naming matters. Don't be overly generic here.
This commit is contained in:
Matthias Clasen 2020-01-22 16:38:17 -05:00
parent 1565f597c8
commit 278762f00a
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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", "");
}
}
}