summaryrefslogtreecommitdiffstats
path: root/git_version.sh
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-08-25 16:58:20 -0700
committerJosh Stone <jistone@redhat.com>2009-08-25 17:22:59 -0700
commit54558065ee8428cfdc42135f151739fbc787d034 (patch)
tree62b73a76f5f134a7075f7e80e0c8952c3710a61b /git_version.sh
parent3f46f8c2a94567956a1a722da6d13de84726c344 (diff)
downloadsystemtap-steved-54558065ee8428cfdc42135f151739fbc787d034.tar.gz
systemtap-steved-54558065ee8428cfdc42135f151739fbc787d034.tar.xz
systemtap-steved-54558065ee8428cfdc42135f151739fbc787d034.zip
Index mod_cu_function_cache_t by cu->addr
Rather than constructing a "module:cu" string all the time, we can just index the cache by the cu die's addr field. The addr will never change as long as the Dwarf object is still alive. This has a quite noticeable performance impact for scripts that iterate over lots of cus (like for syscall.*). * dwflpp.h (stap_map): Allow void* keys too. (mod_cu_function_cache_t): Index by the void* cu->addr. * dwflpp.cxx (dwflpp::iterate_over_functions): Index cu_function_cache by addr, and build the verbose strings manually when needed. (dwflpp::declaration_resolve): Index global_alias_cache by addr.
Diffstat (limited to 'git_version.sh')
0 files changed, 0 insertions, 0 deletions