Lines Matching refs:stack
73 auto* stack = &threads_[utid];
76 const uint8_t depth = static_cast<uint8_t>(stack->size());
81 int64_t parent_stack_id = depth == 0 ? 0 : slices->stack_ids()[stack->back()];
85 stack->emplace_back(slice_idx);
87 slices->set_stack_id(slice_idx, GetStackHash(*stack));
118 const auto& stack = threads_[utid];
119 if (stack.empty())
123 size_t slice_idx = stack.back();
143 void SliceTracker::MaybeCloseStack(int64_t ts, SlicesStack* stack) {
146 for (int i = static_cast<int>(stack->size()) - 1; i >= 0; i--) {
147 size_t slice_idx = (*stack)[static_cast<size_t>(i)];
163 stack->pop_back();
168 int64_t SliceTracker::GetStackHash(const SlicesStack& stack) {
169 PERFETTO_DCHECK(!stack.empty());
174 s.reserve(stack.size() * sizeof(uint64_t) * 2);
175 for (size_t i = 0; i < stack.size(); i++) {
176 size_t slice_idx = stack[i];