/base/hiviewdfx/hiview/plugins/freeze_detector/ |
H A D | vendor.cpp | 66 std::list<WatchPoint>::iterator watchPoint; in ReduceRelevanceEvents() local 67 for (watchPoint = list.begin(); watchPoint != list.end();) { in ReduceRelevanceEvents() 68 if (freezeCommon_->IsSystemEvent(watchPoint->GetDomain(), watchPoint->GetStringId())) { in ReduceRelevanceEvents() 69 watchPoint++; in ReduceRelevanceEvents() 71 watchPoint = list.erase(watchPoint); in ReduceRelevanceEvents() 78 std::list<WatchPoint>::iterator watchPoint; in ReduceRelevanceEvents() local 79 for (watchPoint in ReduceRelevanceEvents() 90 std::list<WatchPoint>::iterator watchPoint; ReduceRelevanceEvents() local 117 SendFaultLog(const WatchPoint &watchPoint, const std::string& logPath, const std::string& type) const SendFaultLog() argument 168 MergeFreezeJsonFile(const WatchPoint &watchPoint, const std::vector<WatchPoint>& list) const MergeFreezeJsonFile() argument 221 InitLogInfo(const WatchPoint& watchPoint, std::string& type, std::string& retPath, std::string& tmpLogPath, std::string& tmpLogName) const InitLogInfo() argument 283 MergeEventLog( const WatchPoint &watchPoint, const std::vector<WatchPoint>& list, const std::vector<FreezeResult>& result) const MergeEventLog() argument [all...] |
H A D | resolver.cpp | 51 bool FreezeResolver::ResolveEvent(const WatchPoint& watchPoint, in ResolveEvent() argument 54 if (freezeRuleCluster_ == nullptr || !freezeRuleCluster_->GetResult(watchPoint, result)) { in ResolveEvent() 57 unsigned long long timestamp = watchPoint.GetTimestamp(); in ResolveEvent() 58 long pid = watchPoint.GetPid(); in ResolveEvent() 59 std::string packageName = watchPoint.GetPackageName().empty() ? in ResolveEvent() 60 watchPoint.GetProcessName() : watchPoint.GetPackageName(); in ResolveEvent() 65 list.push_back(watchPoint); in ResolveEvent() 78 bool FreezeResolver::JudgmentResult(const WatchPoint& watchPoint, in JudgmentResult() argument 81 if (watchPoint in JudgmentResult() [all...] |
H A D | freeze_detector_plugin.cpp | 129 WatchPoint watchPoint = OHOS::HiviewDFX::WatchPoint::Builder() in MakeWatchPoint() local 149 return watchPoint; in MakeWatchPoint() 195 WatchPoint watchPoint = MakeWatchPoint(event); in OnEventListeningCallback() local 196 if (watchPoint.GetLogPath().empty()) { in OnEventListeningCallback() 203 bool ruleRet = freezeRuleCluster->GetResult(watchPoint, freezeResultList); in OnEventListeningCallback() 218 ffrt::submit([this, watchPoint] { this->ProcessEvent(watchPoint); }, {}, {}, in OnEventListeningCallback() 223 void FreezeDetectorPlugin::ProcessEvent(WatchPoint watchPoint) in ProcessEvent() argument 226 watchPoint.GetDomain().c_str(), watchPoint in ProcessEvent() [all...] |
H A D | vendor.h | 41 void DumpEventInfo(std::ostringstream& oss, const std::string& header, const WatchPoint& watchPoint) const; 42 void InitLogInfo(const WatchPoint& watchPoint, std::string& type, std::string& retPath, 47 const WatchPoint &watchPoint, const std::vector<WatchPoint>& list, 53 std::string SendFaultLog(const WatchPoint &watchPoint, const std::string& logPath, const std::string& type) const; 54 void MergeFreezeJsonFile(const WatchPoint &watchPoint, const std::vector<WatchPoint>& list) const;
|
H A D | resolver.h | 43 int ProcessEvent(const WatchPoint &watchPoint) const; 46 bool ResolveEvent(const WatchPoint& watchPoint, 48 bool JudgmentResult(const WatchPoint& watchPoint,
|
H A D | db_helper.cpp | 53 WatchPoint watchPoint = WatchPoint::Builder() in GetResultMap() local 63 watchPoint.SetLogPath(smatchResult[1].str()); in GetResultMap() 66 if (resultMap.find(key) != resultMap.end() && watchPoint.GetTimestamp() > resultMap[key].GetTimestamp()) { in GetResultMap() 67 resultMap[key] = watchPoint; in GetResultMap() 69 resultMap.insert(std::pair<std::string, WatchPoint>(key, watchPoint)); in GetResultMap()
|
H A D | freeze_detector_plugin.h | 45 void ProcessEvent(WatchPoint watchPoint);
|
H A D | watch_point.cpp | 138 WatchPoint watchPoint = WatchPoint(*this); in Build() local 139 return watchPoint; in Build()
|
H A D | rule_cluster.cpp | 251 bool FreezeRuleCluster::GetResult(const WatchPoint& watchPoint, std::vector<FreezeResult>& list) in GetResult() argument 253 std::string domain = watchPoint.GetDomain(); in GetResult() 254 std::string stringId = watchPoint.GetStringId(); in GetResult()
|
H A D | rule_cluster.h | 104 bool GetResult(const WatchPoint& watchPoint, std::vector<FreezeResult>& list);
|
/base/hiviewdfx/hiview/plugins/freeze_detector/test/unittest/common/ |
H A D | freeze_detector_unittest.cpp | 131 WatchPoint watchPoint = OHOS::HiviewDFX::WatchPoint::Builder() in HWTEST_F() local 137 ASSERT_EQ(freezeResolver->ProcessEvent(watchPoint), 0); in HWTEST_F() 150 WatchPoint watchPoint = OHOS::HiviewDFX::WatchPoint::Builder() in HWTEST_F() local 155 ASSERT_EQ(freezeResolver->ProcessEvent(watchPoint), -1); in HWTEST_F() 169 WatchPoint watchPoint = OHOS::HiviewDFX::WatchPoint::Builder() in HWTEST_F() local 174 ASSERT_EQ(freezeResolver->ProcessEvent(watchPoint), -1); in HWTEST_F() 188 WatchPoint watchPoint = OHOS::HiviewDFX::WatchPoint::Builder() in HWTEST_F() local 195 EXPECT_FALSE(freezeResolver->JudgmentResult(watchPoint, list, in HWTEST_F() 203 EXPECT_FALSE(freezeResolver->JudgmentResult(watchPoint, list, in HWTEST_F() 210 EXPECT_FALSE(freezeResolver->JudgmentResult(watchPoint, lis in HWTEST_F() 332 WatchPoint watchPoint = OHOS::HiviewDFX::WatchPoint::Builder() HWTEST_F() local 351 WatchPoint watchPoint = OHOS::HiviewDFX::WatchPoint::Builder() HWTEST_F() local 404 WatchPoint watchPoint = OHOS::HiviewDFX::WatchPoint::Builder() HWTEST_F() local 430 WatchPoint watchPoint = OHOS::HiviewDFX::WatchPoint::Builder() HWTEST_F() local 506 WatchPoint watchPoint = OHOS::HiviewDFX::WatchPoint::Builder() HWTEST_F() local 603 WatchPoint watchPoint = OHOS::HiviewDFX::WatchPoint::Builder() HWTEST_F() local 740 WatchPoint watchPoint = OHOS::HiviewDFX::WatchPoint::Builder() HWTEST_F() local 779 WatchPoint watchPoint = OHOS::HiviewDFX::WatchPoint::Builder() HWTEST_F() local 806 WatchPoint watchPoint = OHOS::HiviewDFX::WatchPoint::Builder() HWTEST_F() local 840 WatchPoint watchPoint = OHOS::HiviewDFX::WatchPoint::Builder() HWTEST_F() local [all...] |
/base/hiviewdfx/hiview/plugins/eventlogger/ |
H A D | event_logger.cpp | 746 std::for_each(list.begin(), list.end(), [&appendStack] (const WatchPoint& watchPoint) { in GetFailedDumpStackMsg() 747 appendStack += "\n" + watchPoint.GetMsg(); in GetFailedDumpStackMsg()
|