mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-23 06:50:12 +00:00
commit
4f1fe47481
@ -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",
|
||||
]
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user