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.h | |
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.h')
-rw-r--r-- | gold/options.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h index a11b68c..9848639 100644 --- a/gold/options.h +++ b/gold/options.h @@ -169,6 +169,11 @@ class General_options is_static() const { return this->is_static_; } + // --statis: Print resource usage statistics. + bool + print_stats() const + { return this->print_stats_; } + // --sysroot: The system root of a cross-linker. const std::string& sysroot() const @@ -252,6 +257,10 @@ class General_options { this->is_static_ = true; } void + set_stats() + { this->print_stats_ = true; } + + void set_sysroot(const char* arg) { this->sysroot_ = arg; } @@ -275,6 +284,7 @@ class General_options Dir_list rpath_link_; bool is_shared_; bool is_static_; + bool print_stats_; std::string sysroot_; }; |