Home
last modified time | relevance | path

Searched refs:LoggerEvent (Results 1 – 25 of 39) sorted by relevance

12

/base/hiviewdfx/hiview/plugins/usage_event_report/cache/
Dusage_event_cacher.cpp28 void UsageEventCacher::GetPluginStatsEvents(std::vector<std::shared_ptr<LoggerEvent>>& events) const in GetPluginStatsEvents()
36 std::shared_ptr<LoggerEvent> UsageEventCacher::GetSysUsageEvent(const std::string& table) const in GetSysUsageEvent()
38 std::shared_ptr<LoggerEvent> event = nullptr; in GetSysUsageEvent()
48 std::vector<std::shared_ptr<LoggerEvent>> events; in DeletePluginStatsEventsFromDb()
56 std::shared_ptr<LoggerEvent> event = nullptr; in DeleteSysUsageEventFromDb()
62 void UsageEventCacher::SavePluginStatsEventsToDb(const std::vector<std::shared_ptr<LoggerEvent>>& e… in SavePluginStatsEventsToDb()
72 void UsageEventCacher::SaveSysUsageEventToDb(const std::shared_ptr<LoggerEvent>& event, const std::… in SaveSysUsageEventToDb()
Devent_db_helper.cpp92 int EventDbHelper::InsertPluginStatsEvent(std::shared_ptr<LoggerEvent> event) in InsertPluginStatsEvent()
102 std::vector<std::shared_ptr<LoggerEvent>> oldEvents; in InsertPluginStatsEvent()
109 int EventDbHelper::InsertSysUsageEvent(std::shared_ptr<LoggerEvent> event, const std::string& table) in InsertSysUsageEvent()
119 std::shared_ptr<LoggerEvent> oldEvent = nullptr; in InsertSysUsageEvent()
125 int EventDbHelper::QueryPluginStatsEvent(std::vector<std::shared_ptr<LoggerEvent>>& events, in QueryPluginStatsEvent()
140 std::shared_ptr<LoggerEvent> event = factory->Create(); in QueryPluginStatsEvent()
151 int EventDbHelper::QuerySysUsageEvent(std::shared_ptr<LoggerEvent>& event, const std::string& table) in QuerySysUsageEvent()
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/include/
Dusage_event_cacher.h34 void GetPluginStatsEvents(std::vector<std::shared_ptr<LoggerEvent>>& events) const;
35 …std::shared_ptr<LoggerEvent> GetSysUsageEvent(const std::string& table = SysUsageDbSpace::SYS_USAG…
37 void SavePluginStatsEventsToDb(const std::vector<std::shared_ptr<LoggerEvent>>& events) const;
39 void SaveSysUsageEventToDb(const std::shared_ptr<LoggerEvent>& event,
Devent_db_helper.h32 int InsertPluginStatsEvent(std::shared_ptr<LoggerEvent> event);
33 int InsertSysUsageEvent(std::shared_ptr<LoggerEvent> event, const std::string& table);
34 …int QueryPluginStatsEvent(std::vector<std::shared_ptr<LoggerEvent>>& events, const std::string& pl…
35 int QuerySysUsageEvent(std::shared_ptr<LoggerEvent>& events, const std::string& table);
Djson_parser.h30 …static bool ParsePluginStatsEvent(std::shared_ptr<LoggerEvent>& event, const std::string& jsonStr);
31 static bool ParseSysUsageEvent(std::shared_ptr<LoggerEvent>& event, const std::string& jsonStr);
/base/hiviewdfx/hiview/base/event_report/cache/include/
Dhiview_event_cacher.h32 void AddPluginStatsEvent(const std::vector<std::shared_ptr<LoggerEvent>>& events);
33 void GetPluginStatsEvents(std::vector<std::shared_ptr<LoggerEvent>>& events);
38 std::map<std::string, std::shared_ptr<LoggerEvent>> pluginStatsEvents_;
/base/hiviewdfx/hiview/base/event_report/event/include/
Dlogger_event.h27 class LoggerEvent {
29 LoggerEvent(const std::string &name, HiSysEvent::EventType type) in LoggerEvent() function
32 virtual ~LoggerEvent() {} in ~LoggerEvent()
Dplugin_event.h23 class PluginEvent : public LoggerEvent {
/base/hiviewdfx/hiview/base/event_report/factory/include/
Dlogger_event_factory.h29 virtual std::unique_ptr<LoggerEvent> Create() = 0;
30 virtual void Create(std::vector<std::unique_ptr<LoggerEvent>>& events) {} in Create()
Dplugin_stats_event_factory.h25 std::unique_ptr<LoggerEvent> Create() override;
Dplugin_load_event_factory.h25 std::unique_ptr<LoggerEvent> Create() override;
Dplugin_fault_event_factory.h25 std::unique_ptr<LoggerEvent> Create() override;
Dplugin_unload_event_factory.h25 std::unique_ptr<LoggerEvent> Create() override;
/base/hiviewdfx/hiview/base/event_report/test/unittest/common/
Devent_report_unit_test.cpp31 class TestLoggerEvent : public LoggerEvent {
34 : LoggerEvent(name, type) {} in TestLoggerEvent()
66 std::vector<std::shared_ptr<LoggerEvent>> events;
70 std::vector<std::shared_ptr<LoggerEvent>> events1;
/base/hiviewdfx/hiview/plugins/usage_event_report/service/include/
Dusage_event_report_service.h37 …void UpdateCacheSysUsage(std::shared_ptr<LoggerEvent>& cacheUsage, const UsageEventCacher& cacher);
38 void UpdateLastSysUsage(std::shared_ptr<LoggerEvent>& nowUsage, const UsageEventCacher& cacher);
/base/hiviewdfx/hiview/plugins/usage_event_report/service/
Dusage_event_report_service.cpp63 std::vector<std::unique_ptr<LoggerEvent>> events; in ReportAppUsage()
90 void UsageEventReportService::UpdateCacheSysUsage(std::shared_ptr<LoggerEvent>& cacheUsage, in UpdateCacheSysUsage()
93 std::shared_ptr<LoggerEvent> nowUsage = std::make_unique<SysUsageEventFactory>()->Create(); in UpdateCacheSysUsage()
105 void UsageEventReportService::UpdateLastSysUsage(std::shared_ptr<LoggerEvent>& nowUsage, in UpdateLastSysUsage()
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/include/
Dapp_usage_event_factory.h38 std::unique_ptr<LoggerEvent> Create() override;
39 void Create(std::vector<std::unique_ptr<LoggerEvent>>& events) override;
/base/hiviewdfx/hiview/base/event_report/event/
Dlogger_event.cpp80 ParamValue LoggerEvent::GetValue(const std::string& name) in GetValue()
85 std::string LoggerEvent::ToJsonString() in ToJsonString()
107 void LoggerEvent::InnerUpdate(const std::string &name, const ParamValue& value) in InnerUpdate()
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/
Dsys_usage_event_factory.cpp39 std::unique_ptr<LoggerEvent> SysUsageEventFactory::Create() in Create()
41 std::unique_ptr<LoggerEvent> event = in Create()
/base/hiviewdfx/hiview/base/event_report/cache/
Dhiview_event_cacher.cpp24 void HiviewEventCacher::AddPluginStatsEvent(const std::vector<std::shared_ptr<LoggerEvent>>& events) in AddPluginStatsEvent()
35 void HiviewEventCacher::GetPluginStatsEvents(std::vector<std::shared_ptr<LoggerEvent>>& events) in GetPluginStatsEvents()
/base/hiviewdfx/hiview/base/event_report/factory/
Dplugin_fault_event_factory.cpp22 std::unique_ptr<LoggerEvent> PluginFaultEventFactory::Create() in Create()
Dplugin_stats_event_factory.cpp22 std::unique_ptr<LoggerEvent> PluginStatsEventFactory::Create() in Create()
Dplugin_unload_event_factory.cpp22 std::unique_ptr<LoggerEvent> PluginUnloadEventFactory::Create() in Create()
Dplugin_load_event_factory.cpp22 std::unique_ptr<LoggerEvent> PluginLoadEventFactory::Create() in Create()
/base/hiviewdfx/hiview/plugins/usage_event_report/event/include/
Dapp_usage_event.h23 class AppUsageEvent : public LoggerEvent {

12