mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
In sysprof-cli.c, stop the collector before trying to create a profile
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
a33678df26
commit
8771972212
@ -50,6 +50,8 @@ dump_data (Application *app)
|
|||||||
|
|
||||||
printf ("Saving profile in %s ... ", app->outfile);
|
printf ("Saving profile in %s ... ", app->outfile);
|
||||||
fflush (stdout);
|
fflush (stdout);
|
||||||
|
|
||||||
|
collector_stop (app->collector);
|
||||||
|
|
||||||
profile = collector_create_profile (app->collector);
|
profile = collector_create_profile (app->collector);
|
||||||
profile_save (profile, app->outfile, &err);
|
profile_save (profile, app->outfile, &err);
|
||||||
|
|||||||
Reference in New Issue
Block a user