| /developtools/hiperf/test/unittest/common/native/ |
| D | subcommand_test.cpp | 36 class SubcommandObj : public SubCommand { 38 SubcommandObj() : SubCommand("subcomm", "test subcomm", "ut test subcomm") {} in SubcommandObj() 51 ASSERT_EQ(SubCommand::GetSubCommands().size(), 0u); in SetUp() 52 SubCommand::RegisterSubCommand(TEST_CMD_1, std::make_unique<SubCommandTest>(TEST_CMD_1)); in SetUp() 53 SubCommand::RegisterSubCommand(TEST_CMD_2, std::make_unique<SubCommandTest>(TEST_CMD_2)); in SetUp() 54 SubCommand::RegisterSubCommand(TEST_CMD_3, std::make_unique<SubCommandTest>(TEST_CMD_3)); in SetUp() 59 SubCommand::ClearSubCommands(); in TearDown() 60 ASSERT_EQ(SubCommand::GetSubCommands().size(), 0u); in TearDown() 70 EXPECT_EQ(SubCommand::RegisterSubCommand("", std::make_unique<SubCommandTest>(TEST_CMD_1)), 72 EXPECT_EQ(SubCommand::RegisterSubCommand("t", std::make_unique<SubCommandTest>(TEST_CMD_1)), [all …]
|
| D | subcommand_help_test.cpp | 39 class SubCommandTmp : public SubCommand { 42 : SubCommand(TEST_CMD_HLP, TEST_HLP_BRIEF, TEST_HLP_HELP) in SubCommandTmp() 54 ASSERT_EQ(SubCommand::GetSubCommands().size(), 0u); in SetUpTestCase() 60 SubCommand::ClearSubCommands(); in TearDownTestCase() 61 ASSERT_EQ(SubCommand::GetSubCommands().size(), 0u); in TearDownTestCase() 101 SubCommand::RegisterSubCommand(TEST_CMD_HLP, std::make_unique<SubCommandTmp>(TEST_CMD_HLP));
|
| D | command_test.cpp | 57 ASSERT_TRUE(SubCommand::RegisterSubCommand(subCommandAlwaysTure.get()->Name(), in SetUp() 59 ASSERT_TRUE(SubCommand::RegisterSubCommand(subCommandAlwaysFalse.get()->Name(), in SetUp() 65 SubCommand::ClearSubCommands(); in TearDown()
|
| D | subcommand_list_test.cpp | 164 SubCommand::ClearSubCommands(); 165 ASSERT_EQ(SubCommand::GetSubCommands().size(), 0u); 167 ASSERT_EQ(SubCommand::GetSubCommands().size(), 1u);
|
| D | option_debug_test.cpp | 55 SubCommand::RegisterSubCommand(TEST_CMD_NOTHING, in SetUp() 62 SubCommand::ClearSubCommands(); in TearDown()
|
| D | subcommand_dump_test.cpp | 48 SubCommand::ClearSubCommands(); in SetUpTestCase() 56 SubCommand::ClearSubCommands(); in SetUp() 57 ASSERT_EQ(SubCommand::GetSubCommands().size(), 0u); in SetUp() 59 ASSERT_EQ(SubCommand::GetSubCommands().size(), 1u); in SetUp() 64 ASSERT_EQ(SubCommand::GetSubCommands().size(), 1u); in TearDown() 65 SubCommand::ClearSubCommands(); in TearDown() 66 ASSERT_EQ(SubCommand::GetSubCommands().size(), 0u); in TearDown()
|
| D | subcommand_record_test.cpp | 90 SubCommand::ClearSubCommands(); // clear the subCommands left from other UT in SetUp() 91 ASSERT_EQ(SubCommand::GetSubCommands().size(), 0u); in SetUp() 93 ASSERT_EQ(SubCommand::GetSubCommands().size(), 1u); in SetUp() 98 ASSERT_EQ(SubCommand::GetSubCommands().size(), 1u); in TearDown() 99 SubCommand::ClearSubCommands(); in TearDown() 100 ASSERT_EQ(SubCommand::GetSubCommands().size(), 0u); in TearDown()
|
| D | subcommand_report_test.cpp | 58 ASSERT_EQ(SubCommand::GetSubCommands().size(), 0u); in SetUp() 60 SubCommand::RegisterSubCommand("TEST_CMD_1", std::make_unique<SubCommandTest>("TEST_CMD_1")); in SetUp() 65 SubCommand::ClearSubCommands(); in TearDown() 66 ASSERT_EQ(SubCommand::GetSubCommands().size(), 0u); in TearDown()
|
| D | subcommand_stat_test.cpp | 78 ASSERT_EQ(SubCommand::GetSubCommands().size(), 0u); in SetUp() 84 SubCommand::ClearSubCommands(); in TearDown() 85 ASSERT_EQ(SubCommand::GetSubCommands().size(), 0u); in TearDown()
|
| /developtools/hiperf/src/ |
| D | subcommand.cpp | 25 static std::map<std::string, std::unique_ptr<SubCommand>> g_SubCommandsMap; 29 bool SubCommand::OnSubCommandOptions(std::vector<std::string> args) in OnSubCommandOptions() 66 bool SubCommand::CheckRestartOption(std::string &appPackage, bool targetSystemWide, bool restart, in CheckRestartOption() 87 bool SubCommand::HandleSubCommandExclude(const std::vector<pid_t> &excludeTids, const std::vector<s… in HandleSubCommandExclude() 109 void SubCommand::ExcludeTidsFromSelectTids(const std::vector<pid_t> &excludeTids, std::vector<pid_t… in ExcludeTidsFromSelectTids() 128 void SubCommand::ExcludeThreadsFromSelectTids(const std::vector<std::string> &excludeThreadNames, in ExcludeThreadsFromSelectTids() 149 bool SubCommand::RegisterSubCommand(std::string cmdName, std::unique_ptr<SubCommand> subCommand) in RegisterSubCommand() 171 void SubCommand::ClearSubCommands() in ClearSubCommands() 177 const std::map<std::string, std::unique_ptr<SubCommand>> &SubCommand::GetSubCommands() in GetSubCommands() 182 SubCommand *SubCommand::FindSubCommand(std::string cmdName) in FindSubCommand()
|
| D | subcommand_help.cpp | 33 SubCommand::RegisterSubCommand("help", std::make_unique<SubCommandHelp>()); in RegisterSubCommandHelp() 49 auto &commands = SubCommand::GetSubCommands(); in OnHelp() 57 auto command = SubCommand::FindSubCommand(args.front()); in OnHelp()
|
| D | main.cpp | 88 SubCommand::ClearSubCommands(); in main()
|
| D | command.cpp | 49 auto subCommand = SubCommand::FindSubCommand(arguments.front()); in DispatchCommands()
|
| D | subcommand_list.cpp | 67 SubCommand::RegisterSubCommand("list", make_unique<SubCommandList>()); in RegisterSubCommandList()
|
| D | subcommand_report.cpp | 628 std::unique_ptr<SubCommand> cmd = std::make_unique<SubCommandReport>(); in RegisterSubCommandReport() 629 return SubCommand::RegisterSubCommand("report", std::move(cmd)); in RegisterSubCommandReport()
|
| D | subcommand_dump.cpp | 587 return SubCommand::RegisterSubCommand("dump", std::make_unique<SubCommandDump>()); in RegisterSubCommandDump()
|
| D | subcommand_record.cpp | 520 if (!SubCommand::HandleSubCommandExclude(excludeTids_, excludeThreadNames_, selectTids_)) { in CheckTargetPids() 1791 return SubCommand::RegisterSubCommand("record", std::make_unique<SubCommandRecord>()); in RegisterSubCommandRecord()
|
| /developtools/hiperf/include/ |
| D | subcommand.h | 24 class SubCommand { 26 SubCommand(const std::string &name, const std::string &brief, const std::string &help) in SubCommand() function 31 virtual ~SubCommand() {} in ~SubCommand() 78 static bool RegisterSubCommand(std::string, std::unique_ptr<SubCommand>); 81 static const std::map<std::string, std::unique_ptr<SubCommand>> &GetSubCommands(); 82 static SubCommand *FindSubCommand(std::string);
|
| D | subcommand_help.h | 23 class SubCommandHelp : public SubCommand { 27 : SubCommand("help", "Show more help information for hiperf", in SubCommandHelp()
|
| D | subcommand_list.h | 32 class SubCommandList : public SubCommand { 36 : SubCommand("list", "List the supported event types.", in SubCommandList()
|
| D | subcommand_dump.h | 34 class SubCommandDump : public SubCommand { 38 : SubCommand("dump", "Dump content of a perf data file, like perf.data", in SubCommandDump()
|
| D | subcommand_report.h | 46 class SubCommandReport : public SubCommand { 50 : SubCommand("report", "report sampling information from perf.data format file", in SubCommandReport()
|
| D | subcommand_stat.h | 25 class SubCommandStat : public SubCommand { 31 : SubCommand("stat", "Collect performance counter information", in SubCommandStat()
|
| D | subcommand_record.h | 42 class SubCommandRecord : public SubCommand { 63 : SubCommand("record", "Collect performance sample information", in SubCommandRecord()
|
| /developtools/hiperf/test/unittest/common/native/include/ |
| D | subcommand_test.h | 40 class SubCommandTest : public SubCommand { 42 explicit SubCommandTest(std::string name) : SubCommand(name, TEST_BRIEF, TEST_HELP) {} in SubCommandTest() 53 class MockSubCommand : public SubCommand { 55 explicit MockSubCommand(std::string name) : SubCommand(name, TEST_BRIEF, TEST_HELP) {} in MockSubCommand()
|