summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhunt <hunt>2008-01-14 17:47:47 +0000
committerhunt <hunt>2008-01-14 17:47:47 +0000
commitd97870325d227b4c51e616a3d2ff8a521d89829f (patch)
treedc79bc10631141a57f09d74d4dc8b5fe509e5076
parent05de43cb8395b523d59de27dd964c6abe26e41e3 (diff)
downloadsystemtap-steved-d97870325d227b4c51e616a3d2ff8a521d89829f.tar.gz
systemtap-steved-d97870325d227b4c51e616a3d2ff8a521d89829f.tar.xz
systemtap-steved-d97870325d227b4c51e616a3d2ff8a521d89829f.zip
2008-01-14 Martin Hunt <hunt@redhat.com>
* translate.cxx (emit_module_exit): When using timing, delete timing stats when finished.
-rw-r--r--ChangeLog5
-rw-r--r--translate.cxx1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 28109604..97f08dde 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-14 Martin Hunt <hunt@redhat.com>
+
+ * translate.cxx (emit_module_exit): When using timing, delete timing
+ stats when finished.
+
2008-01-12 Frank Ch. Eigler <fche@elastic.org>
* configure.ac: Generate a build tree SNAPSHOT file from git-rev-list,
diff --git a/translate.cxx b/translate.cxx
index 27b28d5f..874e9dc1 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -1298,6 +1298,7 @@ c_unparser::emit_module_exit ()
o->newline() << "_stp_printf (\"probe %s (%s), hits: %lld, cycles: %lldmin/%lldavg/%lldmax\\n\",";
o->newline() << "probe_point, decl_location, (long long) stats->count, (long long) stats->min, (long long) avg, (long long) stats->max);";
o->newline(-1) << "}";
+ o->newline() << "_stp_stat_del (time_" << p->name << ");";
o->newline(-1) << "}";
}
}