mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof: only record process from perf, not threads
Otherwise we'll get additional SysprofCaptureProcess frames that relate to the threads instead of just the processes.
This commit is contained in:
@ -318,11 +318,12 @@ sysprof_perf_source_handle_event (SysprofPerfCounterEvent *event,
|
|||||||
offset += sizeof (GPid) + sizeof (GPid);
|
offset += sizeof (GPid) + sizeof (GPid);
|
||||||
memcpy (&time, event->comm.comm + offset, sizeof time);
|
memcpy (&time, event->comm.comm + offset, sizeof time);
|
||||||
|
|
||||||
sysprof_capture_writer_add_process (self->writer,
|
if (event->comm.pid == event->comm.tid)
|
||||||
time,
|
sysprof_capture_writer_add_process (self->writer,
|
||||||
cpu,
|
time,
|
||||||
event->comm.pid,
|
cpu,
|
||||||
event->comm.comm);
|
event->comm.pid,
|
||||||
|
event->comm.comm);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user