libsysprof: add helper to create profiler from capture reader

This will look at what was in the reader before and create a new local
profiler from that. This still needs to add support for restoring info
from sources which need to be inflated.
This commit is contained in:
Christian Hergert
2019-05-23 17:20:29 -07:00
parent c19ae705f7
commit 974cbf5130
2 changed files with 75 additions and 3 deletions

View File

@ -41,6 +41,8 @@ struct _SysprofLocalProfilerClass
};
SYSPROF_AVAILABLE_IN_ALL
SysprofProfiler *sysprof_local_profiler_new (void);
SysprofProfiler *sysprof_local_profiler_new (void);
SYSPROF_AVAILABLE_IN_ALL
SysprofProfiler *sysprof_local_profiler_new_replay (SysprofCaptureReader *reader);
G_END_DECLS