mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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);
|
||||
fflush (stdout);
|
||||
|
||||
collector_stop (app->collector);
|
||||
|
||||
profile = collector_create_profile (app->collector);
|
||||
profile_save (profile, app->outfile, &err);
|
||||
|
||||
Reference in New Issue
Block a user