From 72598e7aba34804477c8fd6a32dee0216d32ad98 Mon Sep 17 00:00:00 2001 From: Fumitoshi Ukai Date: Thu, 11 Jun 2015 15:53:09 +0900 Subject: eval stats for $(call xxx) --- func.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'func.go') diff --git a/func.go b/func.go index 0b6d16e..954a1d5 100644 --- a/func.go +++ b/func.go @@ -1056,6 +1056,7 @@ func (f *funcCall) Eval(w io.Writer, ev *Evaluator) { abuf := newBuf() fargs := ev.args(abuf, f.args[1:]...) variable := fargs[0] + te := traceEvent.begin("call", tmpval(variable)) Logf("call %q variable %q", f.args[1], variable) v := ev.LookupVar(string(variable)) // Evalualte all arguments first before we modify the table. @@ -1093,6 +1094,7 @@ func (f *funcCall) Eval(w io.Writer, ev *Evaluator) { restore() } ev.paramVars = oldParams + traceEvent.end(te) Logf("call %q variable %q return %q", f.args[1], variable, buf.Bytes()) freeBuf(abuf) } -- cgit v1.2.3