We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3612f86 commit 20ada42Copy full SHA for 20ada42
main.go
@@ -195,17 +195,21 @@ func (t *transport) gc(gen generation) {
195
}
196
req.Header.Set(gciHeader, gen.string())
197
atomic.StoreUint64(&t.shed, 0)
198
+
199
+ start := time.Now()
200
resp, err := client.Do(req)
201
if err != nil {
202
panic(fmt.Sprintf("Err trying to trigger gc:%q\n", err))
203
204
+ end := time.Now()
205
if resp.StatusCode != http.StatusOK {
206
panic(fmt.Sprintf("GC trigger returned status code which is no OK:%v\n", resp.StatusCode))
207
208
if resp != nil {
209
ioutil.ReadAll(resp.Body)
210
resp.Body.Close()
211
212
+ fmt.Printf("%s,%v", gen.string(), end.Sub(start).Nanoseconds()/1e3)
213
214
215
////////// PROXY
0 commit comments