From a46369128cb3df3d729a0f6f8f300d99f4c3cff6 Mon Sep 17 00:00:00 2001 From: graydon Date: Tue, 29 Nov 2005 01:06:47 +0000 Subject: [ChangeLog] 2005-11-28 Graydon Hoare * translate.cxx (var::assert_hist_compatible): New method. (var::hist): New method. (c_unparser::load_aggregate): New method. (hist_op_downcaster): Remove, it was a mistake. (expression_is_hist_op): Likewise. (c_tmpcounter::visit_print_format): Implement print(@hist(...)). (c_unparser::visit_print_format): Likewise. * staptree.h (struct print_format): Add optional hist_op* member. * staptree.cxx (traversing_visitor::visit_functioncall): Visit hist_op if present in print_format. (deep_copy_visitor::visit_print_format): Likewise. * parse.cxx (parse_symbol): Special case to consume print(@hist(...)). * elaborate.cxx (typeresolution_info::visit_arrayindex): Fix type inference bug. (typeresolution_info::visit_foreach_loop): Likewise. * testsuite/buildok/print_histograms.stp: New test. [runtime/ChangeLog] 2005-11-28 Graydon Hoare * stat-common.c (_stp_stat_print_histogram): Various formatting corrections and aesthetic tweaks. (__stp_stat_add): Correction to linear bucket underflow cases. --- staptree.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'staptree.h') diff --git a/staptree.h b/staptree.h index 5c98507a..b5420693 100644 --- a/staptree.h +++ b/staptree.h @@ -306,8 +306,13 @@ struct print_format: public expression } }; + print_format() + : hist(NULL) + {} + std::vector components; std::vector args; + hist_op *hist; static std::string components_to_string(std::vector const & components); static std::vector string_to_components(std::string const & str); -- cgit