From: Nicholas Nethercote Date: Mon, 19 Dec 2005 22:48:06 +0000 (+0000) Subject: Remove remaining profiling gunk from Memcheck. X-Git-Tag: svn/VALGRIND_3_2_0~482 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=798fba199158ebd5bdb12c6894143967359edcb1;p=thirdparty%2Fvalgrind.git Remove remaining profiling gunk from Memcheck. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5387 --- diff --git a/memcheck/mac_leakcheck.c b/memcheck/mac_leakcheck.c index f6fae08559..7747dad92e 100644 --- a/memcheck/mac_leakcheck.c +++ b/memcheck/mac_leakcheck.c @@ -42,7 +42,6 @@ #include "pub_tool_machine.h" #include "pub_tool_mallocfree.h" #include "pub_tool_options.h" -#include "pub_tool_profile.h" // For mac_shared.h #include "pub_tool_signals.h" #include "mac_shared.h" diff --git a/memcheck/mac_malloc_wrappers.c b/memcheck/mac_malloc_wrappers.c index 727a303ae3..523dcf082d 100644 --- a/memcheck/mac_malloc_wrappers.c +++ b/memcheck/mac_malloc_wrappers.c @@ -39,7 +39,6 @@ #include "pub_tool_libcprint.h" #include "pub_tool_mallocfree.h" #include "pub_tool_options.h" -#include "pub_tool_profile.h" // For mac_shared.h #include "pub_tool_replacemalloc.h" #include "pub_tool_threadstate.h" #include "mac_shared.h" diff --git a/memcheck/mac_replace_strmem.c b/memcheck/mac_replace_strmem.c index 16301ff9f0..aae64cc012 100644 --- a/memcheck/mac_replace_strmem.c +++ b/memcheck/mac_replace_strmem.c @@ -32,7 +32,6 @@ #include "pub_tool_basics.h" #include "pub_tool_hashtable.h" -#include "pub_tool_profile.h" #include "pub_tool_redir.h" #include "pub_tool_tooliface.h" #include "valgrind.h" diff --git a/memcheck/mac_shared.c b/memcheck/mac_shared.c index bd303be2d2..592ac7987d 100644 --- a/memcheck/mac_shared.c +++ b/memcheck/mac_shared.c @@ -40,7 +40,6 @@ #include "pub_tool_mallocfree.h" #include "pub_tool_machine.h" #include "pub_tool_options.h" -#include "pub_tool_profile.h" // For mac_shared.h #include "pub_tool_replacemalloc.h" #include "pub_tool_threadstate.h" #include "mac_shared.h" diff --git a/memcheck/mac_shared.h b/memcheck/mac_shared.h index b62fbc5d82..bc080d9019 100644 --- a/memcheck/mac_shared.h +++ b/memcheck/mac_shared.h @@ -157,17 +157,9 @@ typedef /*------------------------------------------------------------*/ -/*--- Profiling of tools and memory events ---*/ +/*--- Profiling of memory events ---*/ /*------------------------------------------------------------*/ -typedef - enum { - VgpCheckMem = VgpFini+1, - VgpSetMem, - VgpESPAdj - } - VgpToolCC; - /* Define to collect detailed performance info. */ /* #define MAC_PROFILE_MEMORY */ diff --git a/memcheck/mc_main.c b/memcheck/mc_main.c index 4a845a2f1a..4dbcf0b2f7 100644 --- a/memcheck/mc_main.c +++ b/memcheck/mc_main.c @@ -47,7 +47,6 @@ #include "pub_tool_machine.h" #include "pub_tool_mallocfree.h" #include "pub_tool_options.h" -#include "pub_tool_profile.h" // For mac_shared.h #include "pub_tool_replacemalloc.h" #include "pub_tool_tooliface.h" #include "pub_tool_threadstate.h" @@ -2671,10 +2670,6 @@ static void mc_pre_clo_init(void) VG_(track_post_reg_write) ( & mc_post_reg_write ); VG_(track_post_reg_write_clientcall_return)( & mc_post_reg_write_clientcall ); - VG_(register_profile_event) ( VgpSetMem, "set-mem-perms" ); - VG_(register_profile_event) ( VgpCheckMem, "check-mem-perms" ); - VG_(register_profile_event) ( VgpESPAdj, "adjust-ESP" ); - /* Additional block description for VG_(describe_addr)() */ MAC_(describe_addr_supp) = client_perm_maybe_describe; diff --git a/memcheck/mc_translate.c b/memcheck/mc_translate.c index fbe6d6d280..520459b8a1 100644 --- a/memcheck/mc_translate.c +++ b/memcheck/mc_translate.c @@ -33,7 +33,6 @@ #include "pub_tool_hashtable.h" // For mac_shared.h #include "pub_tool_libcassert.h" #include "pub_tool_libcprint.h" -#include "pub_tool_profile.h" #include "pub_tool_tooliface.h" #include "mc_include.h"