In sysprof-cli.c, stop the collector before trying to create a profile

This commit is contained in:
M Joonas Pihlaja
2009-09-16 08:21:49 -04:00
committed by Søren Sandmann Pedersen
parent a33678df26
commit 8771972212

View File

@ -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);