Home | History | Annotate | Download | only in metrics

Lines Matching refs:offset

80 // Calculates delta to align an offset to the size of an int
81 inline int AlignOffset(int offset) {
82 return (sizeof(int) - (offset % sizeof(int))) % sizeof(int);
210 int offset = 0;
213 offset += sizeof(*table_header_);
214 offset += AlignOffset(offset);
219 thread_names_table_ = reinterpret_cast<char*>(data + offset);
220 offset += sizeof(char) *
222 offset += AlignOffset(offset);
224 thread_tid_table_ = reinterpret_cast<PlatformThreadId*>(data + offset);
225 offset += sizeof(int) * max_threads();
226 offset += AlignOffset(offset);
228 thread_pid_table_ = reinterpret_cast<int*>(data + offset);
229 offset += sizeof(int) * max_threads();
230 offset += AlignOffset(offset);
232 counter_names_table_ = reinterpret_cast<char*>(data + offset);
233 offset += sizeof(char) *
235 offset += AlignOffset(offset);
237 data_table_ = reinterpret_cast<int*>(data + offset);
238 offset += sizeof(int) * max_threads() * max_counters();
240 DCHECK_EQ(offset, size());