File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 7
7
"fmt"
8
8
"io"
9
9
"reflect"
10
- "runtime"
11
10
"text/template"
12
11
"time"
13
12
)
@@ -395,17 +394,6 @@ func (table *table) Stream() <-chan string {
395
394
insert .WriteString ("," )
396
395
}
397
396
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 ("\t Buffer = " , bToMiB (uint64 (insert .Len ())), " MiB" )
404
- fmt .Print ("\t Capacity = " , bToMiB (uint64 (insert .Cap ())), " MiB" )
405
- fmt .Print ("\t Alloc = " , bToMiB (m .Alloc ), " MiB" )
406
- fmt .Print ("\t TotalAlloc = " , bToMiB (m .TotalAlloc ), " MiB" )
407
- fmt .Print ("\t Sys = " , bToMiB (m .Sys ), " MiB" )
408
- fmt .Print ("\t NumGC = " , m .NumGC , "\n " )
409
397
}
410
398
if insert .Len () != 0 {
411
399
insert .WriteString (";" )
@@ -414,7 +402,3 @@ func (table *table) Stream() <-chan string {
414
402
}()
415
403
return valueOut
416
404
}
417
-
418
- func bToMiB (b uint64 ) uint64 {
419
- return b / 1024 / 1024
420
- }
You can’t perform that action at this time.
0 commit comments