Lines Matching defs:methodKey
55 bool HeapSampling::PushStackInfo(const struct MethodKey &methodKey)
60 frameStack_.emplace_back(methodKey);
98 struct MethodKey methodKey;
100 methodKey.state = JsStackGetter::GetRunningState(it, vm_, isNative, true);
103 methodKey.state = JsStackGetter::GetRunningState(it, vm_, isNative, false);
109 methodKey.methodIdentifier = methodIdentifier;
110 if (stackInfoMap_.count(methodKey) == 0) {
112 if (UNLIKELY(!JsStackGetter::ParseMethodInfo(methodKey, it, vm_, codeEntry))) {
119 if (UNLIKELY(!PushStackInfo(methodKey))) {
147 frameInfoTemps_[i].methodKey.state,
148 frameInfoTemps_[i].methodKey.deoptType);
152 stackInfoMap_.emplace(frameInfoTemps_[i].methodKey, callframeInfo);
180 struct CallFrameInfo HeapSampling::GetMethodInfo(const MethodKey &methodKey)
183 auto iter = stackInfoMap_.find(methodKey);
190 struct SamplingNode *HeapSampling::FindOrAddNode(struct SamplingNode *node, const MethodKey &methodKey)
193 if (node->children_.count(methodKey) != 0) {
194 childNode = node->children_[methodKey].get();
198 tempNode->callFrameInfo_ = GetMethodInfo(methodKey);
200 node->children_.emplace(methodKey, std::move(tempNode));
201 return node->children_[methodKey].get();