remove unwanted codes

pull/820/head
Xiang Li 2013-08-01 18:00:10 -07:00
parent 78cb651d93
commit ce95c8ba67
2 changed files with 0 additions and 9 deletions

View File

@ -7,8 +7,6 @@ import (
"net/http"
)
import _ "net/http/pprof"
// Parts from this transporter were heavily influenced by Peter Bougon's
// raft implementation: https://github.com/peterbourgon/raft

View File

@ -4,8 +4,6 @@ import (
"fmt"
"net"
"net/http"
"os"
"runtime/pprof"
"sync"
"testing"
"time"
@ -78,10 +76,6 @@ func runTestHttpServers(t *testing.T, servers *[]*Server, transporter *HTTPTrans
// Wait for configuration to propagate.
time.Sleep(testHeartbeatTimeout * 2)
f, _ := os.Create("raftprof")
pprof.StartCPUProfile(f)
c := make(chan bool)
start := time.Now()
@ -94,7 +88,6 @@ func runTestHttpServers(t *testing.T, servers *[]*Server, transporter *HTTPTrans
}
end := time.Now()
fmt.Println(end.Sub(start), "commands ", 1000*20)
pprof.StopCPUProfile()
// Wait for configuration to propagate.
time.Sleep(testHeartbeatTimeout * 2)