mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-01-10 00:18:27 +01:00
Speed up testing for multiple functions at an address on Posix
The way this was originally written blows up on large enough targets (like...Chromium :/). This change adds a set for amortized constant time lookup of whether a FUNC already exists at a given address. Bug: google-breakpad:751 Change-Id: I10a322da70f769c106e1e5f5b2dc3dc3f79444fd Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/4031580 Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
442456a68c
commit
522bd2337a
2 changed files with 15 additions and 17 deletions
|
|
@ -472,6 +472,8 @@ class Module {
|
|||
// point to.
|
||||
FileByNameMap files_; // This module's source files.
|
||||
FunctionSet functions_; // This module's functions.
|
||||
// Used to quickly look up whether a function exists at a particular address.
|
||||
unordered_set<Address> function_addresses_;
|
||||
|
||||
// The module owns all the call frame info entries that have been
|
||||
// added to it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue