]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix 376257 - helgrind history full speed up using a cached stack
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 2 Nov 2017 20:33:35 +0000 (21:33 +0100)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 2 Nov 2017 20:33:35 +0000 (21:33 +0100)
commit619fb35df7b3fba514da7298c8b428d1ec490f93
treed1e6d0fd65b6490da217ccaca92405c63bfb0673
parent6a55b1e82ccda3f0d663d2cc89eb543ae2d096bf
Fix 376257 - helgrind history full speed up using a cached stack

This patch implements the flag --delta-stacktrace=yes/no.
Yes indicates to calculate the full history stack traces by
changing just the last frame if no call/return instruction was
executed.
This can speed up helgrind by up to 25%.

This flags is currently set to yes only on linux x86 and amd64, as some
platform dependent validation of the used heuristics is needed before
setting the default to yes on a platform. See function check_cached_rcec_ok
in libhb_core.c for more details about how to validate/check the behaviour
on a new platform.
15 files changed:
NEWS
coregrind/m_debuginfo/debuginfo.c
coregrind/m_machine.c
coregrind/m_stacktrace.c
coregrind/pub_core_libcassert.h
helgrind/docs/hg-manual.xml
helgrind/hg_basics.c
helgrind/hg_basics.h
helgrind/hg_lock_n_thread.h
helgrind/hg_main.c
helgrind/libhb_core.c
include/pub_tool_debuginfo.h
include/pub_tool_libcassert.h
include/pub_tool_machine.h
include/pub_tool_stacktrace.h