Home
last modified time | relevance | path

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

12345678910>>...49

/developtools/smartperf_host/trace_streamer/src/cfg/
Dtrace_streamer_config.h189 std::map<SupportedTraceEventType, std::string> eventNameMap_ = {};
190 std::map<StatType, std::string> eventErrorDescMap_ = {};
191 std::map<StatSeverityLevel, std::string> serverityLevelDescMap_ = {};
197 std::map<MemInfoType, std::string> memNameMap_ = {};
199 std::map<uint32_t, std::string> sysMemNameMap_ = {};
201 std::map<uint32_t, std::string> sysVirtualMemNameMap_ = {};
233 const std::string TRACE_ACTION_BINDER_TRANSACTION = "binder_transaction";
234 const std::string TRACE_ACTION_BINDER_TRANSACTION_RECEIVED = "binder_transaction_received";
235 const std::string TRACE_ACTION_SCHED_SWITCH = "sched_switch";
236 const std::string TRACE_ACTION_SCHED_BLOCKED_REASON = "sched_blocked_reason";
[all …]
/developtools/profiler/host/smartperf/client/client_command/include/
Dcommon.h50 const std::unordered_map<MessageType, std::string> MESSAGE_MAP = {
51 { MessageType::GET_CPU_NUM, std::string("get_cpu_num") },
52 { MessageType::GET_CPU_FREQ_LOAD, std::string("get_cpu_freq_load") },
53 { MessageType::SET_PKG_NAME, std::string("set_pkgName") },
54 { MessageType::SET_PROCESS_ID, std::string("set_pid") },
55 { MessageType::GET_FPS_AND_JITTERS, std::string("get_fps_and_jitters") },
56 { MessageType::GET_GPU_FREQ, std::string("get_gpu_freq") },
57 { MessageType::GET_GPU_LOAD, std::string("get_gpu_load") },
58 { MessageType::GET_DDR_FREQ, std::string("get_ddr_freq") },
59 { MessageType::GET_RAM_INFO, std::string("get_ram_info") },
[all …]
Dsp_utils.h28 static T StringToSometype(const std::string& str) in StringToSometype()
45 bool HasNumber(const std::string &str);
46 bool Cmp(const std::string &a, const std::string &b);
55 bool FileAccess(const std::string &fileName);
64 bool LoadFile(const std::string &filePath, std::string &content);
73 bool LoadCmdWithLinkBreak(const std::string &cmd, bool isClearLinkBreak, std::string &result);
81 bool LoadCmd(const std::string &cmd, std::string &result);
88 std::string IncludePathDelimiter(const std::string &path);
94 void ForDirFiles(const std::string &path, std::vector<std::string> &files);
104 bool IsSubString(const std::string &str, const std::string &sub);
[all …]
Dparse_radar.h25 double ParseRadarStart(const std::string &string) const;
26 double ParseRadarStartResponse(const std::string &string) const;
27 double ParseRadarResponse(const std::string &string) const;
28 …double ParseRadarDelayTime(const std::string &string, const std::string &target, const int &delayT…
29 std::string ParseRadarAppStrart(const std::string &string) const;
30 double ParseRadarComplete(const std::string &string) const;
31 std::string ExtractString(const std::string &str, const std::string &target) const;
32 std::string ParseRadarFrame(const std::string &string) const;
33 std::string ParseRadarMaxFrame(const std::string &string) const;
34 int GetMaxDelayTime(const int &delayTime, std::vector<std::string> &delayTimeVec) const;
[all …]
Dsp_task.h38 const std::map<ExceptionMsg, std::string> EXCEPTION_MSG_MAP = {
55 std::string sessionId = "";
56 std::string packageName = "";
57 std::vector<std::string> taskConfig = {};
69 ErrCode InitTask(const std::string &recvStr);
70 ErrCode StartTask(std::function<void(std::string data)> msgTask);
72 std::string GetCurrentTimeAsString();
73 std::map<std::string, std::string> DetectionAndGrab();
74 bool CheckTcpParam(std::string str, std::string &errorInfo);
75 std::future<std::map<std::string, std::string>> AsyncCollectRam();
[all …]
DTemperature.h24 std::vector<std::string> collectNodes = { std::string("soc_thermal"), std::string("system_h"),
25 std::string("soc-thermal"), std::string("gpu"),
26 … std::string("shell_frame"), std::string("shell_front"),
27 std::string("shell_back"), std::string("Battery"),
28 std::string("cluster0"), std::string("gpu-thermal"),
29 … std::string("drmos_gpu_npu"), std::string("npu_thermal")};
30 std::map<std::string, std::string> ItemData() override;
36 … void GetTempInfos(std::map<std::string, std::string> &result, std::string type, std::string temp);
42 std::string thermalBasePath = "/sys/class/thermal";
/developtools/smartperf_host/trace_streamer/src/metrics/
Dmetrics.h43 const std::string TRACE_MEM = "trace_mem";
44 const std::string TRACE_MEM_TOP_TEN = "trace_mem_top10";
45 const std::string TRACE_MEM_UNAGG = "trace_mem_unagg";
46 const std::string TRACE_TASK_NAMES = "trace_task_names";
47 const std::string TRACE_STATS = "trace_stats";
48 const std::string TRACE_METADATA = "trace_metadata";
49 const std::string SYS_CALLS = "sys_calls";
50 const std::string PROCESS_METRICES = "process_metrics:{";
51 const std::string PROCESS_NAME = "process_name:";
52 const std::string OVERALL_COUNTERS = "overall_counters:{";
[all …]
/developtools/profiler/host/smartperf/client/client_command/
Dparse_radar.cpp32 double ParseRadar::ParseRadarStart(const std::string &string) const in ParseRadarStart()
35 std::string target = "\"E2E_LATENCY\":"; in ParseRadarStart()
36 time = SPUtilesTye::StringToSometype<double>(ExtractString(string, target)); in ParseRadarStart()
39 double ParseRadar::ParseRadarStartResponse(const std::string &string) const in ParseRadarStartResponse()
42 std::string target = "\"RESPONSE_LATENCY\":"; in ParseRadarStartResponse()
43 time = SPUtilesTye::StringToSometype<double>(ExtractString(string, target)); in ParseRadarStartResponse()
46 std::string ParseRadar::ParseRadarAppStrart(const std::string &string) const in ParseRadarAppStrart()
50 std::string animationCompleteTime = ExtractString(string, "\"ANIMATION_LATENCY\":"); in ParseRadarAppStrart()
51 double completeTime = ParseRadarDelayTime(string, targetComplete, delayTimeComplete); in ParseRadarAppStrart()
53 double responseTime = ParseRadarDelayTime(string, targetResponse, delayTimeResponse); in ParseRadarAppStrart()
[all …]
DRAM.cpp39 std::map<std::string, std::string> procRamInfoLast {
56 std::map<std::string, std::string> RAM::ItemData() in ItemData()
58 std::map<std::string, std::string> result; in ItemData()
59 std::map<std::string, std::string> sysRamInfo = RAM::GetSysRamInfo(); in ItemData()
64 std::map<std::string, std::string> procRamInfomation; in ItemData()
83 std::map<std::string, std::string> procMemInfo = RAM::ProcMemNaInfo(); in ItemData()
93 std::map<std::string, std::string> procRamInfo = RAM::GetRamInfo(); in ThreadGetPss()
115 std::map<std::string, std::string> RAM::ProcMemNaInfo() const in ProcMemNaInfo()
117 std::map<std::string, std::string> procMemInfo; in ProcMemNaInfo()
136 std::map<std::string, std::string> RAM::GetSysRamInfo() const in GetSysRamInfo()
[all …]
/developtools/hdc/src/common/
Ddefine.h30 const string IPV4_MAPPING_PREFIX = "::ffff:";
31 const string DEFAULT_SERVER_ADDR_IP = "::ffff:127.0.0.1";
32 const string DEFAULT_SERVER_ADDR = "::ffff:127.0.0.1:8710";
33 const string ENV_SERVER_PORT = "OHOS_HDC_SERVER_PORT";
34 const string ENV_SERVER_LOG = "OHOS_HDC_LOG_LEVEL";
108 const string HDC_HOST_DAEMON_BUF_SEPARATOR = "\f";
111 const string WHITE_SPACES = " \t\n\r";
112 const string UT_TMP_PATH = "/tmp/hdc-ut";
113 const string DEBUG_BUNDLE_PATH = "/mnt/debug/100/debug_hap/";
114 const string LOG_FILE_NAME = "hdc.log";
[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;
72 const string cmdOptionTstmp = "-a";
[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/packing_tool/ohos_packing_tool/frameworks/include/
Dconstants.h27 const std::string CMD_HELP = "help";
28 const std::string CMD_PACK = "pack";
29 const std::string CMD_UNPACK = "unpack";
31 const std::string MODE_HAP = "hap";
32 const std::string MODE_HSP = "hsp";
33 const std::string MODE_APP = "app";
34 const std::string MODE_HQF = "hqf";
35 const std::string MODE_APPQF = "appqf";
36 const std::string MODE_MULTIAPP = "multiApp";
37 const std::string MODE_VERSION_NORMALIZE = "versionNormalize";
[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);
64 static bool RmoveFile(const std::string &path);
72 static bool OpenJsonFile(const std::string &path, cJSON **root);
80 static bool SaveToJsonFile(const std::string &path, const cJSON *root);
87 static ResType GetResTypeByDir(const std::string &name);
94 static std::string ResTypeToString(ResType type);
102 static std::string GetIdName(const std::string &name, ResType type);
[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 …]
Dcompression_parser.h60 typedef TranscodeError (*ITranscodeImages) (const std::string &imagePath, const bool extAppend,
61 std::string &outputPath, TranscodeResult &result);
62 typedef bool (*ISetTranscodeOptions) (const std::string &optionJson, const std::string &optionJsonE…
63 typedef TranscodeError (*IScaleImage) (const std::string &imagePath, std::string &outputPath, Image…
67 static std::shared_ptr<CompressionParser> GetCompressionParser(const std::string &filePath);
70 explicit CompressionParser(const std::string &filePath);
73 bool CopyAndTranscode(const std::string &src, std::string &dst, const bool extAppend = false);
75 std::string PrintTransMessage();
77 void SetOutPath(const std::string &path);
79 …bool CheckAndScaleIcon(const std::string &src, const std::string &originDst, std::string &scaleDst…
[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/profiler/device/plugins/ftrace_plugin/include/
Dftrace_fs_ops.h31 static std::string GetFtraceRoot();
33 int WriteTraceFile(const std::string& path, const std::string& content);
34 int WriteTraceFile(const std::string& path, const std::string& content, int flags);
35 std::string ReadTraceFile(const std::string& path) const;
37 MOCKABLE std::string GetKernelSymbols() const;
38 MOCKABLE std::string GetPrintkFormats() const;
40 MOCKABLE std::string GetProcessComm(int pid);
41 MOCKABLE std::string GetThreadComm(int pid, int tid);
45 MOCKABLE std::string GetSavedCmdLines() const;
46 MOCKABLE std::string GetSavedTgids() const;
[all …]
/developtools/hiperf/test/unittest/common/native/
Dsubcommand_dump_test.cpp43 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/hiperf/interfaces/innerkits/native/include/
Dhiperf_client.h26 const std::string TempBinPath = "/data/local/tmp/";
27 const std::string ReplyOK = "OK\n";
28 const std::string ReplyFAIL = "FAIL\n";
29 const std::string ReplyStart = "START\n";
30 const std::string ReplyStop = "STOP\n";
31 const std::string ReplyPause = "PAUSE\n";
32 const std::string ReplyResume = "RESUME\n";
33 const std::string ReplyCheck = "CHECK\n";
41 void SetOutputFilename(const std::string &outputFilename) in SetOutputFilename()
48 const std::string GetOutputFileName() const in GetOutputFileName()
[all …]
/developtools/smartperf_host/trace_streamer/src/rpc/
Dffrt_converter.h37 std::string name;
41 std::string state = "none";
43 std::string prevWakeLog;
48 std::string name;
54 bool RecoverTraceAndGenerateNewFile(const std::string &ffrtFileName, std::ofstream &outFile);
60 std::string ExtractTimeStr(const std::string &log);
61 std::string ExtractCpuId(const std::string &log);
65 int FindIntNumberAfterStr(const size_t index, const string &str);
66 std::string FindSubStrAfterStr(const size_t index, const string &str);
67 std::string GetLabel(const std::string &line);
[all …]
/developtools/profiler/device/plugins/native_daemon/include/
Dutilities.h91 const std::string EMPTY_STRING = "";
98 const char *HoldStringView(const std::string& view) in HoldStringView()
128 std::unordered_set<std::string> stringSet_{STRING_POOL_SIZE};
132 std::string StringReplace(std::string source, const std::string &from, const std::string &to);
135 std::string VectorToString(const std::vector<T> &items) in VectorToString()
137 if constexpr (std::is_same<T, std::vector<std::string>>::value) { in VectorToString()
138 std::vector<std::string> stringItems; in VectorToString()
144 std::string itemsString; in VectorToString()
145 const std::string split = ","; in VectorToString()
149 if constexpr (std::is_same<T, std::string>::value) { in VectorToString()
[all …]

12345678910>>...49