diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-12 05:51:25 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-12 05:51:25 +0000 |
commit | e44fcf3bcf912ddf4ce94f9c3f71c253d473d692 (patch) | |
tree | 3f5de3fdbbc7b5ba332f8d2123f017c2e8437ce6 /gold/options.cc | |
parent | 6ca8706da5d2154ee86544024f708fda30efba26 (diff) | |
download | gdb-e44fcf3bcf912ddf4ce94f9c3f71c253d473d692.zip gdb-e44fcf3bcf912ddf4ce94f9c3f71c253d473d692.tar.gz gdb-e44fcf3bcf912ddf4ce94f9c3f71c253d473d692.tar.bz2 |
Add --stats option to print runtime and memory usage statistics.
Diffstat (limited to 'gold/options.cc')
-rw-r--r-- | gold/options.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/options.cc b/gold/options.cc index 89f4ff4..89eecf6 100644 --- a/gold/options.cc +++ b/gold/options.cc @@ -348,6 +348,8 @@ options::Command_line_options::options[] = NULL, ONE_DASH, &General_options::set_shared), GENERAL_NOARG('\0', "static", N_("Do not link against shared libraries"), NULL, ONE_DASH, &General_options::set_static), + GENERAL_NOARG('\0', "stats", N_("Print resource usage statistics"), + NULL, TWO_DASHES, &General_options::set_stats), GENERAL_ARG('\0', "sysroot", N_("Set target system root directory"), N_("--sysroot DIR"), TWO_DASHES, &General_options::set_sysroot), POSDEP_NOARG('\0', "as-needed", @@ -388,6 +390,7 @@ General_options::General_options() rpath_link_(), is_shared_(false), is_static_(false), + print_stats_(false), sysroot_() { } |