mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-profile: make enable/disable accessible
This commit is contained in:
@ -125,13 +125,17 @@ typedef void (*SysprofPerfEventCallback) (const SysprofPerfEvent *event,
|
|||||||
|
|
||||||
G_DECLARE_FINAL_TYPE (SysprofPerfEventStream, sysprof_perf_event_stream, SYSPROF, PERF_EVENT_STREAM, GObject)
|
G_DECLARE_FINAL_TYPE (SysprofPerfEventStream, sysprof_perf_event_stream, SYSPROF, PERF_EVENT_STREAM, GObject)
|
||||||
|
|
||||||
DexFuture *sysprof_perf_event_stream_new (GDBusConnection *connection,
|
DexFuture *sysprof_perf_event_stream_new (GDBusConnection *connection,
|
||||||
struct perf_event_attr *attr,
|
struct perf_event_attr *attr,
|
||||||
int cpu,
|
int cpu,
|
||||||
int group_fd,
|
int group_fd,
|
||||||
gulong flags,
|
gulong flags,
|
||||||
SysprofPerfEventCallback callback,
|
SysprofPerfEventCallback callback,
|
||||||
gpointer callback_data,
|
gpointer callback_data,
|
||||||
GDestroyNotify callback_data_destroy);
|
GDestroyNotify callback_data_destroy);
|
||||||
|
gboolean sysprof_perf_event_stream_enable (SysprofPerfEventStream *self,
|
||||||
|
GError **error);
|
||||||
|
gboolean sysprof_perf_event_stream_disable (SysprofPerfEventStream *self,
|
||||||
|
GError **error);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|||||||
Reference in New Issue
Block a user