Home
last modified time | relevance | path

Searched refs:FreezeCommon (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/base/hiviewdfx/hiview/plugins/freeze_detector/
H A Dfreeze_common.cpp27 FreezeCommon::FreezeCommon() in FreezeCommon() function in OHOS::HiviewDFX::FreezeCommon
32 FreezeCommon::~FreezeCommon() in ~FreezeCommon()
37 bool FreezeCommon::Init() in Init()
43 bool FreezeCommon::IsFreezeEvent(const std::string& domain, const std::string& stringId) const in IsFreezeEvent()
93 bool FreezeCommon::IsSystemResult(const FreezeResult& result) const in IsSystemResult()
98 bool FreezeCommon::IsApplicationResult(const FreezeResult& result) const in IsApplicationResult()
103 bool FreezeCommon::IsSysWarningResult(const FreezeResult& result) const in IsSysWarningResult()
108 bool FreezeCommon::IsBetaVersion() const in IsBetaVersion()
113 std::set<std::string> FreezeCommon::GetPrincipalStringIds() const in GetPrincipalStringIds()
142 void FreezeCommon::WriteStartInfoToFd(int fd, const std::string& msg) in WriteStartInfoToFd()
[all …]
H A Dvendor.cpp119 info.summary += FreezeCommon::DISPLAY_POWER_INFO + disPlayPowerInfo; in SendFaultLog()
121 info.sectionMaps[FreezeCommon::HIREACE_TIME] = watchPoint.GetHitraceTime(); in SendFaultLog()
122 info.sectionMaps[FreezeCommon::SYSRQ_TIME] = watchPoint.GetSysrqTime(); in SendFaultLog()
123 info.sectionMaps[FreezeCommon::FORE_GROUND] = watchPoint.GetForeGround(); in SendFaultLog()
133 oss << FreezeCommon::EVENT_DOMAIN << FreezeCommon::COLON << watchPoint.GetDomain() << std::endl; in DumpEventInfo()
134 …oss << FreezeCommon::EVENT_STRINGID << FreezeCommon::COLON << watchPoint.GetStringId() << std::end… in DumpEventInfo()
135 oss << FreezeCommon::EVENT_TIMESTAMP << FreezeCommon::COLON << in DumpEventInfo()
138 oss << FreezeCommon::EVENT_PID << FreezeCommon::COLON << watchPoint.GetPid() << std::endl; in DumpEventInfo()
139 oss << FreezeCommon::EVENT_UID << FreezeCommon::COLON << watchPoint.GetUid() << std::endl; in DumpEventInfo()
140 …oss << FreezeCommon::EVENT_PACKAGE_NAME << FreezeCommon::COLON << watchPoint.GetPackageName() << s… in DumpEventInfo()
[all …]
H A Dfreeze_detector_plugin.cpp43 freezeCommon_ = std::make_shared<FreezeCommon>(); in ReadyToLoad()
56 freezeCommon_ = std::make_shared<FreezeCommon>(); in OnLoad()
106 long pid = sysEvent.GetEventIntValue(FreezeCommon::EVENT_PID); in MakeWatchPoint()
108 long uid = sysEvent.GetEventIntValue(FreezeCommon::EVENT_UID); in MakeWatchPoint()
110 std::string packageName = sysEvent.GetEventValue(FreezeCommon::EVENT_PACKAGE_NAME); in MakeWatchPoint()
111 std::string processName = sysEvent.GetEventValue(FreezeCommon::EVENT_PROCESS_NAME); in MakeWatchPoint()
112 std::string hiteaceTime = sysEvent.GetEventValue(FreezeCommon::HIREACE_TIME); in MakeWatchPoint()
113 std::string sysrqTime = sysEvent.GetEventValue(FreezeCommon::SYSRQ_TIME); in MakeWatchPoint()
H A Ddb_helper.cpp35 std::string packageName = record->GetEventValue(FreezeCommon::EVENT_PACKAGE_NAME); in GetResultMap()
37 record->GetEventValue(FreezeCommon::EVENT_PROCESS_NAME) : packageName; in GetResultMap()
38 long pid = record->GetEventIntValue(FreezeCommon::EVENT_PID); in GetResultMap()
46 long uid = record->GetEventIntValue(FreezeCommon::EVENT_UID); in GetResultMap()
53 .InitProcessName(record->GetEventValue(FreezeCommon::EVENT_PROCESS_NAME)) in GetResultMap()
54 ….InitMsg(StringUtil::ReplaceStr(record->GetEventValue(FreezeCommon::EVENT_MSG), "\\n", "\n")).Buil… in GetResultMap()
H A Dfreeze_common.h30 class FreezeCommon {
51 FreezeCommon();
52 ~FreezeCommon();
H A Ddb_helper.h36 explicit DBHelper(std::shared_ptr<FreezeCommon> fc) : freezeCommon_(fc) {}; in DBHelper()
43 std::shared_ptr<FreezeCommon> freezeCommon_;
H A Dresolver.h33 explicit FreezeResolver(std::shared_ptr<FreezeCommon> fc) in FreezeResolver()
57 std::shared_ptr<FreezeCommon> freezeCommon_ = nullptr;
H A Dvendor.h34 explicit Vendor(std::shared_ptr<FreezeCommon> fc) : freezeCommon_(fc) {}; in Vendor()
80 std::shared_ptr<FreezeCommon> freezeCommon_ = nullptr;
H A Dfreeze_detector_plugin.h49 std::shared_ptr<FreezeCommon> freezeCommon_ = nullptr;
/ohos5.0/base/hiviewdfx/hiview/plugins/freeze_detector/test/unittest/common/
H A Dfreeze_detector_unittest.cpp87 auto freezeCommon = std::make_shared<FreezeCommon>();
98 auto freezeCommon = std::make_shared<FreezeCommon>();
111 auto freezeCommon = std::make_shared<FreezeCommon>();
126 auto freezeCommon = std::make_shared<FreezeCommon>();
146 auto freezeCommon = std::make_shared<FreezeCommon>();
164 auto freezeCommon = std::make_shared<FreezeCommon>();
183 auto freezeCommon = std::make_shared<FreezeCommon>();
235 auto freezeCommon = std::make_shared<FreezeCommon>();
252 auto freezeCommon = std::make_shared<FreezeCommon>();
281 auto freezeCommon = std::make_shared<FreezeCommon>();
[all …]
H A Dfreeze_detector_test.cpp471 auto freezeCommon = std::make_shared<FreezeCommon>();
/ohos5.0/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/
H A Devent_log_task.cpp134 FreezeCommon::WriteStartInfoToFd(dupedFd, "start time: "); in StartCompose()
139 FreezeCommon::WriteEndInfoToFd(dupedFd, "end time: "); in StartCompose()
496 FreezeCommon::WriteStartInfoToFd(fd, "start collect hotInfo: "); in GetThermalInfo()
500 FreezeCommon::WriteEndInfoToFd(fd, "\nend collect hotInfo: "); in GetThermalInfo()
/ohos5.0/base/hiviewdfx/hiview/plugins/eventlogger/include/
H A Devent_logger.h100 std::shared_ptr<FreezeCommon> freezeCommon_ = nullptr;
/ohos5.0/base/hiviewdfx/hiview/plugins/eventlogger/
H A Devent_logger.cpp278 FreezeCommon::WriteStartInfoToFd(fd, "start collect meminfo: "); in CollectMemInfo()
286 FreezeCommon::WriteEndInfoToFd(fd, "\nend collect meminfo: "); in CollectMemInfo()
898 FreezeCommon freezeCommon; in OnLoad()
927 freezeCommon_ = std::make_shared<FreezeCommon>(); in OnLoad()