[gtk+] inspector: Update all statistics in same place
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Update all statistics in same place
- Date: Tue, 14 Oct 2014 12:18:38 +0000 (UTC)
commit 8d06b84670705d7ee0301e73c3185f6299af6e48
Author: Benjamin Otte <otte redhat com>
Date: Mon Oct 13 10:09:48 2014 +0200
inspector: Update all statistics in same place
gtk/inspector/statistics.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/gtk/inspector/statistics.c b/gtk/inspector/statistics.c
index f41567b..f6f04a3 100644
--- a/gtk/inspector/statistics.c
+++ b/gtk/inspector/statistics.c
@@ -91,6 +91,8 @@ add_type_count (GtkInspectorStatistics *sl, GType type)
self = g_type_get_instance_count (type);
cumulative += self;
+ data->self1 = data->self2;
+ data->cumulative1 = data->cumulative2;
data->self2 = self;
data->cumulative2 = cumulative;
@@ -123,13 +125,6 @@ refresh_clicked (GtkWidget *button, GtkInspectorStatistics *sl)
TypeData *data;
GtkTreeIter treeiter;
- g_hash_table_iter_init (&iter, sl->priv->counts);
- while (g_hash_table_iter_next (&iter, NULL, (gpointer *)&data))
- {
- data->self1 = data->self2;
- data->cumulative1 = data->cumulative2;
- }
-
if (sl->priv->snapshot_count == 0)
{
gtk_tree_view_column_set_visible (sl->priv->column_self2, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]