mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 08:00:53 +00:00
libsysprof-profile: add writer as record parameter
This commit is contained in:
@ -100,14 +100,16 @@ sysprof_profiler_add_instrument (SysprofProfiler *self,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
sysprof_profiler_record_async (SysprofProfiler *self,
|
sysprof_profiler_record_async (SysprofProfiler *self,
|
||||||
GCancellable *cancellable,
|
SysprofCaptureWriter *writer,
|
||||||
GAsyncReadyCallback callback,
|
GCancellable *cancellable,
|
||||||
gpointer user_data)
|
GAsyncReadyCallback callback,
|
||||||
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
g_autoptr(GTask) task = NULL;
|
g_autoptr(GTask) task = NULL;
|
||||||
|
|
||||||
g_return_if_fail (SYSPROF_IS_PROFILER (self));
|
g_return_if_fail (SYSPROF_IS_PROFILER (self));
|
||||||
|
g_return_if_fail (writer != NULL);
|
||||||
g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
|
g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
|
||||||
|
|
||||||
task = g_task_new (self, cancellable, callback, user_data);
|
task = g_task_new (self, cancellable, callback, user_data);
|
||||||
|
|||||||
@ -41,6 +41,7 @@ void sysprof_profiler_add_instrument (SysprofProfiler *self,
|
|||||||
SysprofInstrument *instrument);
|
SysprofInstrument *instrument);
|
||||||
SYSPROF_AVAILABLE_IN_ALL
|
SYSPROF_AVAILABLE_IN_ALL
|
||||||
void sysprof_profiler_record_async (SysprofProfiler *self,
|
void sysprof_profiler_record_async (SysprofProfiler *self,
|
||||||
|
SysprofCaptureWriter *writer,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GAsyncReadyCallback callback,
|
GAsyncReadyCallback callback,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
|||||||
Reference in New Issue
Block a user