mirror of
https://gitee.com/openharmony/hiviewdfx_hiview
synced 2024-11-23 00:59:49 +00:00
feat: add duration to PLUGIN_LOAD
Signed-off-by: lyj_love_code <liangyujian2@huawei.com>
This commit is contained in:
parent
2fa870627e
commit
3a218504cb
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022 Huawei Device Co., Ltd.
|
||||
* Copyright (c) 2022-2024 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -23,14 +23,19 @@ using namespace PluginEventSpace;
|
||||
PluginEvent::PluginEvent(const std::string &name, HiSysEvent::EventType type)
|
||||
: LoggerEvent(name, type)
|
||||
{
|
||||
this->paramMap_ = { {KEY_OF_PLUGIN_NAME, DEFAULT_STRING}, {KEY_OF_RESULT, DEFAULT_UINT32} };
|
||||
this->paramMap_ = {
|
||||
{KEY_OF_PLUGIN_NAME, DEFAULT_STRING},
|
||||
{KEY_OF_RESULT, DEFAULT_UINT32},
|
||||
{KEY_OF_DURATION, DEFAULT_UINT32}
|
||||
};
|
||||
}
|
||||
|
||||
void PluginEvent::Report()
|
||||
{
|
||||
HiSysEventWrite(HiSysEvent::Domain::HIVIEWDFX, this->eventName_, this->eventType_,
|
||||
KEY_OF_PLUGIN_NAME, this->paramMap_[KEY_OF_PLUGIN_NAME].GetString(),
|
||||
KEY_OF_RESULT, this->paramMap_[KEY_OF_RESULT].GetUint32());
|
||||
KEY_OF_RESULT, this->paramMap_[KEY_OF_RESULT].GetUint32(),
|
||||
KEY_OF_DURATION, this->paramMap_[KEY_OF_DURATION].GetUint32());
|
||||
}
|
||||
} // namespace HiviewDFX
|
||||
} // namespace OHOS
|
||||
|
@ -26,12 +26,13 @@
|
||||
namespace OHOS {
|
||||
namespace HiviewDFX {
|
||||
DEFINE_LOG_LABEL(LABEL_DOMAIN, "HiView-HiviewEventReport");
|
||||
void HiviewEventReport::ReportPluginLoad(const std::string &name, uint32_t result)
|
||||
void HiviewEventReport::ReportPluginLoad(const std::string &name, uint32_t result, uint32_t duration)
|
||||
{
|
||||
auto factory = std::make_unique<PluginLoadEventFactory>();
|
||||
auto event = factory->Create();
|
||||
event->Update(PluginEventSpace::KEY_OF_PLUGIN_NAME, name);
|
||||
event->Update(PluginEventSpace::KEY_OF_RESULT, result);
|
||||
event->Update(PluginEventSpace::KEY_OF_DURATION, duration);
|
||||
event->Report();
|
||||
HIVIEW_LOGI("report plugin load event=%{public}s", event->ToJsonString().c_str());
|
||||
}
|
||||
|
@ -34,6 +34,7 @@ const std::string LOAD_EVENT_NAME = "PLUGIN_LOAD";
|
||||
const std::string UNLOAD_EVENT_NAME = "PLUGIN_UNLOAD";
|
||||
const std::string KEY_OF_PLUGIN_NAME = "NAME";
|
||||
const std::string KEY_OF_RESULT = "RESULT";
|
||||
const std::string KEY_OF_DURATION = "DURATION";
|
||||
constexpr uint32_t LOAD_SUCCESS = 0;
|
||||
constexpr uint32_t LOAD_DUPLICATE_NAME = 1;
|
||||
constexpr uint32_t LOAD_UNREGISTERED = 2;
|
||||
|
@ -24,7 +24,7 @@ namespace OHOS {
|
||||
namespace HiviewDFX {
|
||||
class HiviewEventReport {
|
||||
public:
|
||||
static void ReportPluginLoad(const std::string &name, uint32_t result);
|
||||
static void ReportPluginLoad(const std::string &name, uint32_t result, uint32_t duration = 0);
|
||||
static void ReportPluginUnload(const std::string &name, uint32_t result);
|
||||
static void ReportPluginFault(const std::string &name, const std::string &reason);
|
||||
static void ReportPluginStats();
|
||||
|
@ -15,7 +15,7 @@
|
||||
"OHOS::HiviewDFX::Plugin::GetName()";
|
||||
"OHOS::HiviewDFX::EventLoop::AddEvent(std::__h::shared_ptr<OHOS::HiviewDFX::EventHandler>, std::__h::shared_ptr<OHOS::HiviewDFX::Event>, std::__h::function<void ()>)";
|
||||
"OHOS::HiviewDFX::Plugin::BindWorkLoop(std::__h::shared_ptr<OHOS::HiviewDFX::EventLoop>)";
|
||||
"OHOS::HiviewDFX::HiviewEventReport::ReportPluginLoad(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&, unsigned int)";
|
||||
"OHOS::HiviewDFX::HiviewEventReport::ReportPluginLoad(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&, unsigned int, unsigned int)";
|
||||
"OHOS::HiviewDFX::PluginFactory::GetGlobalPluginInfo(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::Plugin::SetName(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::EventSource::AddPipeline(std::__h::shared_ptr<OHOS::HiviewDFX::Pipeline>)";
|
||||
@ -126,13 +126,6 @@
|
||||
"OHOS::HiviewDFX::ParamValue::ParamValue(unsigned long)";
|
||||
"OHOS::HiviewDFX::FileUtil::FormatPath2UnixStyle(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>>&)";
|
||||
"OHOS::HiviewDFX::FileUtil::PathToRealPath(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&, std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>>&)";
|
||||
"OHOS::HiviewDFX::SysEvent::GetEventIntValue(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const& ... )";
|
||||
"OHOS::HiviewDFX::SysEvent::GetEventIntValue(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::SysEvent::GetEventValue(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::EventListener::AddListenerInfo(unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::PluginFactory::RegisterPlugin(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::shared_ptr<OHOS::HiviewDFX::PluginRegistInfo>)";
|
||||
"OHOS::HiviewDFX::Plugin::OnEventProxy(std::__1::shared_ptr<OHOS::HiviewDFX::Event>)";
|
||||
"OHOS::HiviewDFX::Plugin::IsInterestedPipelineEvent(std::__1::shared_ptr<OHOS::HiviewDFX::Event>)";
|
||||
"OHOS::HiviewDFX::StringUtil::SplitStr(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&, std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&, std::__h::vector<std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>>, std::__h::allocator<std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>>>>&, bool, bool)";
|
||||
"OHOS::HiviewDFX::FileUtil::ExtractFilePath(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::FileUtil::RemoveFile(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&)";
|
||||
@ -149,68 +142,7 @@
|
||||
"OHOS::HiviewDFX::FileUtil::RenameFile(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&, std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::FileUtil::IsDirectory(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::FileUtil::GetFolderSize(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::EventLoop::AddTimerEvent(std::__1::shared_ptr<OHOS::HiviewDFX::EventHandler>, std::__1::shared_ptr<OHOS::HiviewDFX::Event>, std::__1::function<void ()> const&, unsigned long, bool)";
|
||||
"OHOS::HiviewDFX::EventLoop::AddEvent(std::__1::shared_ptr<OHOS::HiviewDFX::EventHandler>, std::__1::shared_ptr<OHOS::HiviewDFX::Event>, std::__1::function<void ()>)";
|
||||
"OHOS::HiviewDFX::EventLoop::AddTimerEvent(std::__1::shared_ptr<OHOS::HiviewDFX::EventHandler>, std::__1::shared_ptr<OHOS::HiviewDFX::Event>, std::__1::function<void ()> const&, unsigned long, bool)";
|
||||
"OHOS::HiviewDFX::Plugin::BindWorkLoop(std::__1::shared_ptr<OHOS::HiviewDFX::EventLoop>)";
|
||||
"OHOS::HiviewDFX::HiviewEventReport::ReportPluginLoad(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, unsigned int)";
|
||||
"OHOS::HiviewDFX::PluginFactory::GetGlobalPluginInfo(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::HiviewEventReport::ReportPluginLoad(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, unsigned int)";
|
||||
"OHOS::HiviewDFX::Plugin::SetName(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::HiviewEventReport::ReportPluginLoad(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, unsigned int)";
|
||||
"OHOS::HiviewDFX::EventSource::AddPipeline(std::__1::shared_ptr<OHOS::HiviewDFX::Pipeline>)";
|
||||
"OHOS::HiviewDFX::PluginFactory::GetGlobalPluginInfo(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::Plugin::BindWorkLoop(std::__1::shared_ptr<OHOS::HiviewDFX::EventLoop>)";
|
||||
"OHOS::HiviewDFX::EventLoop::EventLoop(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::EventDispatchQueue::EventDispatchQueue(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, OHOS::HiviewDFX::Event::ManageType, OHOS::HiviewDFX::HiviewContext*)";
|
||||
"OHOS::HiviewDFX::EventDispatchQueue::Enqueue(std::__1::shared_ptr<OHOS::HiviewDFX::Event>)";
|
||||
"OHOS::HiviewDFX::EventLoop::AddEventForResult(std::__1::shared_ptr<OHOS::HiviewDFX::EventHandler>, std::__1::shared_ptr<OHOS::HiviewDFX::Event>)";
|
||||
"OHOS::HiviewDFX::EventLoop::AddEvent(std::__1::shared_ptr<OHOS::HiviewDFX::EventHandler>, std::__1::shared_ptr<OHOS::HiviewDFX::Event>, std::__1::function<void ()>)";
|
||||
"OHOS::HiviewDFX::HiviewEventReport::ReportPluginUnload(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, unsigned int)";
|
||||
"OHOS::HiviewDFX::PluginFactory::UnregisterPlugin(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::Event::SetValue(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::Event::GetIntValue(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) const";
|
||||
"OHOS::HiviewDFX::Pipeline::AppendProcessor(std::__1::weak_ptr<OHOS::HiviewDFX::Plugin>)";
|
||||
"OHOS::HiviewDFX::EventLoop::~EventLoop()";
|
||||
"OHOS::HiviewDFX::AuditLogParser::GetPluginSummary(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::AuditLogParser::GetThreadSummary(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::AuditLogParser::GetPipelineSummary(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::SysEventCreator::SysEventCreator(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, OHOS::HiviewDFX::SysEventCreator::EventType)";
|
||||
"OHOS::HiviewDFX::HiviewGlobal::PostSyncEventToTarget(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::shared_ptr<OHOS::HiviewDFX::Event>)";
|
||||
"OHOS::HiviewDFX::SysEventCreator::EscapeStringValue(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::SysEvent::SysEvent(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, OHOS::HiviewDFX::PipelineEventProducer*, OHOS::HiviewDFX::SysEventCreator&)";
|
||||
"OHOS::HiviewDFX::EventSource::PublishPipelineEvent(std::__1::shared_ptr<OHOS::HiviewDFX::PipelineEvent>)";
|
||||
"OHOS::HiviewDFX::SysEvent::SysEvent(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, OHOS::HiviewDFX::PipelineEventProducer*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::Plugin::OnEvent(std::__1::shared_ptr<OHOS::HiviewDFX::Event>&)";
|
||||
"OHOS::HiviewDFX::Plugin::CanProcessEvent(std::__1::shared_ptr<OHOS::HiviewDFX::Event>)";
|
||||
"OHOS::HiviewDFX::Event::SetValue(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, int)";
|
||||
"OHOS::HiviewDFX::Event::GetValue(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) const";
|
||||
"OHOS::HiviewDFX::EventThreadPool::AddTask(std::__1::function<void ()>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, unsigned long, unsigned char)";
|
||||
"OHOS::HiviewDFX::SysEvent::SetEventValue(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, bool)";
|
||||
"OHOS::HiviewDFX::LogStoreEx::CreateLogFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::Plugin::SetVersion(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::EventLoop::AddFileDescriptorEventCallback(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::shared_ptr<OHOS::HiviewDFX::FileDescriptorEventCallback>)";
|
||||
"OHOS::HiviewDFX::EventThreadPool::EventThreadPool(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::SysEvent::SetEventValue(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, long)";
|
||||
"OHOS::HiviewDFX::PipelineEvent::SetPipelineInfo(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::list<std::__1::weak_ptr<OHOS::HiviewDFX::Plugin>, std::__1::allocator<std::__1::weak_ptr<OHOS::HiviewDFX::Plugin>>>&)";
|
||||
"OHOS::HiviewDFX::LogStoreEx::LogStoreEx(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, bool)";
|
||||
"OHOS::HiviewDFX::LoggerEvent::GetValue(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::ParamValue::ParamValue(std::__1::vector<unsigned int, std::__1::allocator<unsigned int>> const&)";
|
||||
"OHOS::HiviewDFX::ParamValue::ParamValue(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const&)";
|
||||
"OHOS::HiviewDFX::ParamValue::ParamValue(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::LoggerEvent::InnerUpdate(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, OHOS::HiviewDFX::ParamValue const&)";
|
||||
"OHOS::HiviewDFX::HiviewEventCacher::AddPluginStatsEvent(std::__1::vector<std::__1::shared_ptr<OHOS::HiviewDFX::LoggerEvent>, std::__1::allocator<std::__1::shared_ptr<OHOS::HiviewDFX::LoggerEvent>>> const&)";
|
||||
"OHOS::HiviewDFX::HiviewEventCacher::GetPluginStatsEvents(std::__1::vector<std::__1::shared_ptr<OHOS::HiviewDFX::LoggerEvent>, std::__1::allocator<std::__1::shared_ptr<OHOS::HiviewDFX::LoggerEvent>>>&)";
|
||||
"OHOS::HiviewDFX::HiviewGlobal::PostUnorderedEvent(std::__1::shared_ptr<OHOS::HiviewDFX::Event>)";
|
||||
"OHOS::HiviewDFX::LogStoreEx::SetLogFileComparator(std::__1::function<bool (OHOS::HiviewDFX::LogFile const&, OHOS::HiviewDFX::LogFile const&)>)";
|
||||
"OHOS::HiviewDFX::LogStoreEx::ClearSameLogFilesIfNeeded(std::__1::function<bool (OHOS::HiviewDFX::LogFile const&)>, unsigned int)";
|
||||
"OHOS::HiviewDFX::LogStoreEx::GetLogFiles(std::__1::function<bool (OHOS::HiviewDFX::LogFile const&)>)";
|
||||
"OHOS::HiviewDFX::FileUtil::FormatPath2UnixStyle(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>& ... )";
|
||||
"OHOS::HiviewDFX::FileUtil::FormatPath2UnixStyle(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>&)";
|
||||
"OHOS::HiviewDFX::FileUtil::PathToRealPath(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>&)";
|
||||
"OHOS::HiviewDFX::StringUtil::SplitStr(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_t ... )";
|
||||
"OHOS::HiviewDFX::StringUtil::SplitStr(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>>&, bool, bool)";
|
||||
"OHOS::HiviewDFX::StringUtil::ReplaceStr(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::MemoryUtil::DisableThreadCache()";
|
||||
"OHOS::HiviewDFX::MemoryUtil::DisableDelayFree()";
|
||||
"OHOS::HiviewDFX::Pipeline::RemoveProcessor(std::__h::weak_ptr<OHOS::HiviewDFX::Plugin>)";
|
||||
@ -219,11 +151,6 @@
|
||||
"OHOS::HiviewDFX::StringUtil::SplitStr(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&, char)";
|
||||
"OHOS::HiviewDFX::StringUtil::EraseString(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&, std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::StringUtil::VectorToString(std::__h::vector<std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>>, std::__h::allocator<std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>>>> const&, bool, std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::StringUtil::GetLeftSubstr(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::StringUtil::GetRightSubstr(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::StringUtil::GetRleftSubstr(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::StringUtil::GetRrightSubstr(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::StringUtil::GetMidSubstr(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::StringUtil::GetLeftSubstr(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&, std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::StringUtil::GetRightSubstr(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&, std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&)";
|
||||
"OHOS::HiviewDFX::StringUtil::GetRleftSubstr(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&, std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&)";
|
||||
|
@ -446,7 +446,6 @@ void HiviewPlatform::CreatePlugin(const PluginConfig::PluginInfo& pluginInfo)
|
||||
}
|
||||
// hold the global reference of the plugin
|
||||
pluginMap_[pluginInfo.name] = std::move(plugin);
|
||||
HiviewEventReport::ReportPluginLoad(pluginInfo.name, PluginEventSpace::LOAD_SUCCESS);
|
||||
}
|
||||
|
||||
void HiviewPlatform::CreatePipeline(const PluginConfig::PipelineInfo& pipelineInfo)
|
||||
@ -529,8 +528,9 @@ void HiviewPlatform::InitPlugin(const PluginConfig& config __UNUSED, const Plugi
|
||||
}
|
||||
|
||||
uint64_t endTime = TimeUtil::GenerateTimestamp();
|
||||
uint64_t loadTime = endTime > beginTime ? (endTime - beginTime) : 0;
|
||||
HIVIEW_LOGI("Plugin %{public}s loadtime:%{public}" PRIu64 ".", pluginInfo.name.c_str(), loadTime);
|
||||
uint64_t loadDuration = endTime > beginTime ? (endTime - beginTime) : 0;
|
||||
HIVIEW_LOGI("Plugin %{public}s loadtime:%{public}" PRIu64 ".", pluginInfo.name.c_str(), loadDuration);
|
||||
HiviewEventReport::ReportPluginLoad(pluginInfo.name, PluginEventSpace::LOAD_SUCCESS, loadDuration);
|
||||
}
|
||||
|
||||
void HiviewPlatform::NotifyPluginReady()
|
||||
|
@ -17,11 +17,13 @@ PLUGIN_LOAD:
|
||||
__BASE: {type: BEHAVIOR, level: CRITICAL, tag: hiviewPlugin, desc: load hiview plugin}
|
||||
NAME: {type: STRING, desc: plugin name}
|
||||
RESULT: {type: UINT32, desc: result of plugin loading}
|
||||
DURATION: {type: UINT32, desc: loading duration }
|
||||
|
||||
PLUGIN_UNLOAD:
|
||||
__BASE: {type: BEHAVIOR, level: CRITICAL, tag: hiviewPlugin, desc: unload hiview plugin}
|
||||
NAME: {type: STRING, desc: plugin name}
|
||||
RESULT: {type: UINT32, desc: result of plugin unloading}
|
||||
DURATION: {type: UINT32, desc: unloading duration } # Not supported, default value 0.
|
||||
|
||||
PLUGIN_STATS:
|
||||
__BASE: {type: STATISTIC, level: CRITICAL, tag: hiviewPlugin, desc: statistics of events handled by plugins}
|
||||
|
Loading…
Reference in New Issue
Block a user