Lines Matching defs:stack
59 // Walk through the method within depth of max_depth_ on the Java stack
62 BoundedStackVisitor(std::vector<std::pair<mirror::ArtMethod*, uint32_t>>* stack,
65 : StackVisitor(thread, NULL), stack_(stack), max_depth_(max_depth), depth_(0) {
109 std::vector<InstructionLocation> stack;
111 BoundedStackVisitor bounded_stack_visitor(&stack, thread, max_depth);
113 profiler->RecordStack(stack);
448 // Record the current bounded stack into sampling results.
449 void BackgroundMethodSamplingProfiler::RecordStack(const std::vector<InstructionLocation>& stack) {
450 if (stack.size() == 0) {
453 // Get the method on top of the stack. We use this method to perform filtering.
454 mirror::ArtMethod* method = stack.front().first;
456 profile_table_.PutStack(stack);
471 // hit it at the top of the stack.
503 // Add a bounded stack to the profile table. Only the count of the method on
505 void ProfileSampleResults::PutStack(const std::vector<InstructionLocation>& stack) {
509 // The root of the stack trie is a dummy node so that we don't have to maintain
515 if (stack.size() == 0) {
520 for (std::vector<InstructionLocation>::const_reverse_iterator iter = stack.rbegin();
521 iter != stack.rend(); ++iter) {