是否有可能使用c++在WinCE中获取与指定进程关联的所有Dll的内存使用情况?

问题描述 投票:0回答:2

我已经创建了 TaskManagerUtility 应用程序,它将为我提供当前在 Windows 移动设备中运行的所有进程的信息。

目前我可以收集到如下信息:-

 1. Process Name
 2. Process ID
 3. Thread ID (associated with the specified process)
 4. Thread Count (total number of threads associated with the specified process)
 5. DLL Name (associated with the specified process)
 6. Process Memory Usage
 7. Process Peak Memory Usage
 8. Process CPU Time
 9. Process CPU utilization

有什么方法可以找出与指定进程关联的所有单个 Dll 的总内存使用量吗?

是否可以实现相同的?有没有可以这样做的API?

如果“否”,那为什么不可能?

请指导我,因为我对此一无所知。

提前致谢。

c++ process windows-mobile windows-ce taskmanager
2个回答
2
投票

从内核的角度来看,DLL 不会为进程分配内存,因此无法知道哪个 DLL 分配了哪些内存块。您可以使用 ToolHelp Functions 确定 process 在堆中分配了多少内存,特别是

Heap32ListFirst
Heap32ListNext
.


0
投票

试试 ANTS Memory Profiler 11.0...

© www.soinside.com 2019 - 2024. All rights reserved.