mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: create hook for supplemental writer data
This commit is contained in:
@ -185,12 +185,23 @@ static void
|
||||
sysprof_local_profiler_finish_stopping (SysprofLocalProfiler *self)
|
||||
{
|
||||
SysprofLocalProfilerPrivate *priv = sysprof_local_profiler_get_instance_private (self);
|
||||
g_autoptr(SysprofCaptureReader) reader = NULL;
|
||||
|
||||
g_assert (SYSPROF_IS_LOCAL_PROFILER (self));
|
||||
g_assert (priv->is_starting == FALSE);
|
||||
g_assert (priv->is_stopping == TRUE);
|
||||
g_assert (priv->stopping->len == 0);
|
||||
|
||||
reader = sysprof_capture_writer_create_reader (priv->writer, 0);
|
||||
|
||||
for (guint i = 0; i < priv->sources->len; i++)
|
||||
{
|
||||
SysprofSource *source = g_ptr_array_index (priv->sources, i);
|
||||
|
||||
sysprof_capture_reader_reset (reader);
|
||||
sysprof_source_supplement (source, reader);
|
||||
}
|
||||
|
||||
if (priv->failures->len > 0)
|
||||
{
|
||||
const GError *error = g_ptr_array_index (priv->failures, 0);
|
||||
|
||||
Reference in New Issue
Block a user