diff options
author | Yabin Cui <yabinc@google.com> | 2015-04-20 18:07:17 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2015-04-23 14:45:23 -0700 |
commit | 323e945313b190373b3fcfe578e25ee8390a76d3 (patch) | |
tree | e5019d88e283415b0f3d6e14c1c91df740110145 /simpleperf/command.h | |
parent | 67d3abd7b26a741347b33402ad32f5c6735ca0bd (diff) | |
download | extras-323e945313b190373b3fcfe578e25ee8390a76d3.tar.gz |
Implement simpleperf stat subcommand.
Also add some simple unit-tests.
Change-Id: Ic30a2d4a879e028a8c82babbaf82e322fc49a838
Diffstat (limited to 'simpleperf/command.h')
-rw-r--r-- | simpleperf/command.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/simpleperf/command.h b/simpleperf/command.h index a2e1923a..46b49cbe 100644 --- a/simpleperf/command.h +++ b/simpleperf/command.h @@ -31,6 +31,7 @@ class Command { } virtual ~Command() { + UnRegisterCommand(this); } const std::string& Name() const { @@ -56,6 +57,7 @@ class Command { const std::string long_help_string_; static void RegisterCommand(Command* cmd); + static void UnRegisterCommand(Command* cmd); DISALLOW_COPY_AND_ASSIGN(Command); }; |