Move to i_s / p_s and add user info (not quite complete)
[pstop.git] / p_s / relative_stats.go
diff --git a/p_s/relative_stats.go b/p_s/relative_stats.go
new file mode 100644 (file)
index 0000000..438fafd
--- /dev/null
@@ -0,0 +1,17 @@
+// performance_schema - library routines for pstop.
+//
+// want_relative_stats
+package p_s
+
+// a table of rows
+type RelativeStats struct {
+       want_relative_stats bool
+}
+
+func (wrs *RelativeStats) SetWantRelativeStats(want_relative_stats bool) {
+       wrs.want_relative_stats = want_relative_stats
+}
+
+func (wrs RelativeStats) WantRelativeStats() bool {
+       return wrs.want_relative_stats
+}