/developtools/smartperf_host/trace_streamer/src/base/ |
D | string_to_numerical.h | 27 namespace base { 40 inline std::string number(uint64_t value, int32_t base = INTEGER_RADIX_TYPE_DEC) 43 if (base == INTEGER_RADIX_TYPE_DEC) { 45 } else if (base == INTEGER_RADIX_TYPE_HEX) { 60 std::optional<T> StrToInt(const std::string& str, int32_t base = INTEGER_RADIX_TYPE_DEC) 66 value = static_cast<T>(std::strtoul(str.c_str(), &endPtr, base)); 68 value = static_cast<T>(std::strtol(str.c_str(), &endPtr, base)); 70 value = static_cast<T>(std::strtoull(str.c_str(), &endPtr, base)); 72 value = static_cast<T>(std::strtoll(str.c_str(), &endPtr, base));
|
D | numerical_to_string.h | 22 namespace base { 29 std::string str = "0x" + base::number(inputNumber, base::INTEGER_RADIX_TYPE_HEX); in Uint64ToHexText()
|
/developtools/smartperf_host/trace_streamer/src/parser/rawtrace_parser/ |
D | printk_formats_processor.cpp | 40 auto addrStr = "0x" + base::number(addr, base::INTEGER_RADIX_TYPE_HEX); in GetSymbol() 56 std::string addrInfo = base::Strip(curLine.substr(0, pos)); in HandlePrintkSyms() 57 addr = base::StrToInt<uint64_t>(addrInfo, base::INTEGER_RADIX_TYPE_HEX).value(); in HandlePrintkSyms() 58 curSymbol = base::Strip(curLine.substr(pos + 1)); in HandlePrintkSyms()
|
D | kernel_symbols_processor.cpp | 64 symbol.addr = base::StrToInt<uint64_t>(addrStr, base::INTEGER_RADIX_TYPE_HEX).value(); in HandleKallSyms() 69 if (base::EndWith(symbol.name, ".cfi")) { in HandleKallSyms()
|
/developtools/profiler/device/plugins/native_hook/src/ |
D | runtime_stack_range.cpp | 62 static long long CvtStrToInt(const char* str, int base) in CvtStrToInt() argument 65 if (base >= BASE_MIN && base <= BASE_CENTRE) { in CvtStrToInt() 67 if (*str >= '0' && *str <= '0' + base - 1) { in CvtStrToInt() 68 result = result * base + static_cast<long long>((*str) - '0'); in CvtStrToInt() 74 } else if (base > BASE_CENTRE && base <= BASE_MAX) { in CvtStrToInt() 76 if (*str >= '0' && *str <= '0' + base - 1) { in CvtStrToInt() 77 result = result * base + static_cast<long long>(*str) - '0'; in CvtStrToInt() 78 } else if (*str >= 'a' && *str <= 'a' + base - 0x0a - 1) { in CvtStrToInt() 79 result = result * base + static_cast<long long>(*str) - 'a' + 0x0a; in CvtStrToInt() 80 } else if (*str >= 'A' && *str <= 'A' + base - 0x0a - 1) { in CvtStrToInt() [all …]
|
/developtools/smartperf_host/trace_streamer/test/unittest/pbreader/ |
D | parser_pbreader_test.cpp | 54 int32_t fd(base::OpenFile(tracePath, O_RDONLY, G_FILE_PERMISSION)); 57 auto rsize = base::Read(fd, buf.get(), readSize); 97 int32_t fd(base::OpenFile(tracePath, O_RDONLY, G_FILE_PERMISSION)); 100 auto rsize = base::Read(fd, buf.get(), readSize); 139 int32_t fd(base::OpenFile(tracePath, O_RDONLY, G_FILE_PERMISSION)); 142 auto rsize = base::Read(fd, buf.get(), readSize); 182 int32_t fd(base::OpenFile(tracePath, O_RDONLY, G_FILE_PERMISSION)); 185 auto rsize = base::Read(fd, buf.get(), readSize); 225 int32_t fd(base::OpenFile(noHeaderPerfPath, O_RDONLY, G_FILE_PERMISSION)); 228 auto rsize = base::Read(fd, buff.get(), readSize); [all …]
|
/developtools/smartperf_host/trace_streamer/src/parser/bytrace_parser/ |
D | bytrace_hilog_parser.cpp | 50 std::optional<uint32_t> optionalYear = base::StrToInt<uint32_t>(yearStr); in HilogTimeStrToTimestamp() 58 timeInfo.tm_mon = base::StrToInt<uint32_t>(monthStr).value() - 1; in HilogTimeStrToTimestamp() 59 timeInfo.tm_mday = base::StrToInt<uint32_t>(dayStr).value(); in HilogTimeStrToTimestamp() 60 timeInfo.tm_hour = base::StrToInt<uint32_t>(hourStr).value(); in HilogTimeStrToTimestamp() 61 timeInfo.tm_min = base::StrToInt<uint32_t>(minStr).value(); in HilogTimeStrToTimestamp() 62 timeInfo.tm_sec = base::StrToInt<uint32_t>(secStr).value(); in HilogTimeStrToTimestamp() 64 nsec = base::StrToInt<uint64_t>(usecStr).value(); in HilogTimeStrToTimestamp() 101 std::optional<uint32_t> optionalPid = base::StrToInt<uint32_t>(pidStr); in ParseHilogDataItem() 109 std::optional<uint32_t> optionalTid = base::StrToInt<uint32_t>(tidStr); in ParseHilogDataItem()
|
D | bytrace_event_parser.cpp | 187 auto prevPrioValue = base::StrToInt<int32_t>(args.at("prev_prio")); in SchedSwitchEvent() 188 auto nextPrioValue = base::StrToInt<int32_t>(args.at("next_prio")); in SchedSwitchEvent() 189 auto prevPidValue = base::StrToInt<uint32_t>(args.at("prev_pid")); in SchedSwitchEvent() 190 auto nextPidValue = base::StrToInt<uint32_t>(args.at("next_pid")); in SchedSwitchEvent() 232 auto tid = base::StrToInt<int32_t>(args.at("pid")); in BlockedReason() 237 auto iowait = base::StrToInt<int32_t>(iowaitIt->second); in BlockedReason() 240 auto delay = base::StrToInt<int32_t>(args.at("delay")); in BlockedReason() 268 auto pidValue = base::StrToInt<uint32_t>(args.at("pid")); in TaskRenameEvent() 295 std::optional<uint32_t> wakePidValue = base::StrToInt<uint32_t>(args.at("pid")); in SchedWakeupEvent() 308 std::optional<uint32_t> targetCpu = base::StrToInt<uint32_t>(args.at("target_cpu")); in SchedWakeupEvent() [all …]
|
/developtools/profiler/device/plugins/ftrace_plugin/tools/device_kernel_version/default/event_formatters/ |
D | BUILD.gn | 16 import("../../../../../../base/config.gni") 30 "${OHOS_PROFILER_DIR}/device/base/include", 31 "//commonlibrary/c_utils/base/include", 43 [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ] 47 "//commonlibrary/c_utils/base:utils_config",
|
/developtools/profiler/device/plugins/arkts_plugin/ |
D | BUILD.gn | 15 import("../../base/config.gni") 26 "../../base/include/", 28 "${OHOS_PROFILER_DIR}/device/base/include", 37 "../../base:hiprofiler_base", 47 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
|
/developtools/profiler/device/services/shared_memory/ |
D | BUILD.gn | 15 import("../../base/config.gni") 20 "../../base/include", 23 "//commonlibrary/c_utils/base/include", 34 "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config", 74 "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config",
|
/developtools/profiler/device/plugins/ftrace_plugin/test/ |
D | BUILD.gn | 15 import("../../../base/config.gni") 56 "${OHOS_PROFILER_DIR}/device/base/include", 59 "//commonlibrary/c_utils/base/include", 77 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ] 85 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ] 93 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
|
/developtools/profiler/device/services/ipc/ |
D | BUILD.gn | 15 import("../../base/config.gni") 30 "../../base/include", 45 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ] 59 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ] 80 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
|
/developtools/smartperf_host/trace_streamer/src/filter/ |
D | perf_data_filter.cpp | 70 …auto nameIndex = traceDataCache_->GetDataIndex("@0x" + base::number(ips[i], base::INTEGER_RADIX_TY… in Finish() 80 … base::number(ips[i] & flag, base::INTEGER_RADIX_TYPE_HEX)); in Finish() 89 … "+0x" + base::number(traceDataCache_->GetPerfCallChainData()->VaddrInFiles()[i] & flag)); in Finish()
|
D | task_pool_filter.cpp | 49 for (base::PartingString ss(taskPoolStr, ','); ss.Next();) { in TaskPoolFieldSegmentation() 52 for (base::PartingString inner(ss.GetCur(), ':'); inner.Next();) { in TaskPoolFieldSegmentation() 95 auto executeId = base::StrToInt<uint32_t>(args.at(" executeId ")); in UpdateAssignData() 96 auto priority = base::StrToInt<uint32_t>(args.at(" priority ")); in UpdateAssignData() 97 auto executeState = base::StrToInt<uint32_t>(args.at(" executeState ")); in UpdateAssignData() 117 auto executeId = base::StrToInt<uint32_t>(args.at(" executeId ")); in UpdateExecuteData() 144 auto executeId = base::StrToInt<uint32_t>(args.at(" executeId ")); in UpdateReturnData()
|
/developtools/smartperf_host/trace_streamer/test/unittest/htrace/ |
D | hisys_event_parser_test.cpp | 39 namespace base { namespace 40 auto num0 = SysTuning::base::number(15, SysTuning::base::INTEGER_RADIX_TYPE_DEC); 41 auto num1 = SysTuning::base::number(15, SysTuning::base::INTEGER_RADIX_TYPE_HEX); 79 EXPECT_TRUE(base::num0 == "15"); 80 EXPECT_TRUE(base::num1 == "f");
|
/developtools/profiler/device/plugins/api/ |
D | BUILD.gn | 15 import("../../base/config.gni") 21 "../../base/include/", 37 "../../base/include/", 55 "../../base:hiprofiler_base", 61 "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config",
|
/developtools/profiler/device/plugins/ftrace_plugin/tools/device_kernel_version/default/event_parsers/ |
D | BUILD.gn | 16 import("../../../../../../base/config.gni") 24 "${OHOS_PROFILER_DIR}/device/base/include", 25 "//commonlibrary/c_utils/base/include", 37 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
|
/developtools/profiler/device/plugins/hilog_plugin/ |
D | BUILD.gn | 15 import("../../base/config.gni") 28 "${OHOS_PROFILER_DIR}/device/base/include", 36 "../../base:hiprofiler_base", 43 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
|
/developtools/profiler/device/plugins/hisysevent_plugin/ |
D | BUILD.gn | 15 import("../../base/config.gni") 27 "${OHOS_PROFILER_DIR}/device/base/include", 32 "${OHOS_PROFILER_DIR}/device/base:hiprofiler_base", 43 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
|
/developtools/profiler/device/services/profiler_service/ |
D | BUILD.gn | 15 import("../../base/config.gni") 19 "//commonlibrary/c_utils/base/include", 25 "${OHOS_PROFILER_DIR}/device/base/include", 52 "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config", 88 "../../base:hiprofiler_base",
|
/developtools/profiler/device/plugins/ftrace_plugin/ |
D | BUILD.gn | 15 import("../../base/config.gni") 40 "../../base/include", 43 "${OHOS_PROFILER_DIR}/device/base/include", 45 "//commonlibrary/c_utils/base/include", 64 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
|
/developtools/profiler/device/plugins/hiperf_plugin/ |
D | BUILD.gn | 14 import("../../base/config.gni") 21 "../../base/include", 36 "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config", 42 "../../base:hiprofiler_base",
|
/developtools/smartperf_host/trace_streamer/src/trace_data/trace_stdtype/ftrace/template/ |
D | animation_stdtype.cpp | 100 physicalWidth_ = base::StrToInt<uint32_t>(matcheLine[++matcheIndex].str()).value(); in UpdateWidthAndHeight() 101 physicalHeight_ = base::StrToInt<uint32_t>(matcheLine[++matcheIndex].str()).value(); in UpdateWidthAndHeight() 137 xs_[index] = base::StrToInt<uint32_t>(matcheLine[++matcheIndex].str()).value(); in UpdatePosition() 138 ys_[index] = base::StrToInt<uint32_t>(matcheLine[++matcheIndex].str()).value(); in UpdatePosition() 139 widths_[index] = base::StrToInt<uint32_t>(matcheLine[++matcheIndex].str()).value(); in UpdatePosition() 140 heights_[index] = base::StrToInt<uint32_t>(matcheLine[++matcheIndex].str()).value(); in UpdatePosition()
|
/developtools/profiler/device/plugins/native_daemon/ |
D | BUILD.gn | 15 import("../../base/config.gni") 40 "../../base/include", 56 "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config", 84 "../../base/include", 117 "../../base:hiprofiler_base", 151 "../../base/include", 183 "../../base/include", 192 "../../base/src/common.cpp",
|