summaryrefslogtreecommitdiffstats
path: root/eshprof
diff options
context:
space:
mode:
Diffstat (limited to 'eshprof')
-rw-r--r--eshprof/flat-profile.esh2
1 files changed, 1 insertions, 1 deletions
diff --git a/eshprof/flat-profile.esh b/eshprof/flat-profile.esh
index 01201cc..ca00c5d 100644
--- a/eshprof/flat-profile.esh
+++ b/eshprof/flat-profile.esh
@@ -96,7 +96,7 @@ record()
shift 2
case " ${fns} " in
- "${name}")
+ *" ${name} "*)
eval "fn_timing_${name}=\$((\${fn_timing_${name}} + \
\${time}))"
eval "fn_calls_${name}=\$((\${fn_calls_${name}} + 1))"