Home
last modified time | relevance | path

Searched refs:methodKey (Results 1 – 7 of 7) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/
Djs_stackgetter.h42 bool operator < (const MethodKey &methodKey) const
44 return state < methodKey.state ||
45 (state == methodKey.state && methodIdentifier < methodKey.methodIdentifier) ||
46 (state == methodKey.state && methodIdentifier == methodKey.methodIdentifier &&
47 deoptType < methodKey.deoptType);
52 struct MethodKey methodKey = {0}; member
57 (parentId == nodeKey.parentId && methodKey < nodeKey.methodKey);
69 struct MethodKey methodKey = {0}; member
75 static bool ParseMethodInfo(struct MethodKey &methodKey,
Djs_stackgetter.cpp52 bool JsStackGetter::ParseMethodInfo(struct MethodKey &methodKey, in ParseMethodInfo() argument
60 codeEntry.methodKey = methodKey; in ParseMethodInfo()
67 … EntityId methodId = reinterpret_cast<MethodLiteral *>(methodKey.methodIdentifier)->GetMethodId(); in ParseMethodInfo()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
Dheap_sampling.cpp55 bool HeapSampling::PushStackInfo(const struct MethodKey &methodKey) in PushStackInfo() argument
60 frameStack_.emplace_back(methodKey); in PushStackInfo()
98 struct MethodKey methodKey; in GetStack() local
100 methodKey.state = JsStackGetter::GetRunningState(it, vm_, isNative, true); in GetStack()
103 methodKey.state = JsStackGetter::GetRunningState(it, vm_, isNative, false); in GetStack()
109 methodKey.methodIdentifier = methodIdentifier; in GetStack()
110 if (stackInfoMap_.count(methodKey) == 0) { in GetStack()
112 if (UNLIKELY(!JsStackGetter::ParseMethodInfo(methodKey, it, vm_, codeEntry))) { in GetStack()
119 if (UNLIKELY(!PushStackInfo(methodKey))) { in GetStack()
147 frameInfoTemps_[i].methodKey.state, in FillScriptIdAndStore()
[all …]
Dheap_sampling.h68 CallFrameInfo GetMethodInfo(const MethodKey &methodKey);
69 struct SamplingNode *FindOrAddNode(struct SamplingNode *node, const MethodKey &methodKey);
70 bool PushStackInfo(const struct MethodKey &methodKey);
/arkcompiler/ets_runtime/ecmascript/dfx/cpu_profiler/
Dcpu_profiler.cpp276 struct MethodKey methodKey; in GetStack() local
277 methodKey.deoptType = method->GetDeoptType(); in GetStack()
279 methodKey.state = JsStackGetter::GetRunningState(it, vm_, isNative, true, enableVMTag_); in GetStack()
282methodKey.state = JsStackGetter::GetRunningState(it, vm_, isNative, false, enableVMTag_); in GetStack()
288 methodKey.methodIdentifier = methodIdentifier; in GetStack()
289 if (stackInfo.count(methodKey) == 0) { in GetStack()
291 if (UNLIKELY(!JsStackGetter::ParseMethodInfo(methodKey, it, vm_, codeEntry, true))) { in GetStack()
298 if (UNLIKELY(!generator_->PushFrameStack(methodKey))) { in GetStack()
342 struct MethodKey methodKey; in GetStackCallNapi() local
343 methodKey.deoptType = method->GetDeoptType(); in GetStackCallNapi()
[all …]
Dsamples_record.cpp55 nodeKey.methodKey.methodIdentifier = reinterpret_cast<void *>(INT_MAX - 1); in NodeInit()
62 … nodeKey.methodKey.methodIdentifier = reinterpret_cast<void *>(INT_MAX - 2); // 2:program node id in NodeInit()
69 nodeKey.methodKey.methodIdentifier = reinterpret_cast<void *>(INT_MAX - 3); // 3:idle node id in NodeInit()
91 nodeKey.methodKey = frame->frameStack[frameStackLength - 1]; in AddSample()
98 methodNode.codeEntry = GetMethodInfo(nodeKey.methodKey); in AddSample()
119 previousState_ = nodeKey.methodKey.state; in AddSample()
383 struct FrameInfo SamplesRecord::GetMethodInfo(struct MethodKey &methodKey) in GetMethodInfo() argument
386 auto iter = stackInfoMap_.find(methodKey); in GetMethodInfo()
574 void SamplesRecord::InsertStackInfo(struct MethodKey &methodKey, struct FrameInfo &codeEntry) in InsertStackInfo() argument
576 stackInfoMap_.emplace(methodKey, codeEntry); in InsertStackInfo()
[all …]
Dsamples_record.h143 void InsertStackInfo(struct MethodKey &methodKey, struct FrameInfo &codeEntry);
144 bool PushFrameStack(struct MethodKey &methodKey);
152 bool PushNapiFrameStack(struct MethodKey &methodKey);
185 struct FrameInfo GetMethodInfo(struct MethodKey &methodKey);