| /developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/ |
| D | hashlist_test.cpp | 32 const std::size_t size_ {20}; 42 HashList<std::size_t, std::size_t> hashList {size_}; 46 for (std::size_t curSize = 0; curSize < size_; ++curSize) { 54 HashList<std::size_t, std::size_t> hashList {size_}; 56 for (std::size_t curSize = 0; curSize < size_; ++curSize) { 64 HashList<std::size_t, std::size_t> hashList {size_}; 65 std::size_t temp {125}; 67 for (std::size_t curSize = 0; curSize < size_; ++curSize) { 75 HashList<std::size_t, std::size_t> hashList {size_}; 76 for (std::size_t curSize = 0; curSize < size_; ++curSize) { [all …]
|
| /developtools/hiperf/test/unittest/common/native/ |
| D | hashlist_test.cpp | 32 const std::size_t size_ {20}; 42 HashList<std::size_t, std::size_t> hashList {size_}; 46 for (std::size_t curSize = 0; curSize < size_; ++curSize) { 54 HashList<std::size_t, std::size_t> hashList {size_}; 56 for (std::size_t curSize = 0; curSize < size_; ++curSize) { 64 HashList<std::size_t, std::size_t> hashList {size_}; 65 std::size_t temp {125}; 67 for (std::size_t curSize = 0; curSize < size_; ++curSize) { 75 HashList<std::size_t, std::size_t> hashList {size_}; 76 for (std::size_t curSize = 0; curSize < size_; ++curSize) { [all …]
|
| D | subcommand_record_test.cpp | 54 size_t GetFileSize(const char* fileName); 56 static constexpr size_t TEST_SIZE_F100_DWARF_SYSTEM = 1.4E4 * 1024; 57 static constexpr size_t TEST_SIZE_F500_DWARF_SYSTEM = 3.6E4 * 1024; 58 static constexpr size_t TEST_SIZE_F1000_DWARF_SYSTEM = 5.9E4 * 1024; 59 static constexpr size_t TEST_SIZE_F2000_DWARF_SYSTEM = 8.3E4 * 1024; 60 static constexpr size_t TEST_SIZE_F4000_DWARF_SYSTEM = 1.7E5 * 1024; 61 static constexpr size_t TEST_SIZE_F8000_DWARF_SYSTEM = 3.5E5 * 1024; 62 static constexpr size_t TEST_SIZE_F100_FP_SYSTEM = 8E3 * 1024; 63 static constexpr size_t TEST_SIZE_F500_FP_SYSTEM = 2E4 * 1024; 64 static constexpr size_t TEST_SIZE_F1000_FP_SYSTEM = 3E4 * 1024; [all …]
|
| /developtools/profiler/hiebpf/include/ |
| D | ringbuffer.h | 24 enum MemAlignShift:std::size_t { 32 const std::size_t bufSize = DEFAULT_SIZE, 47 inline std::size_t GetFreeSize() in GetFreeSize() 52 inline std::size_t GetDataSize() in GetDataSize() 57 inline std::size_t GetCapacity() in GetCapacity() 65 const std::size_t len {sizeof(T)}; in Peek() 96 ssize_t Read(const int fd, const std::size_t len); 97 ssize_t Write(const int fd, const std::size_t len); 98 std::size_t Get(char* dest, const std::size_t len); 99 int Put(const char* str, const std::size_t len); [all …]
|
| D | hiebpf_data_file.h | 33 enum HeaderConsts:std::size_t { 55 std::size_t curPos = mapPos_ + offset_; in ~HiebpfDataFile() 65 const std::size_t pages = DEFAULT_MMAP_PAGES); 66 void* Reserve(const std::size_t size); 71 enum Constants:std::size_t { 79 int RemapFile(const std::size_t size); 83 const std::size_t pages = DEFAULT_MMAP_PAGES) 90 pageSize_ = static_cast<size_t>(pageSize); 91 length_ = static_cast<size_t>(pageSize * pages); 103 inline int ExtendFile(const std::size_t mapPos, const std::size_t mapLength) in ExtendFile() [all …]
|
| D | elf_file.h | 46 constexpr std::size_t ehdr32Size {52}; 47 constexpr std::size_t ehdr64Size {64}; 48 constexpr std::size_t shdr32Size {40}; 49 constexpr std::size_t shdr64Size {64}; 50 constexpr std::size_t phdr32Size {32}; 51 constexpr std::size_t phdr64Size {56}; 52 constexpr std::size_t symEnt32Size {16}; 53 constexpr std::size_t symEnt64Size {24}; 58 const std::size_t bufSize); 59 bool Init(unsigned char * const ehdrBuf, const std::size_t bufSize); [all …]
|
| /developtools/profiler/device/plugins/native_hook/include/ |
| D | hook_client.h | 34 EXPORT_API void* ohos_malloc_hook_malloc(size_t); 35 EXPORT_API void* ohos_malloc_hook_realloc(void*, size_t); 36 EXPORT_API void* ohos_malloc_hook_calloc(size_t, size_t); 37 EXPORT_API void* ohos_malloc_hook_valloc(size_t); 39 EXPORT_API void* ohos_malloc_hook_memalign(size_t, size_t); 40 EXPORT_API size_t ohos_malloc_hook_malloc_usable_size(void*); 41 EXPORT_API void* ohos_malloc_hook_mmap(void*, size_t, int, int, int, off_t); 42 EXPORT_API int ohos_malloc_hook_munmap(void*, size_t); 43 EXPORT_API void ohos_malloc_hook_memtrace(void*, size_t, const char*, bool); 45 EXPORT_API bool ohos_set_filter_size(size_t size, void* ret);
|
| /developtools/hiperf/include/ |
| D | perf_file_format.h | 128 virtual bool GetBinary(char *buf, size_t size) = 0; 129 virtual size_t GetSize() = 0; 141 size_t maxSize_ = 0; 142 size_t offset_ = 0; 145 void Init(const char *buffer, size_t maxSize); 147 void Init(char *buffer, size_t maxSize); 152 bool Write(const char *buf, size_t size); 153 bool Write(const char *buf, size_t size, size_t max); 158 bool Read(char *buf, size_t size); 159 void Skip(size_t size); [all …]
|
| D | elf_parser.h | 46 constexpr std::size_t ehdr32Size {52}; 47 constexpr std::size_t ehdr64Size {64}; 48 constexpr std::size_t shdr32Size {40}; 49 constexpr std::size_t shdr64Size {64}; 50 constexpr std::size_t phdr32Size {32}; 51 constexpr std::size_t phdr64Size {56}; 52 constexpr std::size_t symEnt32Size {16}; 53 constexpr std::size_t symEnt64Size {24}; 58 const std::size_t bufSize); 59 bool Init(unsigned char * const ehdrBuf, const std::size_t bufSize); [all …]
|
| D | ring_buffer.h | 27 explicit RingBuffer(size_t size); 30 size_t GetFreeSize() const; 33 uint8_t *AllocForWrite(size_t writeSize); 43 const size_t size_; 46 size_t writeSize_ = 0; 47 size_t readSize_ = 0;
|
| /developtools/profiler/host/smartperf/trace_streamer/src/parser/ |
| D | print_event_parser.h | 42 …using FrameFuncCall = std::function<bool(const size_t callStackRow, std::string& args, const Bytra… 45 uint32_t GetThreadGroupId(std::string_view pointStr, size_t& length) const; 46 std::string_view GetPointNameForBegin(std::string_view pointStr, size_t tGidlength) const; 47 ParseResult HandlerB(std::string_view pointStr, TracePoint& outPoint, size_t tGidlength) const; 49 size_t callStackRow, 52 void HandleFrameSliceEndEvent(uint64_t ts, uint64_t pid, uint64_t tid, size_t callStackRow); 53 void HandleFrameQueueEndEvent(uint64_t ts, uint64_t pid, uint64_t tid, size_t callStackRow); 55 … ParseResult HandlerCSF(std::string_view pointStr, TracePoint& outPoint, size_t tGidlength) const; 56 static size_t GetNameLength(std::string_view pointStr, size_t nameIndex); 57 size_t GetValueLength(std::string_view pointStr, size_t valueIndex) const; [all …]
|
| /developtools/hiperf/src/ |
| D | ring_buffer.cpp | 23 RingBuffer::RingBuffer(size_t size) : size_(size) in RingBuffer() 33 size_t RingBuffer::GetFreeSize() const in GetFreeSize() 38 uint8_t *RingBuffer::AllocForWrite(size_t writeSize) in AllocForWrite() 40 size_t writeHead = head_.load(std::memory_order_relaxed); in AllocForWrite() 41 size_t readHead = tail_.load(std::memory_order_acquire); in AllocForWrite() 42 size_t writePos = writeHead % size_; in AllocForWrite() 43 size_t readPos = readHead % size_; in AllocForWrite() 73 size_t head = head_.load(std::memory_order_relaxed); in EndWrite() 80 size_t writeHead = head_.load(std::memory_order_acquire); in GetReadData() 81 size_t readHead = tail_.load(std::memory_order_relaxed); in GetReadData() [all …]
|
| D | section_header.cpp | 38 std::unique_ptr<SectionHeader> SectionHeader::MakeUnique(char * const shdrBuf, const size_t bufSize, in MakeUnique() 39 const size_t index) in MakeUnique() 83 size_t index {0}; in ParseSecHeader64() 85 index = static_cast<size_t>(NUMBER::ONE); in ParseSecHeader64() 88 index = static_cast<size_t>(NUMBER::TEN); in ParseSecHeader64() 90 index = static_cast<size_t>(NUMBER::ELEVEN); in ParseSecHeader64() 92 index = static_cast<size_t>(NUMBER::TWO); in ParseSecHeader64() 94 index = static_cast<size_t>(NUMBER::THREE); in ParseSecHeader64() 96 index = static_cast<size_t>(NUMBER::FOUR); in ParseSecHeader64() 98 index = static_cast<size_t>(NUMBER::SIX); in ParseSecHeader64() [all …]
|
| /developtools/smartperf_host/trace_streamer/src/parser/ |
| D | print_event_parser.h | 52 …using FrameFuncCall = std::function<bool(const size_t callStackRow, std::string& args, const Bytra… 55 uint32_t GetThreadGroupId(std::string_view pointStr, size_t& length) const; 56 std::string_view GetPointNameForBegin(std::string_view pointStr, size_t tGidlength) const; 57 ParseResult HandlerB(std::string_view pointStr, TracePoint& outPoint, size_t tGidlength) const; 59 size_t callStackRow, 62 void HandleFrameSliceEndEvent(uint64_t ts, uint64_t pid, uint64_t tid, size_t callStackRow); 63 void HandleFrameQueueEndEvent(uint64_t ts, uint64_t pid, uint64_t tid, size_t callStackRow); 64 …bool HandleAnimationBeginEvent(const TracePoint& point, size_t callStackRow, const BytraceLine& li… 66 … ParseResult HandlerCSF(std::string_view pointStr, TracePoint& outPoint, size_t tGidlength) const; 67 static size_t GetNameLength(std::string_view pointStr, size_t nameIndex); [all …]
|
| /developtools/profiler/host/smartperf/client/client_command/ |
| D | CPU.cpp | 34 for (size_t i = 0; i < workloads.size(); i++) { in ItemData() 115 const size_t defaultIndex = 4; in CacWorkload() 116 const size_t defaultShift = 10; in CacWorkload() 120 size_t preLen = strlen(preBuffer); in CacWorkload() 121 size_t len = strlen(buffer); in CacWorkload() 125 size_t time[10] = {0}; in CacWorkload() 126 size_t preTime[10] = {0}; in CacWorkload() 127 size_t cnt = 0; in CacWorkload() 129 for (size_t i = defaultIndex; i < len; ++i) { in CacWorkload() 130 size_t tmp = 0; in CacWorkload() [all …]
|
| D | parse_click_response_trace.cpp | 47 size_t subNum = 5; in GetLineTime() 53 size_t position1 = line.find("...."); in GetLineTime() 54 size_t position2 = line.find(":"); in GetLineTime() 67 size_t point = endTime.find("."); in GetTime() 82 size_t packageNameNumSize = 5; in GetPid() 89 size_t subNum = 4; in GetPid() 90 size_t position1 = line.find("pid="); in GetPid() 91 size_t position2 = line.find(" comm=appspawn"); in GetPid() 100 size_t p1 = line.find(pn); in GetPid() 101 size_t p2 = line.find(" prio"); in GetPid() [all …]
|
| D | parse_click_complete_trace.cpp | 50 size_t subNum = 5; in GetLineTime() 51 size_t position1 = line.find("...."); in GetLineTime() 52 size_t position2 = line.find(":"); in GetLineTime() 77 size_t point = endTime.find("."); in GetTime() 92 size_t packageNameNumSize = 5; in GetPid() 98 size_t position1 = line.find("pid="); in GetPid() 99 size_t position2 = line.find(" comm=appspawn"); in GetPid() 100 size_t subNum = 4; in GetPid() 109 size_t p1 = line.find(pn); in GetPid() 110 size_t p2 = line.find(" prio"); in GetPid() [all …]
|
| D | startup_delay.cpp | 62 size_t splitFlag = resultPid.find(" "); in GetPidByPkg() 70 size_t splitFlag = cmdResult.find("= "); in GetDeviceType() 79 size_t findIndex = std::string::npos; in InitXY2() 81 size_t appPkgIndex = strLine.find("AppName_text_" + appPkgName); in InitXY2() 82 size_t appIndex = strLine.find(curAppName); in InitXY2() 89 size_t bounds = strLine.rfind("bounds", findIndex); in InitXY2() 101 size_t num = 3; in InitXY2() 102 size_t pointNum = pointVector.size(); in InitXY2() 108 size_t leftStart = boundStr.find_first_of("["); in InitXY2() 109 size_t leftEnd = boundStr.find_first_of("]"); in InitXY2() [all …]
|
| D | parse_trace.cpp | 53 size_t position1 = line.find("...."); in ParseNohTrace() 54 size_t position2 = line.find(":"); in ParseNohTrace() 55 size_t flagTimeSize = 5; in ParseNohTrace() 76 size_t positionFrame1 = line.rfind("[" + appPid + ","); in GetFrameId() 77 size_t positionFrame2 = line.rfind("]"); in GetFrameId() 78 size_t subNum = 2; in GetFrameId() 87 size_t positionWindow = line.find("H:RSUniRender::Process:[leashWindow"); in GetWindowTime() 89 size_t positionWindow1 = line.rfind(")"); in GetWindowTime() 90 size_t subNumSize = 4; in GetWindowTime() 102 size_t subNum = 5; in GetWindowTime() [all …]
|
| /developtools/profiler/device/plugins/ftrace_plugin/include/ |
| D | ftrace_field_parser.h | 26 …template <typename T> static T ParseIntField(const FieldFormat& format, uint8_t data[], size_t siz… in ParseIntField() 37 size_t id, uint8_t data[], size_t size) in ParseVectorIntField() 46 size_t retvalSize = sizeof(unsigned long); in ParseVectorIntField() 47 size_t count = format.size / retvalSize; in ParseVectorIntField() 48 for (size_t i = 0; i < count; i++) { in ParseVectorIntField() 59 …tic T ParseIntField(const std::vector<FieldFormat>& fields, size_t id, uint8_t data[], size_t size) in ParseIntField() 68 static std::string ParseStrField(const FieldFormat& format, uint8_t data[], size_t size); 70 …tring ParseStrField(const std::vector<FieldFormat>& fields, size_t id, uint8_t data[], size_t size) in ParseStrField() 79 static bool ReadData(const uint8_t start[], const uint8_t end[], VoidPtr out, size_t size);
|
| /developtools/profiler/host/smartperf/trace_streamer/src/base/ |
| D | string_help.h | 24 int32_t memcpy_s(void* dest, uint32_t destSize, const void* src, size_t srcSize); 26 int32_t strncpy_s(char* strDest, size_t destMax, const char* strSrc, size_t count); 27 int32_t sprintf_s(char* strDest, size_t destMax, const char* format, ...); 29 void* memset_s(void* dest, size_t destSize, int32_t ch, size_t n); 30 int32_t snprintf_s(char* strDest, size_t destMax, size_t count, const char* format, ...);
|
| /developtools/profiler/device/plugins/native_daemon/include/ |
| D | elf_parser.h | 56 constexpr std::size_t ehdr32Size {52}; 57 constexpr std::size_t ehdr64Size {64}; 58 constexpr std::size_t shdr32Size {40}; 59 constexpr std::size_t shdr64Size {64}; 60 constexpr std::size_t phdr32Size {32}; 61 constexpr std::size_t phdr64Size {56}; 62 constexpr std::size_t symEnt32Size {16}; 63 constexpr std::size_t symEnt64Size {24}; 68 const std::size_t bufSize); 69 bool Init(unsigned char * const ehdrBuf, const std::size_t bufSize); [all …]
|
| /developtools/profiler/host/smartperf/trace_streamer/src/rpc/ |
| D | rpc_server.h | 30 bool ParseData(const uint8_t* data, size_t len, ResultCallBack resultCallBack); 31 bool ParseDataOver(const uint8_t* data, size_t len, ResultCallBack resultCallBack); 32 bool SqlOperate(const uint8_t* data, size_t len, ResultCallBack resultCallBack); 33 bool SqlQuery(const uint8_t* data, size_t len, ResultCallBack resultCallBack); 34 bool Reset(const uint8_t* data, size_t len, ResultCallBack resultCallBack); 38 int32_t WasmSqlQuery(const uint8_t* data, size_t len, uint8_t* out, int32_t outLen); 39 … int32_t WasmSqlQueryWithCallback(const uint8_t* data, size_t len, ResultCallBack callback) const; 45 size_t totalLen, 47 size_t len, 55 size_t lenParseData_ = 0;
|
| /developtools/smartperf_host/trace_streamer/src/rpc/ |
| D | rpc_server.h | 30 bool ParseData(const uint8_t* data, size_t len, ResultCallBack resultCallBack); 31 bool ParseDataOver(const uint8_t* data, size_t len, ResultCallBack resultCallBack); 32 bool SqlOperate(const uint8_t* data, size_t len, ResultCallBack resultCallBack); 33 bool SqlQuery(const uint8_t* data, size_t len, ResultCallBack resultCallBack); 34 bool Reset(const uint8_t* data, size_t len, ResultCallBack resultCallBack); 38 int32_t WasmSqlQuery(const uint8_t* data, size_t len, uint8_t* out, int32_t outLen); 39 … int32_t WasmSqlQueryWithCallback(const uint8_t* data, size_t len, ResultCallBack callback) const; 46 size_t totalLen, 48 size_t len, 56 size_t lenParseData_ = 0;
|
| /developtools/profiler/host/smartperf/trace_streamer/src/parser/bytrace_parser/ |
| D | bytrace_parser.h | 39 void ParseTraceDataSegment(std::unique_ptr<uint8_t[]> bufferStr, size_t size) override; 40 size_t ParsedTraceValidLines() const in ParsedTraceValidLines() 44 size_t ParsedTraceInvalidLines() const in ParsedTraceInvalidLines() 48 size_t TraceCommentLines() const in TraceCommentLines() 102 …void NoArrayDataParse(JsonData jData, std::vector<size_t> noArrayIndex, DataIndex eventSourceIndex… 104 std::vector<size_t> arrayIndex, 106 size_t maxArraySize); 110 size_t& maxArraySize, 111 std::vector<size_t>& noArrayIndex, 112 std::vector<size_t>& arrayIndex); [all …]
|