Home
last modified time | relevance | path

Searched refs:jsMethod (Results 1 – 4 of 4) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
Dpgo_profiler.cpp85 auto jsMethod = Method::Cast(JSFunction::Cast(funcValue)->GetMethod()); in ProfileOpType() local
91 recordInfos_->AddType(recordName, jsMethod->GetMethodId(), offset, PGOSampleType(type)); in ProfileOpType()
115 auto jsMethod = Method::Cast(method); in ProfileDefineClass() local
116 auto funcMethodId = jsMethod->GetMethodId(); in ProfileDefineClass()
177 auto jsMethod = Method::Cast(method); in ProfileCreateObject() local
178 auto funcMethodId = jsMethod->GetMethodId(); in ProfileCreateObject()
217 auto jsMethod = Method::Cast(method); in ProfileObjLayout() local
238 auto methodId = jsMethod->GetMethodId(); in ProfileObjLayout()
251 auto methodId = jsMethod->GetMethodId(); in ProfileObjLayout()
273 recordInfos_->AddObjectInfo(recordName, jsMethod->GetMethodId(), offset, info); in ProfileObjLayout()
Dpgo_profiler_info.cpp616 bool PGOMethodInfoMap::AddMethod(Chunk *chunk, Method *jsMethod, SampleMode mode, int32_t incCount) in AddMethod() argument
618 PGOMethodId methodId(jsMethod->GetMethodId()); in AddMethod()
626 CString methodName = jsMethod->GetMethodName(); in AddMethod()
632 …auto checksum = PGOMethodInfo::CalcChecksum(jsMethod->GetMethodName(), jsMethod->GetBytecodeArray(… in AddMethod()
633 jsMethod->GetCodeSize()); in AddMethod()
985 bool PGORecordDetailInfos::AddMethod(const CString &recordName, Method *jsMethod, SampleMode mode, … in AddMethod() argument
989 ASSERT(jsMethod != nullptr); in AddMethod()
990 return curMethodInfos->AddMethod(chunk_.get(), jsMethod, mode, incCount); in AddMethod()
Dpgo_profiler_info.h838 bool AddMethod(Chunk *chunk, Method *jsMethod, SampleMode mode, int32_t incCount);
1034 bool AddMethod(const CString &recordName, Method *jsMethod, SampleMode mode, int32_t incCount);
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/tests/
Dpgo_profiler_test.cpp577 auto *jsMethod = in HWTEST_F_L0() local
580 ASSERT_TRUE(recordInfos->AddMethod("test", jsMethod, SampleMode::CALL_MODE, 1)); in HWTEST_F_L0()
581 ASSERT_FALSE(recordInfos->AddMethod("test", jsMethod, SampleMode::CALL_MODE, 1)); in HWTEST_F_L0()
582 ASSERT_FALSE(recordInfos->AddMethod("test", jsMethod, SampleMode::CALL_MODE, 1)); in HWTEST_F_L0()