!1921 图形内存采集接口适配hiview修改

Merge pull request !1921 from negegne/master
This commit is contained in:
openharmony_ci 2024-09-27 13:00:13 +00:00 committed by Gitee
commit 4f1fe47481
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ ohos_source_set("memdataplugin_source") {
"drivers_interface_memorytracker:libmemorytracker_proxy_1.0",
"hidumper:lib_dump_usage",
"hilog:libhilog_base",
"hiview:libucollection_utility",
"hiview:libucollection_graphic",
"protobuf:protobuf_lite",
]
}

View File

@ -36,7 +36,7 @@
#include "memory_plugin_result.pb.h"
#include "plugin_module_api.h"
#include "smaps_stats.h"
#include "memory_collector.h"
#include "graphic_memory_collector.h"
struct Proto2StrMapping {
int protobufid;

View File

@ -1266,7 +1266,7 @@ bool MemoryDataPlugin::GetRenderServiceGlSize(int32_t pid, GraphicsMemory& graph
bool MemoryDataPlugin::GetGraphicsMemory(int32_t pid, GraphicsMemory &graphicsMemory, GraphicType graphicType)
{
std::shared_ptr<MemoryCollector> collector = MemoryCollector::Create();
std::shared_ptr<GraphicMemoryCollector> collector = GraphicMemoryCollector::Create();
OHOS::HiviewDFX::CollectResult<int32_t> data;
data = collector->GetGraphicUsage(pid, graphicType);
if (data.retCode != UcError::SUCCESS) {

View File

@ -60,7 +60,7 @@ ohos_unittest("plugin_module_api_ut") {
"googletest:gtest",
"hidumper:lib_dump_usage",
"hilog:libhilog_base",
"hiview:libucollection_utility",
"hiview:libucollection_graphic",
"protobuf:protobuf_lite",
]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"