mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-03-22 05:01:27 +00:00
libsysprof: always create pid0 info
That way we don't risk showing "Unknown Process" if we get stack traces recorded with a 0 pid (which can happen from Perf).
This commit is contained in:
@ -745,11 +745,15 @@ sysprof_document_load_overlays (SysprofDocument *self)
|
|||||||
static void
|
static void
|
||||||
sysprof_document_load_processes (SysprofDocument *self)
|
sysprof_document_load_processes (SysprofDocument *self)
|
||||||
{
|
{
|
||||||
|
G_GNUC_UNUSED SysprofProcessInfo *pid0;
|
||||||
EggBitsetIter iter;
|
EggBitsetIter iter;
|
||||||
guint i;
|
guint i;
|
||||||
|
|
||||||
g_assert (SYSPROF_IS_DOCUMENT (self));
|
g_assert (SYSPROF_IS_DOCUMENT (self));
|
||||||
|
|
||||||
|
/* Always create PID 0 info */
|
||||||
|
pid0 = _sysprof_document_process_info (self, 0, TRUE);
|
||||||
|
|
||||||
if (egg_bitset_iter_init_first (&iter, self->processes, &i))
|
if (egg_bitset_iter_init_first (&iter, self->processes, &i))
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
|
|||||||
Reference in New Issue
Block a user