From 87719722128247c8ef190901697a27a8229b615f Mon Sep 17 00:00:00 2001 From: M Joonas Pihlaja Date: Wed, 16 Sep 2009 08:21:49 -0400 Subject: [PATCH] In sysprof-cli.c, stop the collector before trying to create a profile --- sysprof-cli.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysprof-cli.c b/sysprof-cli.c index 8dbe334e..ee03a8ca 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);