stat/stat_test.go

19 lines
287 B
Go
Raw Permalink Normal View History

2021-11-11 03:02:53 +00:00
package stat
import (
"fmt"
"testing"
)
func TestStat(t *testing.T) {
fmt.Printf("%+v\n", GetProfile())
buf := make([][]int, 1024)
for i := range buf {
buf[i] = make([]int, 1024)
for j := 0; j < len(buf[i]); j++ {
buf[i][j] = 20
}
}
fmt.Printf("%+v\n", GetProfile())
}