| /developtools/smartperf_host/trace_streamer/src/cfg/ |
| D | trace_streamer_config.h | 183 std::map<SupportedTraceEventType, std::string> eventNameMap_ = {}; 184 std::map<StatType, std::string> eventErrorDescMap_ = {}; 185 std::map<StatSeverityLevel, std::string> serverityLevelDescMap_ = {}; 191 std::map<MemInfoType, std::string> memNameMap_ = {}; 193 std::map<uint32_t, std::string> sysMemNameMap_ = {}; 195 std::map<uint32_t, std::string> sysVirtualMemNameMap_ = {}; 239 const std::string TRACE_ACTION_BINDER_TRANSACTION = "binder_transaction"; 240 const std::string TRACE_ACTION_BINDER_TRANSACTION_RECEIVED = "binder_transaction_received"; 241 const std::string TRACE_ACTION_SCHED_SWITCH = "sched_switch"; 242 const std::string TRACE_ACTION_SCHED_BLOCKED_REASON = "sched_blocked_reason"; [all …]
|
| /developtools/hdc/src/common/ |
| D | define.h | 29 const string IPV4_MAPPING_PREFIX = "::ffff:"; 30 const string DEFAULT_SERVER_ADDR_IP = "::ffff:127.0.0.1"; 31 const string DEFAULT_SERVER_ADDR = "::ffff:127.0.0.1:8710"; 32 const string ENV_SERVER_PORT = "OHOS_HDC_SERVER_PORT"; 67 const string HDC_HOST_DAEMON_BUF_SEPARATOR = "\f"; 70 const string WHITE_SPACES = " \t\n\r"; 71 const string UT_TMP_PATH = "/tmp/hdc-ut"; 72 const string LOG_FILE_NAME = "hdc.log"; 73 const string LOG_BAK_NAME = "hdclast.log"; 74 const string LOG_CACHE_NAME = ".hdc.cache.log"; [all …]
|
| D | transfer.h | 28 string options; 29 string path; 30 string optionalName; 34 string functionName; 35 string clientCwd; 36 string reserve1; 37 string reserve2; 43 string context; 44 string fullName; 71 string localName; [all …]
|
| /developtools/smartperf_host/trace_streamer/src/metrics/ |
| D | metrics.h | 42 const std::string TRACE_MEM = "trace_mem"; 43 const std::string TRACE_MEM_TOP_TEN = "trace_mem_top10"; 44 const std::string TRACE_MEM_UNAGG = "trace_mem_unagg"; 45 const std::string TRACE_TASK_NAMES = "trace_task_names"; 46 const std::string TRACE_STATS = "trace_stats"; 47 const std::string TRACE_METADATA = "trace_metadata"; 48 const std::string SYS_CALLS = "sys_calls"; 49 const std::string PROCESS_METRICES = "process_metrics:{"; 50 const std::string PROCESS_NAME = "process_name:"; 51 const std::string OVERALL_COUNTERS = "overall_counters:{"; [all …]
|
| /developtools/hiperf/interfaces/innerkits/native/include/ |
| D | hiperf_client.h | 26 static const std::string HiperfCommandName = "hiperf"; 27 static const std::string SystemBinPath = "/system/bin/"; 28 static const std::string TempBinPath = "/data/local/tmp/"; 29 static const std::string CurrentPath = "./"; 30 static const std::string PerfDataName = "perf.data"; 32 static const std::string ReplyOK = "OK\n"; 33 static const std::string ReplyFAIL = "FAIL\n"; 34 static const std::string ReplyStart = "START\n"; 35 static const std::string ReplyStop = "STOP\n"; 36 static const std::string ReplyPause = "PAUSE\n"; [all …]
|
| /developtools/profiler/host/smartperf/client/client_command/ |
| D | parse_radar.cpp | 29 double Radar::ParseRadarStart(std::string str) in ParseRadarStart() 32 std::string target = "\"E2E_LATENCY\":"; in ParseRadarStart() 36 double Radar::ParseRadarStartResponse(std::string string) in ParseRadarStartResponse() argument 39 std::string target = "\"RESPONSE_LATENCY\":"; in ParseRadarStartResponse() 40 time = std::stod(extract_string(string, target)); in ParseRadarStartResponse() 43 std::string Radar::ParseRadarAppStrart(std::string string) in ParseRadarAppStrart() argument 45 std::string animationCompleteTime = extract_string(string, "\"ANIMATION_LATENCY\":"); in ParseRadarAppStrart() 46 std::string completeTime = extract_string(string, "\"E2E_LATENCY\":"); in ParseRadarAppStrart() 47 std::string responseTime = extract_string(string, "\"RESPONSE_LATENCY\":"); in ParseRadarAppStrart() 48 … std::string firstFrameDrawnTime = extract_string(string, "\"FIRST_FRAEM_DRAWN_LATENCY\":"); in ParseRadarAppStrart() [all …]
|
| D | sp_utils.cpp | 31 bool SPUtils::FileAccess(const std::string &fileName) in FileAccess() 35 bool SPUtils::HasNumber(const std::string& str) in HasNumber() 41 bool SPUtils::Cmp(const std::string& a, const std::string& b) in Cmp() 44 std::string str1 = a.substr(0, a.find_first_of("0123456789")); in Cmp() 45 std::string str2 = b.substr(0, b.find_first_of("0123456789")); in Cmp() 56 bool SPUtils::LoadFile(const std::string &filePath, std::string &content) in LoadFile() 78 bool SPUtils::LoadCmd(const std::string &cmd, std::string &result) in LoadCmd() 80 std::string cmdExc = cmd; in LoadCmd() 98 std::string SPUtils::IncludePathDelimiter(const std::string &path) in IncludePathDelimiter() 107 void SPUtils::ForDirFiles(const std::string &path, std::vector<std::string> &files) in ForDirFiles() [all …]
|
| /developtools/profiler/host/smartperf/client/client_command/include/ |
| D | common.h | 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") }, [all …]
|
| D | sp_utils.h | 31 bool HasNumber(const std::string& str); 32 bool Cmp(const std::string &a, const std::string &b); 41 bool FileAccess(const std::string &fileName); 50 bool LoadFile(const std::string &filePath, std::string &content); 59 bool LoadCmd(const std::string &cmd, std::string &result); 66 std::string IncludePathDelimiter(const std::string &path); 72 void ForDirFiles(const std::string &path, std::vector<std::string> &files); 82 bool IsSubString(const std::string &str, const std::string &sub); 90 void StrSplit(const std::string &content, const std::string &sp, std::vector<std::string> &out); 97 std::string ExtractNumber(const std::string &str); [all …]
|
| D | parse_trace.h | 23 double ParseTraceCold(const std::string &fileNamePath, const std::string &appPid); 24 double ParseTraceHot(const std::string &fileNamePath); 25 double ParseNohTrace(const std::string &fileNamePath, const std::string &appPid); 26 double ParseTraceNoh(const std::string &fileNamePath, const std::string &appPid); 27 double ParseCodeTrace(const std::string &fileNamePath, const std::string &appPid); 28 double ParseHotTrace(const std::string &fileNamePath); 29 static double GetTime(std::string start, std::string end); 30 std::string GetStartTime(std::string line, const std::string &startTimeBefore); 31 std::string GetWindowTime(std::string line, std::string wt); 32 std::string GetFrameId(std::string line, std::string appPid, std::string fid); [all …]
|
| D | parse_radar.h | 25 double ParseRadarStart(std::string string); 26 double ParseRadarStartResponse(std::string string); 27 double ParseRadarResponse(std::string string); 28 std::string ParseRadarAppStrart(std::string string); 29 double ParseRadarComplete(std::string string); 30 std::string extract_string(const std::string& str, const std::string& target); 31 std::string ParseRadarFrame(std::string string);
|
| /developtools/smartperf_host/trace_streamer/src/rpc/ |
| D | ffrt_converter.h | 39 std::string name; 43 std::string state = "none"; 45 std::string prevWakeLog; 51 bool RecoverTraceAndGenerateNewFile(const std::string& ffrtFileName, std::ofstream& outFile); 55 int ExtractProcessId(const std::string& log); 56 std::string ExtractTimeStr(const std::string& log); 57 std::string ExtractCpuId(const std::string& log); 58 TypeFfrtPid ClassifyLogsForFfrtWorker(vector<std::string>& results); 59 void FindFfrtProcessAndClassifyLogs(std::string& log, 63 void ClassifySchedSwitchLogs(std::string& log, [all …]
|
| /developtools/hdc/src/host/ |
| D | ext_client.h | 20 extern std::map<std::string, std::string> g_lists; 26 std::string connectKey; 27 std::string containerInOut; 30 void ExecuteCommand(const string &command); 36 void Version(const std::string &str); 37 static void Help(const std::string &str); 38 void Discover(const std::string &str); 39 void Start(const std::string &str); 40 void Kill(const std::string &str); 41 void ListTargets(const std::string &str); [all …]
|
| /developtools/global_resource_tool/include/ |
| D | resource_util.h | 35 …static void Split(const std::string &str, std::vector<std::string> &out, const std::string &splitt… 43 …static void StringReplace(std::string &sourceStr, const std::string &oldStr, const std::string &ne… 50 static bool FileExist(const std::string &path); 57 static bool RmoveAllDir(const std::string &path); 65 static bool OpenJsonFile(const std::string &path, Json::Value &root); 73 static bool SaveToJsonFile(const std::string &path, const Json::Value &root); 80 static ResType GetResTypeByDir(const std::string &name); 87 static std::string ResTypeToString(ResType type); 95 static std::string GetIdName(const std::string &name, ResType type); 103 … static std::string ComposeStrings(const std::vector<std::string> &contents, bool addNull = false); [all …]
|
| D | file_entry.h | 30 FilePath(const std::string &path); 32 FilePath Append(const std::string &path); 33 FilePath ReplaceExtension(const std::string &extension); 35 const std::string &GetPath() const; 36 const std::string &GetFilename() const; 37 const std::string &GetExtension() const; 38 const std::vector<std::string> GetSegments() const; 42 std::string filePath_; 43 std::string filename_; 44 std::string parent_; [all …]
|
| /developtools/profiler/device/plugins/ftrace_plugin/include/ |
| D | ftrace_fs_ops.h | 32 static std::string GetFtraceRoot(); 33 std::string GetHmTraceDir(); 34 int WriteTraceFile(const std::string& path, const std::string& content); 35 int WriteTraceFile(const std::string& path, const std::string& content, int flags); 36 std::string ReadTraceFile(const std::string& path) const; 38 MOCKABLE std::string GetKernelSymbols() const; 39 MOCKABLE std::string GetPrintkFormats() const; 41 MOCKABLE std::string GetProcessComm(int pid); 42 MOCKABLE std::string GetThreadComm(int pid, int tid); 46 MOCKABLE std::string GetSavedCmdLines() const; [all …]
|
| /developtools/hiperf/test/unittest/common/native/include/ |
| D | symbols_file_test.h | 27 static const std::string PATH_KALLSYMS = "/proc/kallsyms"; 28 static const std::string PATH_NOT_EXISTS = "data/"; 29 static const std::string PATH_DATA_TEMP = "/."; 30 static const std::string PATH_DATA_TEMP_WINDOS = "\\."; 31 static const std::string PATH_ILLEGAL = "!@#$%^&*()"; 32 static const std::string PATH_RESOURCE_TEST_DATA = "resource/testdata/"; 33 static const std::string PATH_RESOURCE_TEST_DATA_NO_ENDPATH = "resource/testdata"; 36 static const std::string TEST_SYMBOLS_FILE_ELF {"symbols_file_test_elf32"}; 37 static const std::string TEST_FILE_ELF = "elf32_test"; 38 static const std::string TEST_FILE_ELF_STRIPPED = "elf32_test_stripped"; [all …]
|
| D | option_test.h | 27 static std::string TEST_OPTION_CMD_EMPTY = ""; 28 static std::string TEST_OPTION_CMD_NO_PREFIX = "TEST_OPTION_CMD"; 29 static std::string TEST_OPTION_CMD_ERR_PREFIX = "TEST_OPTION_CMD"; 30 static std::string TEST_OPTION_CMD_1 = "-TEST_OPTION_CMD_1"; 31 static std::string TEST_OPTION_CMD_2 = "-TEST_OPTION_CMD_2"; 32 static std::string TEST_OPTION_CMD_3 = "-TEST_OPTION_CMD_3"; 33 static std::string TEST_NO_OPTION_CMD = "TEST_NO_OPTION_CMD"; 34 static std::string TEST_OPTION_BRIEF = " TEST_BRIEF\n"; 35 static std::string TEST_OPTION_HELP = " TEST_HELP\n"; 37 static std::string OPTION_NAME = "--debug"; [all …]
|
| /developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/include/ |
| D | symbols_file_test.h | 27 static const std::string PATH_KALLSYMS = "/proc/kallsyms"; 28 static const std::string PATH_NOT_EXISTS = "data/"; 29 static const std::string PATH_DATA_TEMP = "/."; 30 static const std::string PATH_DATA_TEMP_WINDOS = "\\."; 31 static const std::string PATH_ILLEGAL = "!@#$%^&*()"; 32 static const std::string PATH_RESOURCE_TEST_DATA = "resource/testdata/"; 33 static const std::string PATH_RESOURCE_TEST_DATA_NO_ENDPATH = "resource/testdata"; 36 static const std::string TEST_SYMBOLS_FILE_ELF {"symbols_file_test_elf32"}; 37 static const std::string TEST_FILE_ELF = "elf32_test"; 38 static const std::string TEST_FILE_ELF_STRIPPED = "elf32_test_stripped"; [all …]
|
| /developtools/profiler/device/services/ipc/include/ |
| D | ipc_generator_impl.h | 29 std::string serviceName_; 30 std::map<int, std::string> methodList_; 31 std::map<int, std::string> requestList_; 32 std::map<int, std::string> responseList_; 34 bool AddMethod(std::string method, std::string request, std::string response) in AddMethod() 54 std::string SetNames(std::string fileName, std::string packageName); 55 bool AddService(std::string serviceName); 56 bool AddServiceMethod(std::string serviceName, 57 std::string methodName, 58 std::string requestName, [all …]
|
| /developtools/hiperf/test/unittest/common/native/ |
| D | subcommand_dump_test.cpp | 43 void TestDumpCommand(const std::string &option, bool expect = true) const; 69 void SubCommandDumpTest::TestDumpCommand(const std::string &option, bool expect) const in TestDumpCommand() 73 std::string cmdString = "dump"; in TestDumpCommand() 85 std::string stringOut = stdoutRecord.Stop(); in TestDumpCommand() 105 std::string cmdString = "dump -i /data/test/resource/testdata/report/perf.data.libreport"; 107 std::string stringOut = stdoutRecord.Stop(); 113 EXPECT_EQ(stringOut.find("magic: PERFILE2") != std::string::npos, true); 211 std::string cmdString = "dump -i /data/test/resource/testdata/dwarf.compress.data"; 213 std::string stringOut = stdoutRecord.Stop(); 215 EXPECT_EQ(stringOut.find("hiperf_stack_table") != std::string::npos, true); [all …]
|
| /developtools/profiler/device/plugins/native_daemon/include/ |
| D | utilities.h | 92 const std::string EMPTY_STRING = ""; 99 const char *HoldStringView(const std::string& view) in HoldStringView() 129 std::unordered_set<std::string> stringSet_{STRING_POOL_SIZE}; 133 std::string StringReplace(std::string source, const std::string &from, const std::string &to); 136 std::string VectorToString(const std::vector<T> &items) in VectorToString() 138 if constexpr (std::is_same<T, std::vector<std::string>>::value) { in VectorToString() 139 std::vector<std::string> stringItems; in VectorToString() 145 std::string itemsString; in VectorToString() 146 const std::string split = ","; in VectorToString() 150 if constexpr (std::is_same<T, std::string>::value) { in VectorToString() [all …]
|
| /developtools/hiperf/include/ |
| D | utilities.h | 94 std::string CanonicalizeSpecPath(const char* src); 95 const std::string EMPTY_STRING = ""; 97 const std::string USER_DOMESTIC_BETA = "beta"; 100 static const std::string USER_TYPE_PARAM = "const.logsystem.versiontype"; 101 static const std::string USER_TYPE_PARAM_GET = ""; 102 static const std::string SAVED_CMDLINES = "/sys/kernel/tracing/saved_cmdlines"; 135 std::string StringReplace(std::string source, const std::string &from, const std::string &to); 138 std::string VectorToString(const std::vector<T> &items) in VectorToString() 140 if constexpr (std::is_same<T, std::vector<std::string>>::value) { in VectorToString() 141 std::vector<std::string> stringItems; in VectorToString() [all …]
|
| /developtools/profiler/hiebpf/include/ |
| D | command_helper.h | 31 int Start(int* argc, char*** argv, const std::string& help); 34 void DoHelp(const std::string& help); 58 const std::array<const std::string, NR_SUPPORTED_ARGS> SUPPORTED_ARGS { 79 const std::string tipHelp_ { 83 const std::string helpHelp_ { 122 const std::string outputFileHelp_ { 125 const std::string excludeTracerHelp_ { 128 const std::string maxStackDepthHelp_ { 131 const std::string durationHelp_ { 134 const std::string eventsHelp_ { [all …]
|
| /developtools/profiler/device/plugins/ftrace_plugin/src/ |
| D | ftrace_fs_ops.cpp | 43 std::string FtraceFsOps::GetFtraceRoot() in GetFtraceRoot() 45 std::vector<std::string> testRootPath = {"/sys/kernel/tracing", "/sys/kernel/debug/tracing"}; in GetFtraceRoot() 57 std::string FtraceFsOps::GetHmTraceDir() in GetHmTraceDir() 66 int FtraceFsOps::WriteTraceFile(const std::string& path, const std::string& content) in WriteTraceFile() 83 int FtraceFsOps::WriteTraceFile(const std::string& path, const std::string& content, int flags) in WriteTraceFile() 100 std::string FtraceFsOps::ReadTraceFile(const std::string& path) const in ReadTraceFile() 109 std::string FtraceFsOps::GetPrintkFormats() const in GetPrintkFormats() 114 std::string GetKptrRestrict() in GetKptrRestrict() 119 bool SetKptrRestrict(const std::string& value) in SetKptrRestrict() 124 std::string FtraceFsOps::GetKernelSymbols() const in GetKernelSymbols() [all …]
|