Skip to content

Commit 4a93eb2

Browse files
committed
Remove debug
1 parent 1cff840 commit 4a93eb2

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

dump.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"fmt"
88
"io"
99
"reflect"
10-
"runtime"
1110
"text/template"
1211
"time"
1312
)
@@ -395,17 +394,6 @@ func (table *table) Stream() <-chan string {
395394
insert.WriteString(",")
396395
}
397396
b.WriteTo(&insert)
398-
399-
// debug
400-
var m runtime.MemStats
401-
runtime.ReadMemStats(&m)
402-
// For info on each, see: https://golang.org/pkg/runtime/#MemStats
403-
fmt.Print("\tBuffer = ", bToMiB(uint64(insert.Len())), " MiB")
404-
fmt.Print("\tCapacity = ", bToMiB(uint64(insert.Cap())), " MiB")
405-
fmt.Print("\tAlloc = ", bToMiB(m.Alloc), " MiB")
406-
fmt.Print("\tTotalAlloc = ", bToMiB(m.TotalAlloc), " MiB")
407-
fmt.Print("\tSys = ", bToMiB(m.Sys), " MiB")
408-
fmt.Print("\tNumGC = ", m.NumGC, "\n")
409397
}
410398
if insert.Len() != 0 {
411399
insert.WriteString(";")
@@ -414,7 +402,3 @@ func (table *table) Stream() <-chan string {
414402
}()
415403
return valueOut
416404
}
417-
418-
func bToMiB(b uint64) uint64 {
419-
return b / 1024 / 1024
420-
}

0 commit comments

Comments
 (0)