summaryrefslogtreecommitdiff
path: root/sysprof.c
diff options
context:
space:
mode:
authorSoren Sandmann <sandmann@daimi.au.dk>2007-10-20 23:51:35 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2007-10-20 23:51:35 +0000
commit476e6f0c1bd90c0a62d3d8c6dbf606046f949573 (patch)
treef74464df5089d2f37baef1196ec7db5026ecd2dd /sysprof.c
parentf1cbdbf27c9c766ae1db854c67dce112703f8a8b (diff)
Call callback with an extra boolean indicating whether the sample read was
2007-10-20 Soren Sandmann <sandmann@daimi.au.dk> * collector.c (on_read): Call callback with an extra boolean indicating whether the sample read was the first one * collector.c (add_trace_to_stash): Allocate addresses on the stack if possible. * sysprof.c (on_new_sample): Only call update_sensitivity() on the first sample. * stackstash.c (stack_stash_add_trace): Move match to front svn path=/trunk/; revision=373
Diffstat (limited to 'sysprof.c')
-rw-r--r--sysprof.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sysprof.c b/sysprof.c
index aba46c2..c30d05e 100644
--- a/sysprof.c
+++ b/sysprof.c
@@ -1552,12 +1552,15 @@ build_gui (Application *app)
}
static void
-on_new_sample (gpointer data)
+on_new_sample (gboolean first_sample,
+ gpointer data)
{
Application *app = data;
- if (app->state == PROFILING)
+ if (app->state == PROFILING && first_sample)
update_sensitivity (app);
+ else
+ queue_show_samples (app);
}
static Application *