OSDN Git Service

Simpleperf: refactor command system.
authorYabin Cui <yabinc@google.com>
Mon, 1 Jun 2015 18:21:37 +0000 (11:21 -0700)
committerYabin Cui <yabinc@google.com>
Thu, 4 Jun 2015 22:26:32 +0000 (15:26 -0700)
commitf79f07e13c56f7ca3be1435cea7f8861daf7efaa
tree8c76bac6fe4d9b52b69e57393f5deecb18febd97
parentd4637d6e7d17f48d9325fa133be82b06a408f523
Simpleperf: refactor command system.

Register a callback function to create a new command instance instead of
registering a command instance. Then we can release resources in the
command destructors, and don't need xxxCommandImpl classes any more.

Bug: 19483574
Change-Id: Ibb54892ec0655fd43909347afd72bb08bc8a716c
16 files changed:
simpleperf/cmd_dumprecord.cpp
simpleperf/cmd_dumprecord_test.cpp
simpleperf/cmd_help.cpp
simpleperf/cmd_list.cpp
simpleperf/cmd_list_test.cpp
simpleperf/cmd_record.cpp
simpleperf/cmd_record_test.cpp
simpleperf/cmd_stat.cpp
simpleperf/cmd_stat_test.cpp
simpleperf/command.cpp
simpleperf/command.h
simpleperf/command_test.cpp
simpleperf/main.cpp
simpleperf/utils.cpp
simpleperf/utils.h
simpleperf/workload.cpp