Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 1216) sorted by relevance

12345678910>>...49

/developtools/smartperf_host/trace_streamer/src/cfg/
Dtrace_streamer_config.h181 std::map<SupportedTraceEventType, std::string> eventNameMap_ = {};
182 std::map<StatType, std::string> eventErrorDescMap_ = {};
183 std::map<StatSeverityLevel, std::string> serverityLevelDescMap_ = {};
188 std::map<MemInfoType, std::string> memNameMap_ = {};
190 std::map<uint32_t, std::string> sysMemNameMap_ = {};
192 std::map<uint32_t, std::string> sysVirtualMemNameMap_ = {};
200 const std::string TRACE_ACTION_BINDER_TRANSACTION = "binder_transaction";
201 const std::string TRACE_ACTION_BINDER_TRANSACTION_RECEIVED = "binder_transaction_received";
202 const std::string TRACE_ACTION_SCHED_SWITCH = "sched_switch";
203 const std::string TRACE_ACTION_SCHED_BLOCKED_REASON = "sched_blocked_reason";
[all …]
/developtools/profiler/host/smartperf/trace_streamer/src/cfg/
Dtrace_streamer_config.h174 std::map<SupportedTraceEventType, std::string> eventNameMap_ = {};
175 std::map<StatType, std::string> eventErrorDescMap_ = {};
176 std::map<StatSeverityLevel, std::string> serverityLevelDescMap_ = {};
181 std::map<MemInfoType, std::string> memNameMap_ = {};
183 std::map<uint32_t, std::string> sysMemNameMap_ = {};
185 std::map<uint32_t, std::string> sysVirtualMemNameMap_ = {};
193 const std::string TRACE_ACTION_BINDER_TRANSACTION = "binder_transaction";
194 const std::string TRACE_ACTION_BINDER_TRANSACTION_RECEIVED = "binder_transaction_received";
195 const std::string TRACE_ACTION_SCHED_SWITCH = "sched_switch";
196 const std::string TRACE_ACTION_SCHED_BLOCKED_REASON = "sched_blocked_reason";
[all …]
/developtools/hdc/src/common/
Ddefine.h29 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";
62 const string WHITE_SPACES = " \t\n\r";
63 const string UT_TMP_PATH = "/tmp/hdc-ut";
64 const string LOG_FILE_NAME = "hdc.log";
65 const string LOG_BAK_NAME = "hdclast.log";
66 const string LOG_CACHE_NAME = ".hdc.cache.log";
68 const string SERVER_NAME = "HDCServer";
[all …]
Dtransfer.h28 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/hiperf/interfaces/innerkits/native/include/
Dhiperf_client.h26 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/include/
Dcommon.h40 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 …]
Dparse_trace.h23 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 …]
Dsp_utils.h30 bool FileAccess(const std::string &fileName);
39 bool LoadFile(const std::string &filePath, std::string &content);
48 bool LoadCmd(const std::string &cmd, std::string &result);
55 std::string IncludePathDelimiter(const std::string &path);
61 void ForDirFiles(const std::string &path, std::vector<std::string> &files);
71 bool IsSubString(const std::string &str, const std::string &sub);
79 void StrSplit(const std::string &content, const std::string &sp, std::vector<std::string> &out);
86 std::string ExtractNumber(const std::string &str);
91 void ReplaceString(std::string &res);
101 std::string GetTopPkgName();
[all …]
/developtools/hdc/src/host/
Dext_client.h20 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/
Dresource_util.h35 …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 …]
Dfile_entry.h30 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 …]
Dcmd_parser.h40 const std::vector<std::string> &GetInputs() const;
41 const std::string &GetPackageName() const;
42 const std::string &GetOutput() const;
43 const std::vector<std::string> &GetResourceHeaders() const;
45 const std::vector<std::string> &GetModuleNames() const;
46 const std::string &GetConfig() const;
47 const std::string &GetRestoolPath() const;
50 const std::vector<std::string> &GetAppend() const;
52 const std::string &GetDependEntry() const;
53 const std::string &GetIdDefinedOutput() const;
[all …]
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/include/
Dsymbols_file_test.h27 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/hiperf/test/unittest/common/native/include/
Dsymbols_file_test.h27 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 …]
Doption_test.h27 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/services/ipc/include/
Dipc_generator_impl.h29 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/include/
Dutilities.h93 std::string CanonicalizeSpecPath(const char* src);
94 const std::string EMPTY_STRING = "";
96 const std::string USER_DOMESTIC_BETA = "beta";
99 static const std::string USER_TYPE_PARAM = "const.logsystem.versiontype";
100 static const std::string USER_TYPE_PARAM_GET = "";
134 std::string StringReplace(std::string source, const std::string &from, const std::string &to);
137 std::string VectorToString(const std::vector<T> &items) in VectorToString()
139 if constexpr (std::is_same<T, std::vector<std::string>>::value) { in VectorToString()
140 std::vector<std::string> stringItems; in VectorToString()
146 std::string itemsString; in VectorToString()
[all …]
/developtools/profiler/device/plugins/ftrace_plugin/include/
Dftrace_fs_ops.h32 static std::string GetFtraceRoot();
34 MOCKABLE std::string GetKernelSymbols() const;
35 MOCKABLE std::string GetPrintkFormats() const;
37 MOCKABLE std::string GetProcessComm(int pid);
38 MOCKABLE std::string GetThreadComm(int pid, int tid);
42 MOCKABLE std::string GetSavedCmdLines() const;
43 MOCKABLE std::string GetSavedTgids() const;
44 MOCKABLE std::string GetPerCpuStats(int cpu) const;
45 MOCKABLE std::string GetRawTracePath(int cpu) const;
46 MOCKABLE std::string GetPageHeaderFormat() const;
[all …]
/developtools/profiler/hiebpf/include/
Dcommand_helper.h31 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/host/smartperf/client/client_command/
Dsp_utils.cpp30 bool SPUtils::FileAccess(const std::string &fileName) in FileAccess()
35 bool SPUtils::LoadFile(const std::string &filePath, std::string &content) in LoadFile()
57 bool SPUtils::LoadCmd(const std::string &cmd, std::string &result) in LoadCmd()
59 std::string cmdExc = cmd; in LoadCmd()
77 std::string SPUtils::IncludePathDelimiter(const std::string &path) in IncludePathDelimiter()
86 void SPUtils::ForDirFiles(const std::string &path, std::vector<std::string> &files) in ForDirFiles()
88 std::string pathStringWithDelimiter; in ForDirFiles()
104 pathStringWithDelimiter = IncludePathDelimiter(path) + std::string(ptr->d_name); in ForDirFiles()
107 files.push_back(IncludePathDelimiter(path) + std::string(ptr->d_name)); in ForDirFiles()
113 bool SPUtils::IsSubString(const std::string &str, const std::string &sub) in IsSubString()
[all …]
Dcontrol_call_cmd.cpp34 std::string ControlCallCmd::GetResult(int argc, std::vector<std::string> v) in GetResult()
88 std::string cmdResult; in PageFps()
90 …std::string traceName = std::string("/data/local/tmp/") + std::string("sp_trace_") + "fps" + ".ftr… in PageFps()
96 std::string ControlCallCmd::SlideFps(std::vector<std::string> v) in SlideFps()
100 std::string cmdResult; in SlideFps()
103 …std::string traceName = std::string("/data/local/tmp/") + std::string("sp_trace_") + "fps" + ".ftr… in SlideFps()
106 std::string fps = parseFPS.ParseTraceFile(traceName, v[typePKG]); in SlideFps()
109 std::string ControlCallCmd::SlideFPS(std::vector<std::string> v) in SlideFPS()
113 std::string cmdResult; in SlideFPS()
122 std::string pathJson = cmdResult.substr(position + 1, position2 - position + typePKG); in SlideFPS()
[all …]
/developtools/profiler/device/plugins/native_daemon/include/
Dutilities.h90 const std::string EMPTY_STRING = "";
118 std::string StringReplace(std::string source, const std::string &from, const std::string &to);
121 std::string VectorToString(const std::vector<T> &items) in VectorToString()
123 if constexpr (std::is_same<T, std::vector<std::string>>::value) { in VectorToString()
124 std::vector<std::string> stringItems; in VectorToString()
130 std::string itemsString; in VectorToString()
131 const std::string split = ","; in VectorToString()
135 if constexpr (std::is_same<T, std::string>::value) { in VectorToString()
147 std::string BufferToHexString(const std::vector<unsigned char> &vec);
148 std::string BufferToHexString(const unsigned char buf[], size_t size);
[all …]
Doption.h27 using argsVector = std::vector<std::string>;
33 std::string help;
34 std::function<bool(std::vector<std::string> &)> callBackFunction;
38 bool RegisterMainOption(const std::string &, const std::string &,
39 std::function<bool(std::vector<std::string> &)>);
43 bool CheckOptionFormat(const std::string &optionName);
45 argsVector::iterator FindOption(argsVector &args, const std::string &optionName);
48 bool GetValueFromString(const std::string &optionValue, const std::string &optionName, bool &value);
49 bool GetValueFromString(const std::string &optionValue, const std::string &optionName, int &);
50 bool GetValueFromString(const std::string &optionValue, const std::string &optionName,
[all …]
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dftrace_fs_ops.cpp43 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::GetPrintkFormats() const in GetPrintkFormats()
62 std::string GetKptrRestrict() in GetKptrRestrict()
67 bool SetKptrRestrict(const std::string& value) in SetKptrRestrict()
72 std::string FtraceFsOps::GetKernelSymbols() const in GetKernelSymbols()
74 std::string restrictValue = GetKptrRestrict(); in GetKernelSymbols()
83 std::string result = FileUtils::ReadFile("/proc/kallsyms"); in GetKernelSymbols()
92 std::string path = ftraceRoot_ + "/saved_cmdlines_size"; in SetSavedCmdLinesSize()
96 std::string FtraceFsOps::GetSavedCmdLines() const in GetSavedCmdLines()
[all …]
/developtools/profiler/device/cmds/include/
Dparse_plugin_config.h29 std::string GetPluginsConfig(std::string& content);
30 std::string GetPluginsPath(std::string& name);
31 … bool SetSerializePluginsConfig(const std::string& pluginName, ProfilerPluginConfig& pluginConfig);
33 bool SetSerializeCpuConfig(const std::string& pluginName, ProfilerPluginConfig& pluginConfig);
34 … bool SetSerializeDiskioConfig(const std::string& pluginName, ProfilerPluginConfig& pluginConfig);
35 … bool SetSerializeFtraceConfig(const std::string& pluginName, ProfilerPluginConfig& pluginConfig);
36 … bool SetSerializeHidumpConfig(const std::string& pluginName, ProfilerPluginConfig& pluginConfig);
37 … bool SetSerializeHiebpfConfig(const std::string& pluginName, ProfilerPluginConfig& pluginConfig);
38 bool SetSerializeHilogConfig(const std::string& pluginName, ProfilerPluginConfig& pluginConfig);
39 … bool SetSerializeMemoryConfig(const std::string& pluginName, ProfilerPluginConfig& pluginConfig);
[all …]

12345678910>>...49