mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 07:00:53 +00:00
perf: make sure we emit finished after last process exits
This fixes the "auto-stop" feature when the child exits, at least in the case of /usr/bin/gnome-calculator. However, when testing with gedit I did not see it accurately clean up, so something still needs to be troubleshooted.
This commit is contained in:
@ -214,7 +214,7 @@ sp_perf_source_handle_event (SpPerfCounterEvent *event,
|
|||||||
{
|
{
|
||||||
g_hash_table_remove (self->pids, GINT_TO_POINTER (event->exit.pid));
|
g_hash_table_remove (self->pids, GINT_TO_POINTER (event->exit.pid));
|
||||||
|
|
||||||
if (self->running && (g_hash_table_size (self->pids) > 0))
|
if (self->running && (g_hash_table_size (self->pids) == 0))
|
||||||
{
|
{
|
||||||
self->running = FALSE;
|
self->running = FALSE;
|
||||||
sp_perf_counter_disable (self->counter);
|
sp_perf_counter_disable (self->counter);
|
||||||
|
|||||||
Reference in New Issue
Block a user