Home
last modified time | relevance | path

Searched refs:PERFETTO_DCHECK (Results 1 – 25 of 216) sorted by relevance

123456789

/external/perfetto/src/tracing/
Dtraced_value.cc41 PERFETTO_DCHECK(checked_scope_.is_active()); in WriteInt64()
46 PERFETTO_DCHECK(checked_scope_.is_active()); in WriteUInt64()
51 PERFETTO_DCHECK(checked_scope_.is_active()); in WriteDouble()
56 PERFETTO_DCHECK(checked_scope_.is_active()); in WriteBoolean()
61 PERFETTO_DCHECK(checked_scope_.is_active()); in WriteString()
66 PERFETTO_DCHECK(checked_scope_.is_active()); in WriteString()
71 PERFETTO_DCHECK(checked_scope_.is_active()); in WriteString()
76 PERFETTO_DCHECK(checked_scope_.is_active()); in WritePointer()
83 PERFETTO_DCHECK(checked_scope_.is_active()); in WriteDictionary()
86 PERFETTO_DCHECK(!context_->is_finalized()); in WriteDictionary()
[all …]
Dtrack_event_category_registry.cc25 PERFETTO_DCHECK(group.name); in FromDynamicCategory()
29 PERFETTO_DCHECK(category.name); in FromDynamicCategory()
47 PERFETTO_DCHECK(instance_index < kMaxDataSourceInstances); in EnableCategoryForInstance()
48 PERFETTO_DCHECK(category_index < category_count_); in EnableCategoryForInstance()
57 PERFETTO_DCHECK(instance_index < kMaxDataSourceInstances); in DisableCategoryForInstance()
58 PERFETTO_DCHECK(category_index < category_count_); in DisableCategoryForInstance()
/external/perfetto/src/trace_processor/
Dtrace_sorter.cc37 PERFETTO_DCHECK(needs_sorting()); in Sort()
38 PERFETTO_DCHECK(sort_start_idx_ < events_.size()); in Sort()
42 PERFETTO_DCHECK(sort_min_ts_ < max_ts_); in Sort()
48 PERFETTO_DCHECK(std::is_sorted(events_.begin(), sort_end)); in Sort()
56 PERFETTO_DCHECK(std::is_sorted(events_.begin(), events_.end())); in Sort()
100 PERFETTO_DCHECK(queue.min_ts_ >= global_min_ts_); in SortAndExtractEventsBeyondWindow()
101 PERFETTO_DCHECK(queue.max_ts_ <= global_max_ts_); in SortAndExtractEventsBeyondWindow()
121 PERFETTO_DCHECK(queue.min_ts_ == events.front().timestamp); in SortAndExtractEventsBeyondWindow()
122 PERFETTO_DCHECK(queue.min_ts_ == global_min_ts_); in SortAndExtractEventsBeyondWindow()
180 PERFETTO_DCHECK(iterations > 0 || was_empty); in SortAndExtractEventsBeyondWindow()
[all …]
/external/perfetto/src/tracing/core/
Dtrace_buffer.cc123 PERFETTO_DCHECK(suppress_client_dchecks_for_testing_); in CopyChunkUntrusted()
174 PERFETTO_DCHECK(suppress_client_dchecks_for_testing_); in CopyChunkUntrusted()
181 PERFETTO_DCHECK(suppress_client_dchecks_for_testing_ || in CopyChunkUntrusted()
202 PERFETTO_DCHECK(suppress_client_dchecks_for_testing_); in CopyChunkUntrusted()
210 PERFETTO_DCHECK(suppress_client_dchecks_for_testing_); in CopyChunkUntrusted()
242 PERFETTO_DCHECK(static_cast<size_t>(res) <= cached_size_to_end); in CopyChunkUntrusted()
246 PERFETTO_DCHECK(size_to_end() >= record_size); in CopyChunkUntrusted()
280 PERFETTO_DCHECK(it_and_inserted.second); in CopyChunkUntrusted()
287 PERFETTO_DCHECK(padding_size == 0); in CopyChunkUntrusted()
330 PERFETTO_DCHECK(search_end <= end()); in DeleteNextChunksFor()
[all …]
Dtrace_writer_impl.cc87 PERFETTO_DCHECK(patch_list_.empty() || drop_packets_); in Flush()
107 PERFETTO_DCHECK(process_id_ == base::GetProcessId()); in NewTracePacket()
214 PERFETTO_DCHECK(!drop_packets_); in GetNewBuffer()
254 PERFETTO_DCHECK(cur_packet_->is_finalized()); in GetNewBuffer()
255 PERFETTO_DCHECK(cur_chunk_.is_valid()); in GetNewBuffer()
258 PERFETTO_DCHECK(last_packet_size_field_ >= cur_chunk_.payload_begin() && in GetNewBuffer()
284 PERFETTO_DCHECK(new_chunk.is_valid()); in GetNewBuffer()
289 PERFETTO_DCHECK(!drop_packets_); in GetNewBuffer()
292 PERFETTO_DCHECK(wptr >= cur_fragment_start_); in GetNewBuffer()
294 PERFETTO_DCHECK(partial_size < cur_chunk_.size()); in GetNewBuffer()
[all …]
Dshared_memory_abi.cc148 PERFETTO_DCHECK(chunk_idx < num_chunks); in GetChunkUnchecked()
155 PERFETTO_DCHECK(chunk.end() <= end()); in GetChunkUnchecked()
164 PERFETTO_DCHECK(desired_chunk_state == kChunkBeingRead || in TryAcquireChunk()
193 PERFETTO_DCHECK(header); in TryAcquireChunk()
208 PERFETTO_DCHECK(layout >= kPageDiv1 && layout <= kPageDiv14); in TryPartitionPage()
233 PERFETTO_DCHECK(desired_chunk_state == kChunkComplete || in ReleaseChunk()
315 PERFETTO_DCHECK(chunk.is_valid()); in GetPageAndChunkIndex()
316 PERFETTO_DCHECK(chunk.begin() >= start_); in GetPageAndChunkIndex()
317 PERFETTO_DCHECK(chunk.end() <= start_ + size_); in GetPageAndChunkIndex()
324 PERFETTO_DCHECK(offset >= sizeof(PageHeader)); in GetPageAndChunkIndex()
[all …]
Dtrace_buffer.h288 PERFETTO_DCHECK(sz >= sizeof(ChunkRecord) &&
461 PERFETTO_DCHECK(is_valid()); in producer_id()
466 PERFETTO_DCHECK(is_valid()); in writer_id()
471 PERFETTO_DCHECK(is_valid()); in chunk_id()
476 PERFETTO_DCHECK(is_valid());
559 PERFETTO_DCHECK(ptr >= begin() && ptr <= end() - sizeof(ChunkRecord)); in DcheckIsAlignedAndWithinBounds()
560 PERFETTO_DCHECK( in DcheckIsAlignedAndWithinBounds()
585 PERFETTO_DCHECK(size <= ChunkRecord::kMaxSize); in WriteChunkRecord()
586 PERFETTO_DCHECK(record.size >= sizeof(record)); in WriteChunkRecord()
587 PERFETTO_DCHECK(record.size % sizeof(record) == 0); in WriteChunkRecord()
[all …]
Dshared_memory_arbiter_impl.cc96 PERFETTO_DCHECK(size_hint == 0); // Not implemented yet. in GetNewChunk()
101 PERFETTO_DCHECK(initially_bound_ || in GetNewChunk()
187 PERFETTO_DCHECK(initially_bound_); in GetNewChunk()
233 PERFETTO_DCHECK(chunk.is_valid()); in ReturnCompletedChunk()
242 PERFETTO_DCHECK(!patch_list->empty() && patch_list->front().is_patched()); in SendPatches()
274 PERFETTO_DCHECK(chunk.writer_id() == writer_id); in UpdateCommitDataRequest()
432 PERFETTO_DCHECK(shmem_abi_.GetChunkState(page_idx, chunk_idx) == in TryDirectPatchLocked()
441 PERFETTO_DCHECK(memcmp(ptr, &zero, SharedMemoryABI::kPacketHeaderSize) == 0); in TryDirectPatchLocked()
525 PERFETTO_DCHECK(all_placeholders_replaced); in FlushPendingCommitDataRequests()
589 PERFETTO_DCHECK(producer_endpoint && task_runner); in BindToProducerEndpoint()
[all …]
/external/perfetto/include/perfetto/protozero/
Dfield.h64 PERFETTO_DCHECK(res == proto_utils::ProtoWireType::kVarInt || in type()
72 PERFETTO_DCHECK(!valid() || type() == proto_utils::ProtoWireType::kVarInt); in as_bool()
77 PERFETTO_DCHECK(!valid() || type() == proto_utils::ProtoWireType::kVarInt || in as_uint32()
83 PERFETTO_DCHECK(!valid() || type() == proto_utils::ProtoWireType::kVarInt || in as_int32()
89 PERFETTO_DCHECK(!valid() || type() == proto_utils::ProtoWireType::kVarInt); in as_sint32()
94 PERFETTO_DCHECK(!valid() || type() == proto_utils::ProtoWireType::kVarInt || in as_uint64()
101 PERFETTO_DCHECK(!valid() || type() == proto_utils::ProtoWireType::kVarInt || in as_int64()
108 PERFETTO_DCHECK(!valid() || type() == proto_utils::ProtoWireType::kVarInt); in as_sint64()
113 PERFETTO_DCHECK(!valid() || type() == proto_utils::ProtoWireType::kFixed32); in as_float()
121 PERFETTO_DCHECK(!valid() || type() == proto_utils::ProtoWireType::kFixed64); in as_double()
[all …]
/external/perfetto/src/trace_processor/containers/
Dstring_pool.h57 PERFETTO_DCHECK(is_large_string()); in large_string_index()
64 PERFETTO_DCHECK(index <= static_cast<uint32_t>(index)); in LargeString()
65 PERFETTO_DCHECK(!(index & kLargeStringFlagBitMask)); in LargeString()
70 PERFETTO_DCHECK(index < (1u << (kNumBlockIndexBits + 1))); in BlockString()
71 PERFETTO_DCHECK(offset < (1u << (kNumBlockOffsetBits + 1))); in BlockString()
123 PERFETTO_DCHECK(Get(id_it->second) == str); in InternString()
136 PERFETTO_DCHECK(Get(id_it->second) == str); in GetId()
180 PERFETTO_DCHECK(Get(0) < ptr && in OffsetOf()
238 PERFETTO_DCHECK(!id.is_large_string()); in IdToPtr()
243 PERFETTO_DCHECK(block_index < blocks_.size()); in IdToPtr()
[all …]
Drow_map.cc28 PERFETTO_DCHECK(start <= end); in SelectRangeWithRange()
29 PERFETTO_DCHECK(selector_start <= selector_end); in SelectRangeWithRange()
30 PERFETTO_DCHECK(selector_end <= end - start); in SelectRangeWithRange()
38 PERFETTO_DCHECK(start <= end); in SelectRangeWithBv()
39 PERFETTO_DCHECK(selector.size() <= end - start); in SelectRangeWithBv()
64 PERFETTO_DCHECK(start <= end); in SelectRangeWithIv()
68 PERFETTO_DCHECK(selector[i] < end - start); in SelectRangeWithIv()
77 PERFETTO_DCHECK(selector_start <= selector_end); in SelectBvWithRange()
78 PERFETTO_DCHECK(selector_end <= bv.GetNumBitsSet()); in SelectBvWithRange()
108 PERFETTO_DCHECK(selector_start <= selector_end); in SelectIvWithRange()
[all …]
Dbit_vector.h68 PERFETTO_DCHECK(idx < size()); in IsSet()
98 PERFETTO_DCHECK(n < GetNumBitsSet()); in IndexOfNthSet()
107 PERFETTO_DCHECK(it != counts_.begin()); in IndexOfNthSet()
374 PERFETTO_DCHECK(idx < kBits); in IsSet()
383 PERFETTO_DCHECK(idx < kBits); in Set()
391 PERFETTO_DCHECK(idx < kBits); in Clear()
403 PERFETTO_DCHECK(n < kBits); in IndexOfNthSet()
440 PERFETTO_DCHECK(idx < kBits); in GetNumBitsSet()
447 PERFETTO_DCHECK(idx < kBits); in ClearAfter()
480 PERFETTO_DCHECK(idx < kBits); in WordUntil()
[all …]
/external/perfetto/src/protozero/filtering/
Dfilter_bytecode_parser.cc80 PERFETTO_DCHECK(field_id > 0 && field_id < kDirectlyIndexLimit); in LoadInternal()
87 PERFETTO_DCHECK(id_end > id_start); in LoadInternal()
88 PERFETTO_DCHECK(id_start >= kDirectlyIndexLimit); in LoadInternal()
150 PERFETTO_DCHECK(id >= kDirectlyIndexLimit || id == range_end); in LoadInternal()
201 PERFETTO_DCHECK(start_offset < words_.size()); in Query()
205 PERFETTO_DCHECK(end > word && end <= words_.data() + words_.size()); in Query()
207 PERFETTO_DCHECK(num_directly_indexed <= kDirectlyIndexLimit); in Query()
208 PERFETTO_DCHECK(word + num_directly_indexed <= end); in Query()
211 PERFETTO_DCHECK(&word[field_id] < end); in Query()
227 PERFETTO_DCHECK(res.simple_field() || in Query()
/external/perfetto/src/trace_processor/sqlite/
Dsqlite_raw_table.cc120 PERFETTO_DCHECK(field_id > 0); in FieldIdToRow()
121 PERFETTO_DCHECK(field_id < field_id_to_arg_index_->size()); in FieldIdToRow()
202 PERFETTO_DCHECK(value.type == Variadic::Type::kInt); in SerializeArgs()
220 PERFETTO_DCHECK(value.type == Variadic::Type::kInt); in SerializeArgs()
254 PERFETTO_DCHECK(value.type == Variadic::Type::kInt); in SerializeArgs()
261 PERFETTO_DCHECK(value.type == Variadic::Type::kInt); in SerializeArgs()
276 PERFETTO_DCHECK(value.type == Variadic::Type::kUint); in SerializeArgs()
282 PERFETTO_DCHECK(value.type == Variadic::Type::kUint); in SerializeArgs()
291 PERFETTO_DCHECK(value.type == Variadic::Type::kInt); in SerializeArgs()
301 PERFETTO_DCHECK(value.type == Variadic::Type::kInt); in SerializeArgs()
[all …]
Dspan_join_operator_table.h201 PERFETTO_DCHECK(!IsEof()); in FirstPartition()
211 PERFETTO_DCHECK(!IsEof()); in LastPartition()
219 PERFETTO_DCHECK(!IsEof()); in AdjustedTsEnd()
224 PERFETTO_DCHECK(!IsEof()); in ts()
228 PERFETTO_DCHECK(!IsEof() && defn_->IsPartitioned()); in partition()
233 PERFETTO_DCHECK(!IsEof()); in raw_ts_end()
272 PERFETTO_DCHECK(!IsEof()); in IsEmptyShadow()
279 PERFETTO_DCHECK(!cursor_eof_); in CursorTs()
285 PERFETTO_DCHECK(!cursor_eof_); in CursorDur()
291 PERFETTO_DCHECK(!cursor_eof_); in CursorPartition()
[all …]
/external/perfetto/include/perfetto/ext/base/
Dmetatrace.h102 PERFETTO_DCHECK(base_ns); in timestamp_ns()
110 PERFETTO_DCHECK(diff < (1ull << 48)); in set_timestamp()
161 PERFETTO_DCHECK(other.valid_); in ReadIterator()
171 PERFETTO_DCHECK(cur_ >= RingBuffer::rd_index_); in ~ReadIterator()
172 PERFETTO_DCHECK(cur_ <= RingBuffer::wr_index_); in ~ReadIterator()
182 PERFETTO_DCHECK(cur_ < end_);
216 PERFETTO_DCHECK(index >= rd_index_); in At()
217 PERFETTO_DCHECK(index <= wr_index_); in At()
223 PERFETTO_DCHECK(RingBuffer::IsOnValidTaskRunner()); in GetReadIterator()
241 PERFETTO_DCHECK(wr_index >= rd_index); in GetSizeForTesting()
Dstring_writer.h43 PERFETTO_DCHECK(pos_ + n <= size_);
50 PERFETTO_DCHECK(pos_ + n <= size_); in AppendString()
102 PERFETTO_DCHECK(pos_ + res <= size_); in AppendHexInt()
112 PERFETTO_DCHECK(pos_ + res <= size_); in AppendDouble()
125 PERFETTO_DCHECK(pos_ <= size_); in GetStringView()
149 PERFETTO_DCHECK(pos_ + kSizeNeeded <= size_); in AppendPaddedInt()
Dcircular_queue.h77 PERFETTO_DCHECK(generation_ == queue_->generation());
162 PERFETTO_DCHECK(pos_ <= queue_->end_); in Add()
190 PERFETTO_DCHECK(empty()); in ~CircularQueue()
194 PERFETTO_DCHECK(empty()); in ~CircularQueue()
220 PERFETTO_DCHECK(idx < size()); in at()
232 PERFETTO_DCHECK(end_ - begin_ <= capacity_); in size()
281 PERFETTO_DCHECK(pos >= begin_ && pos < end_); in Get()
282 PERFETTO_DCHECK((capacity_ & (capacity_ - 1)) == 0); // Must be a pow2. in Get()
/external/perfetto/src/trace_processor/importers/fuchsia/
Dfuchsia_trace_utils.h135 PERFETTO_DCHECK(type_ == ArgType::kInt32); in Int32()
140 PERFETTO_DCHECK(type_ == ArgType::kUint32); in Uint32()
145 PERFETTO_DCHECK(type_ == ArgType::kInt64); in Int64()
150 PERFETTO_DCHECK(type_ == ArgType::kUint64); in Uint64()
155 PERFETTO_DCHECK(type_ == ArgType::kDouble); in Double()
160 PERFETTO_DCHECK(type_ == ArgType::kString); in String()
165 PERFETTO_DCHECK(type_ == ArgType::kPointer); in Pointer()
170 PERFETTO_DCHECK(type_ == ArgType::kKoid); in Koid()
/external/perfetto/src/base/
Dpaged_memory.cc121 PERFETTO_DCHECK(p_); in AdviseDontNeed()
122 PERFETTO_DCHECK(p >= p_); in AdviseDontNeed()
123 PERFETTO_DCHECK(static_cast<char*>(p) + size <= p_ + size_); in AdviseDontNeed()
132 PERFETTO_DCHECK(res == 0); in AdviseDontNeed()
140 PERFETTO_DCHECK(committed_size > 0u); in EnsureCommitted()
141 PERFETTO_DCHECK(committed_size <= size_); in EnsureCommitted()
149 PERFETTO_DCHECK(num_additional_chunks * kCommitChunkSize >= delta); in EnsureCommitted()
Dunix_task_runner.cc195 PERFETTO_DCHECK(!it->second.pending); in PostFileDescriptorWatches()
200 PERFETTO_DCHECK(poll_fds_[i].fd >= 0); in PostFileDescriptorWatches()
223 PERFETTO_DCHECK(watch_task.pending); in RunFileDescriptorWatch()
227 PERFETTO_DCHECK(fd_index < poll_fds_.size()); in RunFileDescriptorWatch()
228 PERFETTO_DCHECK(::abs(poll_fds_[fd_index].fd) == fd); in RunFileDescriptorWatch()
271 PERFETTO_DCHECK(PlatformHandleChecker::IsValid(fd)); in AddFileDescriptorWatch()
274 PERFETTO_DCHECK(!watch_tasks_.count(fd)); in AddFileDescriptorWatch()
288 PERFETTO_DCHECK(PlatformHandleChecker::IsValid(fd)); in RemoveFileDescriptorWatch()
291 PERFETTO_DCHECK(watch_tasks_.count(fd)); in RemoveFileDescriptorWatch()
Dunix_socket.cc309 PERFETTO_DCHECK(fd_); in SetBlocking()
337 PERFETTO_DCHECK(fd_); in RetainOnExec()
349 PERFETTO_DCHECK(fd_); in DcheckIsBlocking()
351 PERFETTO_DCHECK(is_blocking == expected); in DcheckIsBlocking()
356 PERFETTO_DCHECK(fd_); in Bind()
370 PERFETTO_DCHECK(fd_); in Listen()
371 PERFETTO_DCHECK(type_ == SockType::kStream || type_ == SockType::kSeqPacket); in Listen()
376 PERFETTO_DCHECK(fd_); in Connect()
409 PERFETTO_DCHECK(num_fds == 0); in Send()
432 PERFETTO_DCHECK(fd_); in SendMsgAllPosix()
[all …]
/external/perfetto/src/trace_processor/importers/common/
Dtrace_blob_view.h42 PERFETTO_DCHECK(offset <= std::numeric_limits<uint32_t>::max()); in TraceBlobView()
43 PERFETTO_DCHECK(length <= std::numeric_limits<uint32_t>::max()); in TraceBlobView()
55 PERFETTO_DCHECK(offset + length <= offset_ + length_); in slice()
69 PERFETTO_DCHECK(data >= start() && data <= (start() + offset_ + length_)); in offset_of()
87 PERFETTO_DCHECK(rcbuf_->refcount > 0); in SharedBuf()
94 PERFETTO_DCHECK(rcbuf_->refcount > 0); in ~SharedBuf()
Dclock_tracker.cc101 PERFETTO_DCHECK(!IsReservedSeqScopedClockId(clock_id)); in AddSnapshot()
104 PERFETTO_DCHECK(vect.snapshot_ids.empty() || in AddSnapshot()
207 PERFETTO_DCHECK(!IsReservedSeqScopedClockId(src_clock_id)); in ConvertSlowpath()
208 PERFETTO_DCHECK(!IsReservedSeqScopedClockId(target_clock_id)); in ConvertSlowpath()
253 PERFETTO_DCHECK(index < ts_vec.size()); in ConvertSlowpath()
254 PERFETTO_DCHECK(cur_snap.snapshot_ids.size() == ts_vec.size()); in ConvertSlowpath()
274 PERFETTO_DCHECK(next_index < next_snap.snapshot_ids.size()); in ConvertSlowpath()
287 PERFETTO_DCHECK(i == 0); in ConvertSlowpath()
297 PERFETTO_DCHECK(i < path.len - 1 || std::get<1>(edge) == target_clock_id); in ConvertSlowpath()
/external/perfetto/src/trace_processor/db/
Dcolumn.cc138 PERFETTO_DCHECK(IsNullable() == is_nullable); in FilterIntoNumericSlow()
139 PERFETTO_DCHECK(type_ == ToColumnType<T>()); in FilterIntoNumericSlow()
140 PERFETTO_DCHECK(std::is_arithmetic<T>::value); in FilterIntoNumericSlow()
143 PERFETTO_DCHECK(value.is_null()); in FilterIntoNumericSlow()
153 PERFETTO_DCHECK(value.is_null()); in FilterIntoNumericSlow()
274 PERFETTO_DCHECK(type_ == ColumnType::kString); in FilterIntoStringSlow()
277 PERFETTO_DCHECK(value.is_null()); in FilterIntoStringSlow()
283 PERFETTO_DCHECK(value.is_null()); in FilterIntoStringSlow()
296 PERFETTO_DCHECK(str_value.data() != nullptr); in FilterIntoStringSlow()
342 PERFETTO_DCHECK(type_ == ColumnType::kId); in FilterIntoIdSlow()
[all …]

123456789