summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-09-16 08:21:49 -0400
committerSøren Sandmann Pedersen <ssp@l3000.localdomain>2009-09-16 08:22:18 -0400
commit87719722128247c8ef190901697a27a8229b615f (patch)
treee4c5c97400679d6b7d6ced57ca35ad92abf988ba
parenta33678df2617275fb60588776d8e020f37907ecc (diff)
In sysprof-cli.c, stop the collector before trying to create a profile
-rw-r--r--sysprof-cli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysprof-cli.c b/sysprof-cli.c
index 8dbe334..ee03a8c 100644
--- a/sysprof-cli.c
+++ b/sysprof-cli.c
@@ -50,6 +50,8 @@ dump_data (Application *app)
printf ("Saving profile in %s ... ", app->outfile);
fflush (stdout);
+
+ collector_stop (app->collector);
profile = collector_create_profile (app->collector);
profile_save (profile, app->outfile, &err);