|
@ -3,9 +3,9 @@ package needle |
|
|
import ( |
|
|
import ( |
|
|
"fmt" |
|
|
"fmt" |
|
|
"log" |
|
|
"log" |
|
|
|
|
|
"os" |
|
|
"runtime" |
|
|
"runtime" |
|
|
"testing" |
|
|
"testing" |
|
|
"os" |
|
|
|
|
|
|
|
|
|
|
|
. "github.com/chrislusf/seaweedfs/weed/storage/types" |
|
|
. "github.com/chrislusf/seaweedfs/weed/storage/types" |
|
|
"github.com/chrislusf/seaweedfs/weed/util" |
|
|
"github.com/chrislusf/seaweedfs/weed/util" |
|
@ -22,7 +22,7 @@ go test -run TestMemoryUsage -memprofile=mem.out |
|
|
go tool pprof --alloc_space needle.test mem.out |
|
|
go tool pprof --alloc_space needle.test mem.out |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
func TestMemoryUsage(t *testing.T) { |
|
|
func TestMemoryUsage(t *testing.T) { |
|
|
|
|
|
|
|
|