X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=p_s%2Frelative_stats.go;fp=p_s%2Frelative_stats.go;h=438fafd8351880697cf5e6ca171091f3dcf7d8a6;hb=52d3c00ce729f908f342e10f48818b112dec0130;hp=0000000000000000000000000000000000000000;hpb=b958730449ac1d927c267373a68b9ae54b72c454;p=pstop.git diff --git a/p_s/relative_stats.go b/p_s/relative_stats.go new file mode 100644 index 0000000..438fafd --- /dev/null +++ b/p_s/relative_stats.go @@ -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 +}