Lines Matching refs:size_t
54 size_t num_frames;
59 for (size_t i = 0; i < num_frames; i++) {
71 std::size_t operator()(const FrameKeyType& key) const {
72 std::size_t cur_hash = key.frames[0];
74 size_t max_frames = (key.num_frames > 5) ? 5 : key.num_frames;
75 for (size_t i = 1; i < max_frames; i++) {
84 size_t references = 0;
89 size_t size;
90 size_t hash_index;
91 size_t RealSize() const { return size & ~(1U << 31); }
93 static size_t GetEncodedSize(size_t size) {
96 static size_t GetEncodedSize(bool child_alloc, size_t size) {
99 static size_t MaxSize() { return (1U << 31) - 1; }
104 size_t hash_index;
109 size_t num_allocations;
110 size_t size;
123 inline size_t alloc_offset() { return alloc_offset_; }
140 static size_t AddBacktrace(size_t num_frames, size_t size_bytes);
141 static void RemoveBacktrace(size_t hash_index);
143 static void Add(const void* pointer, size_t size);
146 static void* AddFreed(const void* pointer, size_t size_bytes);
147 static void LogFreeError(const FreePointerInfoType& info, size_t usable_size);
156 static void GetInfo(uint8_t** info, size_t* overall_size, size_t* info_size, size_t* total_memory,
157 size_t* backtrace_size);
159 static size_t GetFrames(const void* pointer, uintptr_t* frames, size_t max_frames);
170 static std::string GetHashString(uintptr_t* frames, size_t num_frames);
171 static void LogBacktrace(size_t hash_index);
176 size_t alloc_offset_ = 0;
187 static std::unordered_map<FrameKeyType, size_t> key_to_index_;
188 static std::unordered_map<size_t, FrameInfoType> frames_;
189 static std::unordered_map<size_t, std::vector<unwindstack::FrameData>> backtraces_info_;
190 static size_t cur_hash_index_;