Lines Matching defs:method
57 // Walk through the method within depth of max_depth_ on the Java stack
97 ArtMethod* method = thread->GetCurrentMethod(nullptr);
98 if ((false) && method == nullptr) {
99 LOG(INFO) << "No current method available";
105 profiler->RecordMethod(method);
396 // This is empty right now, but to add a method, do this:
403 bool BackgroundMethodSamplingProfiler::ProcessMethod(ArtMethod* method) {
404 if (method == nullptr) {
406 // Don't record a null method.
410 mirror::Class* cls = method->GetDeclaringClass();
421 if (strcmp(method->GetName(), "<clinit>") == 0) {
428 std::string method_full_name = PrettyMethod(method);
436 // A method has been hit, record its invocation in the method map.
438 void BackgroundMethodSamplingProfiler::RecordMethod(ArtMethod* method) {
440 if (ProcessMethod(method)) {
441 profile_table_.Put(method);
450 // Get the method on top of the stack. We use this method to perform filtering.
451 ArtMethod* method = stack.front().first;
452 if (ProcessMethod(method)) {
457 // Clean out any recordings for the method traces.
483 // Add a method to the profile table. If it's the first time the method
485 void ProfileSampleResults::Put(ArtMethod* method) {
487 uint32_t index = Hash(method);
491 Map::iterator i = table[index]->find(method);
493 (*table[index])[method] = 1;
500 // Add a bounded stack to the profile table. Only the count of the method on
520 ArtMethod* method = inst_loc.first;
521 if (method == nullptr) {
522 // skip null method
526 uint32_t method_idx = method->GetDexMethodIndex();
527 const DexFile* dex_file = method
534 const DexFile::CodeItem* codeitem = method->GetCodeItem();
549 MethodReference method = current->GetMethod();
550 MethodContextMap::iterator i = method_context_table->find(method);
554 (*method_context_table)[method] = node_set;
580 ArtMethod *method = meth_iter.first;
581 std::string method_name = PrettyMethod(method);
583 const DexFile::CodeItem* codeitem = method->GetCodeItem();
605 MethodReference method = method_iter.first;
607 std::string method_name = PrettyMethod(method.dex_method_index, *(method.dex_file));
651 // "method/total_count/size/[pc_1:count_1:context_1#pc_2:count_2:context_2#...]".
712 uint32_t ProfileSampleResults::Hash(ArtMethod* method) {
713 return (PointerToLowMemUInt32(method) >> 3) % kHashSize;
891 StackTrieNode* StackTrieNode::FindChild(MethodReference method, uint32_t dex_pc) {
896 StackTrieNode* node = new StackTrieNode(method, dex_pc, 0, nullptr);