• Home
  • Raw
  • Download

Lines Matching refs:string

40 const std::unordered_map<MessageType, std::string> messageMap = {
41 { MessageType::GET_CPU_NUM, std::string("get_cpu_num") },
42 { MessageType::GET_CPU_FREQ, std::string("get_cpu_freq") },
43 { MessageType::GET_CPU_LOAD, std::string("get_cpu_load") },
44 { MessageType::SET_PKG_NAME, std::string("set_pkgName") },
45 { MessageType::SET_PROCESS_ID, std::string("set_pid") },
46 { MessageType::GET_FPS_AND_JITTERS, std::string("get_fps_and_jitters") },
47 { MessageType::GET_GPU_FREQ, std::string("get_gpu_freq") },
48 { MessageType::GET_GPU_LOAD, std::string("get_gpu_load") },
49 { MessageType::GET_DDR_FREQ, std::string("get_ddr_freq") },
50 { MessageType::GET_RAM_INFO, std::string("get_ram_info") },
51 { MessageType::GET_TEMPERATURE, std::string("get_temperature") },
52 { MessageType::GET_POWER, std::string("get_power") },
53 { MessageType::GET_CAPTURE, std::string("get_capture") },
54 { MessageType::CATCH_TRACE_CONFIG, std::string("catch_trace_config") },
55 { MessageType::CATCH_TRACE_CMD, std::string("catch_trace_cmd") },
56 { MessageType::SET_DUBAI_DB, std::string("set_dubai_db") },
87 const std::unordered_map<std::string, CommandType> commandMap = {
88 { std::string("-N"), CommandType::CT_N }, { std::string("-PKG"), CommandType::CT_PKG },
89 { std::string("-PID"), CommandType::CT_PID }, { std::string("-OUT"), CommandType::CT_OUT },
90 { std::string("-c"), CommandType::CT_C }, { std::string("-g"), CommandType::CT_G },
91 { std::string("-f"), CommandType::CT_F }, { std::string("-f1"), CommandType::CT_F1 },
92 { std::string("-f2"), CommandType::CT_F1 }, { std::string("-t"), CommandType::CT_T },
93 { std::string("-p"), CommandType::CT_P }, { std::string("-r"), CommandType::CT_R },
94 …{ std::string("-trace"), CommandType::CT_TTRACE }, { std::string("-snapshot"), CommandType::CT_SNA…
95 { std::string("-hw"), CommandType::CT_HW }, { std::string("-d"), CommandType::CT_D },
96 …{ std::string("-INTERVAL"), CommandType::CT_INTERVAL }, { std::string("-SESSIONID"), CommandType:…
97 … { std::string("-net"), CommandType::CT_NET }, { std::string("-VIEW"), CommandType::CT_VIEW },
100 const std::unordered_map<CommandType, std::string> COMMAND_MAP_REVERSE = {
101 { CommandType::CT_N, std::string("-N") }, { CommandType::CT_PKG, std::string("-PKG") },
102 { CommandType::CT_PID, std::string("-PID") }, { CommandType::CT_OUT, std::string("-OUT") },
103 { CommandType::CT_C, std::string("-c") }, { CommandType::CT_G, std::string("-g") },
104 { CommandType::CT_F, std::string("-f") }, { CommandType::CT_F1, std::string("-f1") },
105 { CommandType::CT_F1, std::string("-f2") }, { CommandType::CT_T, std::string("-t") },
106 { CommandType::CT_P, std::string("-p") }, { CommandType::CT_R, std::string("-r") },
107 …{ CommandType::CT_TTRACE, std::string("-trace") }, { CommandType::CT_SNAPSHOT, std::string("-snaps…
108 { CommandType::CT_HW, std::string("-hw") }, { CommandType::CT_D, std::string("-d") },
109 …{ CommandType::CT_INTERVAL, std::string("-INTERVAL") }, { CommandType::CT_SESSIONID, std::string(…
110 … { CommandType::CT_NET, std::string("-net") }, { CommandType::CT_VIEW, std::string("-VIEW") },
114 const std::unordered_map<CommandHelp, std::string> commandHelpMap = {
115 { CommandHelp::HELP, std::string("--help") },
116 { CommandHelp::VERSION, std::string("--version") },
117 { CommandHelp::SCREEN, std::string("-screen") },