Lines Matching defs:frames
133 frames.push_back(info);
145 std::vector<jvmtiFrameInfo> frames;
150 static jvmtiError TranslateFrameVector(const std::vector<jvmtiFrameInfo>& frames,
156 size_t collected_frames = frames.size();
161 // Frames from the top.
164 // Not enough frames.
168 if (frames.size() > 0) {
169 memcpy(frame_buffer, frames.data(), collected_frames * sizeof(jvmtiFrameInfo));
171 *count_ptr = static_cast<jint>(frames.size());
175 // Frames from the bottom.
182 &frames.data()[collected_frames + start_depth],
276 return TranslateFrameVector(closure.frames,
367 frames.emplace_back(new std::vector<jvmtiFrameInfo>());
368 return frames.back().get();
379 std::vector<std::unique_ptr<std::vector<jvmtiFrameInfo>>> frames;
390 // allocate one big chunk for this and the actual frames, which means we need
392 std::unique_ptr<jvmtiStackInfo[]> stack_info_array(new jvmtiStackInfo[data.frames.size()]);
394 frame_infos.reserve(data.frames.size());
398 for (size_t index = 0; index < data.frames.size(); ++index) {
402 const std::vector<jvmtiFrameInfo>& thread_frames = *data.frames[index].get();
433 size_t rounded_stack_info_size = art::RoundUp(sizeof(jvmtiStackInfo) * data.frames.size(),
444 memcpy(stack_info, stack_info_array.get(), sizeof(jvmtiStackInfo) * data.frames.size());
446 // Now copy the frames and fix up the pointers.
449 for (size_t i = 0; i < data.frames.size(); ++i) {
467 *thread_count_ptr = static_cast<jint>(data.frames.size());
509 frames.emplace_back(new std::vector<jvmtiFrameInfo>());
510 return frames.back().get();
527 std::vector<std::unique_ptr<std::vector<jvmtiFrameInfo>>> frames;
549 // allocate one big chunk for this and the actual frames, which means we need
551 std::unique_ptr<jvmtiStackInfo[]> stack_info_array(new jvmtiStackInfo[data.frames.size()]);
553 frame_infos.reserve(data.frames.size());
557 for (size_t index = 0; index < data.frames.size(); ++index) {
562 const std::vector<jvmtiFrameInfo>& thread_frames = *data.frames[index].get();
594 // No errors, yet. Now put it all into an output buffer. Note that this is not frames.size(),
630 // Had a native thread and frames.
654 // Walks up the stack counting Java frames. This is not StackVisitor::ComputeNumFrames, as
1080 // Make sure can we will go to the interpreter and use the shadow frames.