diff options
author | Ian Lance Taylor <iant@google.com> | 2007-12-05 00:48:49 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-12-05 00:48:49 +0000 |
commit | ad8f37d1ba63a4d799f35e2244b2facb0fedf59b (patch) | |
tree | 482c8bc7b18aa41c439f40f4d1dbe42a9229442b /gold/layout.cc | |
parent | 055f1d8ffcf99cdc50eb47e5cbfae62635b5c041 (diff) | |
download | gdb-ad8f37d1ba63a4d799f35e2244b2facb0fedf59b.zip gdb-ad8f37d1ba63a4d799f35e2244b2facb0fedf59b.tar.gz gdb-ad8f37d1ba63a4d799f35e2244b2facb0fedf59b.tar.bz2 |
Stringpool stats. Also make Symbol_table support functions inline.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r-- | gold/layout.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gold/layout.cc b/gold/layout.cc index 39008cd..1139cf1 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -1958,6 +1958,16 @@ Layout::write_sections_after_input_sections(Output_file* of) this->section_headers_->write(of); } +// Print statistical information to stderr. This is used for --stats. + +void +Layout::print_stats() const +{ + this->namepool_.print_stats("section name pool"); + this->sympool_.print_stats("output symbol name pool"); + this->dynpool_.print_stats("dynamic name pool"); +} + // Write_sections_task methods. // We can always run this task. |