duplex: make diff of previous value configurable

We might want to use raw values instead of diffs, and this makes that
possible. Doing so could be used for disks, etc.
This commit is contained in:
Christian Hergert
2019-07-01 12:23:17 -07:00
parent 652f7225b1
commit 145afe825b
2 changed files with 43 additions and 5 deletions

View File

@ -29,6 +29,9 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (SysprofDuplexVisualizer, sysprof_duplex_visualizer, SYSPROF, DUPLEX_VISUALIZER, SysprofVisualizer)
GtkWidget *sysprof_duplex_visualizer_new (void);
gboolean sysprof_duplex_visualizer_get_use_diff (SysprofDuplexVisualizer *self);
void sysprof_duplex_visualizer_set_use_diff (SysprofDuplexVisualizer *self,
gboolean use_diff);
void sysprof_duplex_visualizer_set_counters (SysprofDuplexVisualizer *self,
guint rx_counter,
guint tx_counter);