有关memory usage的问题, 求高手赐教
在单位开发了UTF8 to Unicode encoding conversion layer;
现在需要测试内存使用情况还有运行速度;
请问在C++ library里有没有什么function可以用来显示memory usage;
:( 刚毕业, 在学校没写过执行质量的test case, 求赐教.
问题点数:20、回复次数:8Top
1 楼bulala()回复于 2005-04-04 11:20:02 得分 0
c++中没有,因该市在win32的api中,Top
2 楼deserg()回复于 2005-04-04 11:44:40 得分 0
To bulala:
谢谢, win32中的api也可以, 因为是在windows环境中开发的,不过我search了MSDN, 没找到:(
或者大家淡淡做法, 我现在对怎么test一点思路也没有.Top
3 楼somexing(somexing)回复于 2005-04-04 12:33:22 得分 20
内存使用情况可以直接用系统工具 win2000 管理工具 -- 性能 监测内存情况
或者
用些win api
GetProcessMemoryInfo
之类获取内存的情况,分时段的内存使用情况,然后自己出一个结果
Top
4 楼oyljerry(【勇敢的心】→ ㊣提拉米苏√㊣)回复于 2005-04-04 13:03:22 得分 0
GloableMemoryInfo获得内存使用情况Top
5 楼deserg()回复于 2005-04-04 15:42:06 得分 0
to somexing,
谢谢, 我找到那个api啦,正在研究;
to oyljeery;
GlobalMemoryInfo? 我没找到,是软件吗?Top
6 楼deserg()回复于 2005-04-05 09:05:34 得分 0
to ruanmei050404:
:S, 我倒Top
7 楼somexing(somexing)回复于 2005-04-05 09:37:35 得分 0
Another Two API
GlobalMemoryStatus
The GlobalMemoryStatus function obtains information about the computer system's current usage of both physical and virtual memory.
VOID GlobalMemoryStatus(
LPMEMORYSTATUS lpBuffer // pointer to the memory status structure
);
GlobalMemoryStatusVlm
[This is preliminary documentation and subject to change.]
The GlobalMemoryStatusVlm function obtains information about the computer's current usage of both physical and virtual memory.
VOID GlobalMemoryStatusVlm(
LPMEMORYSTATUSVLM lpBuffer // pointer to a memory status structure
);
Top
8 楼deserg()回复于 2005-04-05 12:29:20 得分 0
to somexing:
thanks, 已经开始写test program. haha.Top




