mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-04-23 14:01:26 +00:00
turbostat: use kill() to force sample by turbostat
This is more reliable than using a PTY and allows us to use a regular pipe to output data into a GIOChannel. This also changes the design to use async IO watches for sample delivery.
This commit is contained in:
@ -36,11 +36,12 @@ typedef struct
|
||||
gdouble ram_watt;
|
||||
} SysprofTurbostatSample;
|
||||
|
||||
SysprofTurbostat *sysprof_turbostat_new (void);
|
||||
SysprofTurbostat *sysprof_turbostat_new (GFunc sample_func,
|
||||
gpointer sample_data);
|
||||
gboolean sysprof_turbostat_start (SysprofTurbostat *self,
|
||||
GError **error);
|
||||
void sysprof_turbostat_stop (SysprofTurbostat *self);
|
||||
GArray *sysprof_turbostat_sample (SysprofTurbostat *self,
|
||||
gboolean sysprof_turbostat_sample (SysprofTurbostat *self,
|
||||
GError **error);
|
||||
void sysprof_turbostat_free (SysprofTurbostat *self);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user