X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=p_s%2Ftable_io_waits_summary_by_table%2Ftable_io_waits_summary_by_table.go;fp=performance_schema%2Ftable_io_waits_summary_by_table%2Ftable_io_waits_summary_by_table.go;h=8c9620bd9d7e54e693d01428af329934c2651c94;hb=52d3c00ce729f908f342e10f48818b112dec0130;hp=6f8a232e5a862a340e26662d02c291a3528b50ef;hpb=b958730449ac1d927c267373a68b9ae54b72c454;p=pstop.git diff --git a/performance_schema/table_io_waits_summary_by_table/table_io_waits_summary_by_table.go b/p_s/table_io_waits_summary_by_table/table_io_waits_summary_by_table.go similarity index 94% rename from performance_schema/table_io_waits_summary_by_table/table_io_waits_summary_by_table.go rename to p_s/table_io_waits_summary_by_table/table_io_waits_summary_by_table.go index 6f8a232..8c9620b 100644 --- a/performance_schema/table_io_waits_summary_by_table/table_io_waits_summary_by_table.go +++ b/p_s/table_io_waits_summary_by_table/table_io_waits_summary_by_table.go @@ -1,4 +1,4 @@ -// performance_schema - library routines for pstop. +// p_s - library routines for pstop. // // This file contains the library routines for managing the // table_io_waits_by_table table. @@ -10,13 +10,13 @@ import ( "time" "github.com/sjmudd/pstop/lib" - ps "github.com/sjmudd/pstop/performance_schema" + "github.com/sjmudd/pstop/p_s" ) // a table of rows type Table_io_waits_summary_by_table struct { - ps.RelativeStats - ps.InitialTime + p_s.RelativeStats + p_s.InitialTime want_latency bool initial table_io_waits_summary_by_table_rows // initial data for relative values current table_io_waits_summary_by_table_rows // last loaded values @@ -42,14 +42,14 @@ func (t *Table_io_waits_summary_by_table) Collect(dbh *sql.DB) { lib.Logger.Println("t.current collected", len(t.current), "row(s) from SELECT") if len(t.initial) == 0 && len(t.current) > 0 { - lib.Logger.Println("t.initial: copying from t.current (initial setup)" ) + lib.Logger.Println("t.initial: copying from t.current (initial setup)") t.initial = make(table_io_waits_summary_by_table_rows, len(t.current)) copy(t.initial, t.current) } // check for reload initial characteristics if t.initial.needs_refresh(t.current) { - lib.Logger.Println( "t.initial: copying from t.current (data needs refreshing)" ) + lib.Logger.Println("t.initial: copying from t.current (data needs refreshing)") t.initial = make(table_io_waits_summary_by_table_rows, len(t.current)) copy(t.initial, t.current) } @@ -58,8 +58,8 @@ func (t *Table_io_waits_summary_by_table) Collect(dbh *sql.DB) { // lib.Logger.Println( "t.initial:", t.initial ) // lib.Logger.Println( "t.current:", t.current ) - lib.Logger.Println("t.initial.totals():", t.initial.totals() ) - lib.Logger.Println("t.current.totals():", t.current.totals() ) + lib.Logger.Println("t.initial.totals():", t.initial.totals()) + lib.Logger.Println("t.current.totals():", t.current.totals()) // lib.Logger.Println("t.results:", t.results) // lib.Logger.Println("t.totals:", t.totals) lib.Logger.Println("Table_io_waits_summary_by_table.Collect() END, took:", time.Duration(time.Since(start)).String())