Commit 401ec6aa authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Drop timing of dispatch; dispatching is now less than 10% of request

latency.
parent 3cd084d7
......@@ -41,7 +41,6 @@ type request struct {
// Start timestamp for timing info.
startNs int64
dispatchNs int64
preWriteNs int64
}
......@@ -184,7 +183,6 @@ func (me *MountState) discardRequest(req *request) {
me.LatencyMap.AddMany(
[]LatencyArg{
{opname, "", dt},
{opname + "-dispatch", "", req.dispatchNs - req.startNs},
{opname + "-write", "", endNs - req.preWriteNs}})
}
}
......@@ -293,10 +291,6 @@ func (me *MountState) handle(req *request) {
}
func (me *MountState) dispatch(req *request, handler *operationHandler) {
if me.LatencyMap != nil {
req.dispatchNs = time.Nanoseconds()
}
if me.Debug {
nm := ""
// TODO - reinstate filename printing.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment