From: Julian Seward Date: Tue, 19 Jul 2005 12:17:51 +0000 (+0000) Subject: Add time stamps to XML START/FINISH indications. X-Git-Tag: svn/VALGRIND_3_0_0~136 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=038f2032c87a3a534bcb96c0ac5fbc141b97741d;p=thirdparty%2Fvalgrind.git Add time stamps to XML START/FINISH indications. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4182 --- diff --git a/README_XML_OUTPUT.txt b/README_XML_OUTPUT.txt index 3ad26967ca..b6852c855f 100644 --- a/README_XML_OUTPUT.txt +++ b/README_XML_OUTPUT.txt @@ -151,14 +151,18 @@ following in sequence: * The following, indicating that the program has now started: - RUNNING + RUNNING + human-readable-time-string + * Zero or more of (either ERROR or ERRORCOUNTS). * The following, indicating that the program has now finished, and that the wrapup (leak checking) is happening. - FINISHED + FINISHED + human-readable-time-string + * SUPPCOUNTS, indicating how many times each suppression was used. diff --git a/coregrind/m_main.c b/coregrind/m_main.c index da97ed5501..99e12370ca 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -2785,7 +2785,10 @@ int main(int argc, char **argv, char **envp) VGP_POPCC(VgpStartup); if (VG_(clo_xml)) { - VG_(message)(Vg_UserMsg, "RUNNING"); + HChar buf[50]; + VG_(ctime)(buf); + VG_(message)(Vg_UserMsg, " RUNNING " + "%s ", buf); VG_(message)(Vg_UserMsg, ""); } @@ -2880,11 +2883,14 @@ void VG_(shutdown_actions_NORETURN) ( ThreadId tid, VG_(message)(Vg_UserMsg, ""); if (VG_(clo_xml)) { + HChar buf[50]; if (VG_(needs).core_errors || VG_(needs).tool_errors) { VG_(show_error_counts_as_XML)(); VG_(message)(Vg_UserMsg, ""); } - VG_(message)(Vg_UserMsg, "FINISHED"); + VG_(ctime)(buf); + VG_(message)(Vg_UserMsg, " FINISHED " + "%s ", buf); VG_(message)(Vg_UserMsg, ""); }