/base/hiviewdfx/hiview/plugins/usage_event_report/cache/ |
D | usage_event_cacher.cpp | 28 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()
|
D | event_db_helper.cpp | 92 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/ |
D | usage_event_cacher.h | 34 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,
|
D | event_db_helper.h | 32 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);
|
D | json_parser.h | 30 …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/ |
D | hiview_event_cacher.h | 32 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/ |
D | logger_event.h | 27 class LoggerEvent { 29 LoggerEvent(const std::string &name, HiSysEvent::EventType type) in LoggerEvent() function 32 virtual ~LoggerEvent() {} in ~LoggerEvent()
|
D | plugin_event.h | 23 class PluginEvent : public LoggerEvent {
|
/base/hiviewdfx/hiview/base/event_report/factory/include/ |
D | logger_event_factory.h | 29 virtual std::unique_ptr<LoggerEvent> Create() = 0; 30 virtual void Create(std::vector<std::unique_ptr<LoggerEvent>>& events) {} in Create()
|
D | plugin_stats_event_factory.h | 25 std::unique_ptr<LoggerEvent> Create() override;
|
D | plugin_load_event_factory.h | 25 std::unique_ptr<LoggerEvent> Create() override;
|
D | plugin_fault_event_factory.h | 25 std::unique_ptr<LoggerEvent> Create() override;
|
D | plugin_unload_event_factory.h | 25 std::unique_ptr<LoggerEvent> Create() override;
|
/base/hiviewdfx/hiview/base/event_report/test/unittest/common/ |
D | event_report_unit_test.cpp | 31 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/ |
D | usage_event_report_service.h | 37 …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/ |
D | usage_event_report_service.cpp | 63 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/ |
D | app_usage_event_factory.h | 38 std::unique_ptr<LoggerEvent> Create() override; 39 void Create(std::vector<std::unique_ptr<LoggerEvent>>& events) override;
|
/base/hiviewdfx/hiview/base/event_report/event/ |
D | logger_event.cpp | 80 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/ |
D | sys_usage_event_factory.cpp | 39 std::unique_ptr<LoggerEvent> SysUsageEventFactory::Create() in Create() 41 std::unique_ptr<LoggerEvent> event = in Create()
|
/base/hiviewdfx/hiview/base/event_report/cache/ |
D | hiview_event_cacher.cpp | 24 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/ |
D | plugin_fault_event_factory.cpp | 22 std::unique_ptr<LoggerEvent> PluginFaultEventFactory::Create() in Create()
|
D | plugin_stats_event_factory.cpp | 22 std::unique_ptr<LoggerEvent> PluginStatsEventFactory::Create() in Create()
|
D | plugin_unload_event_factory.cpp | 22 std::unique_ptr<LoggerEvent> PluginUnloadEventFactory::Create() in Create()
|
D | plugin_load_event_factory.cpp | 22 std::unique_ptr<LoggerEvent> PluginLoadEventFactory::Create() in Create()
|
/base/hiviewdfx/hiview/plugins/usage_event_report/event/include/ |
D | app_usage_event.h | 23 class AppUsageEvent : public LoggerEvent {
|