Home
last modified time | relevance | path

Searched refs:GetHiviewContext (Results 1 – 17 of 17) sorted by relevance

/base/hiviewdfx/hiview/test/plugins/examples/event_processor_example4/
Devent_processor_example4.cpp65 if (GetHiviewContext() != nullptr) { in OnEvent()
67 GetHiviewContext()->PostUnorderedEvent(shared_from_this(), event); in OnEvent()
69 GetHiviewContext()->RequestUnloadPlugin(shared_from_this()); in OnEvent()
78 if (GetHiviewContext() != nullptr) { in OnEvent()
80GetHiviewContext()->PostUnorderedEvent(shared_from_this(), Event::Repack<Event, Event>(event, fals… in OnEvent()
83 if (GetHiviewContext() != nullptr) { in OnEvent()
84GetHiviewContext()->SetHiviewProperty("EPE4_OnEvent", "received : " + event->eventName_, true); in OnEvent()
103 GetHiviewContext()->SetHiviewProperty("EPE4_Listening", "received : " + msg.eventName_, true); in OnEventListeningCallback()
/base/hiviewdfx/hiview/test/plugins/examples/event_processor_example1/
Devent_processor_example1.cpp66 if (GetHiviewContext() != nullptr) { in OnEvent()
67GetHiviewContext()->SetHiviewProperty("EPE1_OnEvent", "received : " + event->eventName_, true); in OnEvent()
79 if (GetHiviewContext() != nullptr) { in HandleEvent()
81 GetHiviewContext()->PostUnorderedEvent(shared_from_this(), event); in HandleEvent()
/base/hiviewdfx/hiview/test/plugins/examples/event_processor_example2/
Devent_processor_example2.cpp69 if (GetHiviewContext() != nullptr) { in OnEvent()
70GetHiviewContext()->SetHiviewProperty("EPE2_OnEvent", "received : " + event->eventName_, true); in OnEvent()
82 GetHiviewContext()->RegisterUnorderedEventListener(ptr); in OnLoad()
93 GetHiviewContext()->SetHiviewProperty("EPE2_Listening", "received : " + msg.eventName_, true); in OnUnorderedEvent()
/base/hiviewdfx/hiview/test/plugins/examples/dynamic_load_plugin_example/
Ddynamic_load_plugin_example.cpp39 GetHiviewContext()->RegisterUnorderedEventListener(ptr); in OnLoad()
54 GetHiviewContext()->RequestUnloadPlugin(shared_from_this()); in OnUnorderedEvent()
58 GetHiviewContext()->SetHiviewProperty("DPE_Listening", "received : " + msg.eventName_, true); in OnUnorderedEvent()
/base/hiviewdfx/hiview/plugins/sys_dispatcher/
Dsys_dispatcher.cpp33 this->GetHiviewContext()->PostUnorderedEvent(shared_from_this(), event); in OnLoad()
36 SysEventServiceAdapter::SetWorkLoop(this->GetHiviewContext()->GetSharedWorkLoop()); in OnLoad()
47 …auto dispatchList = GetHiviewContext()->GetDisPatcherInfo(sysEvent->eventType_, sysEvent->eventNam… in DispatchEvent()
/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_plugin_example2/
Dbundle_plugin_example2.cpp47 GetHiviewContext()->SetHiviewProperty("BE2_OnEvent", "received : " + event->eventName_, true); in OnEvent()
54 GetHiviewContext()->AppendPluginToPipeline(GetName(), "NormalPipeline"); in OnLoad()
/base/hiviewdfx/hiview/test/plugins/examples/event_processor_example3/
Devent_processor_example3.cpp59 if (GetHiviewContext() != nullptr) { in OnEvent()
60GetHiviewContext()->SetHiviewProperty("EPE3_OnEvent", "received : " + event->eventName_, true); in OnEvent()
/base/hiviewdfx/hiview/base/
Dplugin_proxy.cpp92 if (plugin_ == nullptr && GetHiviewContext() != nullptr) { in LoadPluginIfNeed()
93 plugin_ = GetHiviewContext()->InstancePluginByProxy(shared_from_this()); in LoadPluginIfNeed()
Dpipeline.cpp121 if (caller == nullptr || event == nullptr || caller->GetHiviewContext() == nullptr) { in FillPipelineInfo()
125 auto seq = caller->GetHiviewContext()->GetPipelineSequenceByName(pipelineName); in FillPipelineInfo()
/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_plugin_example1/
Dbundle_plugin_example1.cpp46 GetHiviewContext()->SetHiviewProperty("BE1_OnEvent", "received : " + event->eventName_, true); in OnEvent()
/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_plugin_example3/
Dbundle_plugin_example3.cpp65 GetHiviewContext()->SetHiviewProperty("BE3_Listening", "received : " + msg.eventName_, true); in OnEventListeningCallback()
/base/hiviewdfx/hiview/plugins/sysevent_source/
Dsysevent_source.cpp69 std::shared_ptr<EventLoop> looper = GetHiviewContext()->GetSharedWorkLoop(); in OnLoad()
/base/hiviewdfx/hiview/plugins/usage_event_report/
Dusage_event_report.cpp78 if (auto context = GetHiviewContext(); context != nullptr) { in Init()
/base/hiviewdfx/hiview/
Dhiview_zh.md79 HiviewContext* GetHiviewContext();
354 平台提供的功能在插件中可以通过调用GetHiviewContext()获得平台接口上下文。平台提供的主要的功能接口如下:
/base/hiviewdfx/hiview/plugins/faultlogger/service/
Dfaultlogger.cpp402 mgr_ = std::make_unique<FaultLogManager>(GetHiviewContext()->GetSharedWorkLoop()); in OnLoad()
410 auto eventloop = GetHiviewContext()->GetSharedWorkLoop(); in OnLoad()
/base/hiviewdfx/hiview/base/include/
Dplugin.h116 HiviewContext* GetHiviewContext() in GetHiviewContext() function
/base/hiviewdfx/hiview/plugins/eventlogger/
Devent_logger.cpp474 auto context = GetHiviewContext(); in OnLoad()
528 auto context = GetHiviewContext(); in CreateAndPublishEvent()