|
GDB (xrefs)
|
#include "index-cache.h"
Public Member Functions | |
| void | set_directory (std::string dir) |
| bool | enabled () const |
| void | enable () |
| void | disable () |
| void | store (dwarf2_per_objfile *per_objfile) |
| gdb::array_view< const gdb_byte > | lookup_gdb_index (const bfd_build_id *build_id, std::unique_ptr< index_cache_resource > *resource) |
| unsigned int | n_hits () const |
| void | hit () |
| unsigned int | n_misses () const |
| void | miss () |
Private Member Functions | |
| std::string | make_index_filename (const bfd_build_id *build_id, const char *suffix) const |
Private Attributes | |
| std::string | m_dir |
| bool | m_enabled = false |
| unsigned int | m_n_hits = 0 |
| unsigned int | m_n_misses = 0 |
Definition at line 37 of file index-cache.h.
| void index_cache::disable | ( | ) |
Definition at line 82 of file index-cache.c.
References index_cache_debug, and m_enabled.
Referenced by set_index_cache_enabled_command().
| void index_cache::enable | ( | ) |
Definition at line 72 of file index-cache.c.
References index_cache_debug, m_dir, and m_enabled.
Referenced by set_index_cache_enabled_command().
|
inline |
Definition at line 44 of file index-cache.h.
References m_enabled.
Referenced by gdb.printing.FlagEnumerationPrinter::__call__(), gdb.printing.SubPrettyPrinter::__init__(), gdb.types.TypePrinter::__init__(), gdb.unwinder.Unwinder::__init__(), gdb.xmethod.XMethod::__init__(), gdb.xmethod.XMethodMatcher::__init__(), gdb.printing.PrettyPrinter::__init__(), get_index_cache_enabled_command(), hit(), miss(), show_index_cache_command(), and store().
|
inline |
Definition at line 73 of file index-cache.h.
References enabled(), and m_n_hits.
Referenced by dwarf2_initialize_objfile().
| gdb::array_view< const gdb_byte > index_cache::lookup_gdb_index | ( | const bfd_build_id * | build_id, |
| std::unique_ptr< index_cache_resource > * | resource | ||
| ) |
Definition at line 230 of file index-cache.c.
Referenced by get_gdb_index_contents_from_cache(), and get_gdb_index_contents_from_cache_dwz().
|
private |
Definition at line 241 of file index-cache.c.
References build_id_to_string(), and m_dir.
|
inline |
Definition at line 84 of file index-cache.h.
References enabled(), and m_n_misses.
Referenced by dwarf2_initialize_objfile().
|
inline |
Definition at line 69 of file index-cache.h.
References m_n_hits.
Referenced by show_index_cache_stats_command().
|
inline |
Definition at line 80 of file index-cache.h.
References m_n_misses.
Referenced by show_index_cache_stats_command().
| void index_cache::set_directory | ( | std::string | dir | ) |
Definition at line 60 of file index-cache.c.
References index_cache_debug, and m_dir.
Referenced by set_index_cache_directory_command().
| void index_cache::store | ( | dwarf2_per_objfile * | per_objfile | ) |
Definition at line 92 of file index-cache.c.
References build_id_bfd_get(), build_id_to_string(), dwarf2_get_dwz_file(), dwz_file::dwz_bfd, enabled(), dwz_file::filename(), objfile::flags, GDB_INDEX, index_cache_debug, m_dir, objfile::obfd, OBJF_NOT_FILENAME, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_per_objfile::per_bfd, and write_dwarf_index().
Referenced by dwarf2_build_psymtabs().
|
private |
Definition at line 99 of file index-cache.h.
Referenced by enable(), make_index_filename(), set_directory(), and store().
|
private |
Definition at line 102 of file index-cache.h.
|
private |
Definition at line 105 of file index-cache.h.
|
private |
Definition at line 106 of file index-cache.h.
Referenced by miss(), and n_misses().