[gtk/action-muxer-speedup: 1/12] debug spew for window closing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/action-muxer-speedup: 1/12] debug spew for window closing
- Date: Sun, 19 Jul 2020 14:00:47 +0000 (UTC)
commit 9586e39921fcee44df2982b4f0148e5f290ba6fc
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jul 19 08:31:09 2020 -0400
debug spew for window closing
gtk/gtkwindow.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index c2591b90c1..3df6a09028 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -3644,11 +3644,15 @@ gtk_window_get_size (GtkWindow *window,
*height = h;
}
+static gint64 close_request_time;
+
static gboolean
gtk_window_close_request (GtkWindow *window)
{
GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
+ close_request_time = g_get_monotonic_time ();
+
if (priv->hide_on_close)
{
gtk_widget_hide (GTK_WIDGET (window));
@@ -3726,6 +3730,8 @@ gtk_window_finalize (GObject *object)
g_clear_object (&priv->resize_cursor);
G_OBJECT_CLASS (gtk_window_parent_class)->finalize (object);
+
+ g_print ("close request to finalized: %f ms\n", ((double)(g_get_monotonic_time () - close_request_time)) /
1000.0);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]