摘要
很多应用程序需要在调试或运行期间监控内存变量信息,重复地编写输出代码是一种资源浪费。文章设计实现一个可以对内存变量信息进行自动文本化输出的软件监控器,来解决这一问题。该软件对变量类型声明文件进行文本分析,在内存建立对应的类型表达模型,然后将该类型模型与内存数据区进行绑定,以此确定文本化输出内容。该软件以动态连接库(DLL)的形式提供,接口简洁,使用方便,输出界面友好,可在Windows源程序中调用。
Many applications need monitor memory information while debug and run-time phases and output code must be wrote repeatedly. To avoid this a software monitor that can automatically output memory information in text is designed and implemented. The software parsed type declaration to build its memory map and then bind the map with information memory, thus the information can be output in text. The software in dynamic link library(DLL)with simple application programming interface and friend user interface can be used easily in Windows source programs.
关键词
内存信息
自动监控
动态链接库
软件复用
memory information
automatically output
dynamic link library
software reusebility