aboutsummaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-04-18 15:20:43 -0600
committerTom Tromey <tom@tromey.com>2022-04-12 09:31:16 -0600
commit46114cb7be362cae03025d65f1b3bcbb1c7e8df0 (patch)
tree5a76b89039171409089e8d7cdf5206019cb9404c /gprof
parentc748b24c47d2f94d2282ffa31d7484a732c18cfd (diff)
downloadgdb-46114cb7be362cae03025d65f1b3bcbb1c7e8df0.zip
gdb-46114cb7be362cae03025d65f1b3bcbb1c7e8df0.tar.gz
gdb-46114cb7be362cae03025d65f1b3bcbb1c7e8df0.tar.bz2
Parallelize DWARF indexing
This parallelizes the new DWARF indexer. The indexer's storage was designed so that each storage object and each indexer is fully independent. This setup makes it simple to scan different CUs independently. This patch creates a new cooked index storage object per thread, and then scans a subset of all the CUs in each such thread, using gdb's existing thread pool. In the ongoing "gdb gdb" example, this patch reduces the wall time down to 0.668923, from 0.903534. (Note that the 0.903534 is the time for the new index -- that is, when the "enable the new index" patch is rebased to before this one. However, in the final series, that patch appears toward the end. Hopefully this isn't too confusing.)
Diffstat (limited to 'gprof')
0 files changed, 0 insertions, 0 deletions