mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: rename follow_fork() to follow_process()
This is more of what we want to be doing anyway, we don't care about all the forks in existence. Additionally, include the comm[] with the pid so that instruments can take action based on it.
This commit is contained in:
@ -904,11 +904,12 @@ sysprof_recording_get_subprocess (SysprofRecording *self)
|
||||
}
|
||||
|
||||
void
|
||||
_sysprof_recording_follow_fork (SysprofRecording *self,
|
||||
int pid)
|
||||
_sysprof_recording_follow_process (SysprofRecording *self,
|
||||
int pid,
|
||||
const char *comm)
|
||||
{
|
||||
g_return_if_fail (SYSPROF_IS_RECORDING (self));
|
||||
g_return_if_fail (pid > 0);
|
||||
|
||||
dex_future_disown (_sysprof_instruments_process_started (self->instruments, self, pid));
|
||||
dex_future_disown (_sysprof_instruments_process_started (self->instruments, self, pid, comm));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user