Lines Matching refs:method

59 // Walk through the method within depth of max_depth_ on the Java stack
97 mirror::ArtMethod* method = thread->GetCurrentMethod(nullptr);
98 if (false && method == nullptr) {
99 LOG(INFO) << "No current method available";
105 profiler->RecordMethod(method);
399 // This is empty right now, but to add a method, do this:
406 bool BackgroundMethodSamplingProfiler::ProcessMethod(mirror::ArtMethod* method) {
407 if (method == nullptr) {
409 // Don't record a nullptr method.
413 mirror::Class* cls = method->GetDeclaringClass();
424 if (strcmp(method->GetName(), "<clinit>") == 0) {
431 std::string method_full_name = PrettyMethod(method);
439 // A method has been hit, record its invocation in the method map.
441 void BackgroundMethodSamplingProfiler::RecordMethod(mirror::ArtMethod* method) {
443 if (ProcessMethod(method)) {
444 profile_table_.Put(method);
453 // Get the method on top of the stack. We use this method to perform filtering.
454 mirror::ArtMethod* method = stack.front().first;
455 if (ProcessMethod(method)) {
460 // Clean out any recordings for the method traces.
486 // Add a method to the profile table. If it's the first time the method
488 void ProfileSampleResults::Put(mirror::ArtMethod* method) {
490 uint32_t index = Hash(method);
494 Map::iterator i = table[index]->find(method);
496 (*table[index])[method] = 1;
503 // Add a bounded stack to the profile table. Only the count of the method on
523 mirror::ArtMethod* method = inst_loc.first;
524 if (method == nullptr) {
525 // skip null method
529 uint32_t method_idx = method->GetDexMethodIndex();
530 const DexFile* dex_file = method->GetDeclaringClass()->GetDexCache()->GetDexFile();
537 const DexFile::CodeItem* codeitem = method->GetCodeItem();
552 MethodReference method = current->GetMethod();
553 MethodContextMap::iterator i = method_context_table->find(method);
557 (*method_context_table)[method] = node_set;
583 mirror::ArtMethod *method = meth_iter.first;
584 std::string method_name = PrettyMethod(method);
586 const DexFile::CodeItem* codeitem = method->GetCodeItem();
608 MethodReference method = method_iter.first;
610 std::string method_name = PrettyMethod(method.dex_method_index, *(method.dex_file));
654 // "method/total_count/size/[pc_1:count_1:context_1#pc_2:count_2:context_2#...]".
715 uint32_t ProfileSampleResults::Hash(mirror::ArtMethod* method) {
716 return (PointerToLowMemUInt32(method) >> 3) % kHashSize;
894 StackTrieNode* StackTrieNode::FindChild(MethodReference method, uint32_t dex_pc) {
899 StackTrieNode* node = new StackTrieNode(method, dex_pc, 0, nullptr);