VC的dll进行profile
|
夜鹰教程网 来源:www.yyjcw.com 日期:2016-12-1 21:23:13
|
这篇文章不能解决你的问题?我们还有相关视频教程云课堂 全套前端开发工程师培训课程 微信号:yyjcw10000 QQ:1416759661 远程协助需要加QQ! 业务范围:视频教程|程序开发|在线解答|Demo制作|远程调试| 点击查看相关的视频教程。 技术范围:全端开发/前端开发/webapp/web服务/接口开发/单片机/C#/java/node/sql server/mysql/mongodb/android/。
|
如何profile一个dll呢?
有以下步骤。
1.) Delete the export (<lib>.exp) and lib file (<lib>.lib) for the library you want to check
2.) Tick in the settings dialog on the tab-page the checkbox "Enable profiling"
3.) Tick on the same tab-page the checkbox "Generate mapfile" and change the output path for the map file to "o:\bin\..."
4.) Build the library with the new linker settings
5.) Open a command shell and change to the "O:\bin" folder.
6.) Call the following batch with the name of the Library (without extension). If you want to run a different application than change the batch file.
Warnings can be ignored ...
PRODLL.BAT
COPY %1.dll %1.save
PREP /OM %1.dll
COPY %1._ll %1.dll
PROFILE /I %1 /O %1 k:\wiski\wiski7.exe
COPY %1.save %1.dll
PREP /M %1
PLIST %1 >%1.txt
notepad %1.txt
7.) Call the functions you want to check in your application
8.) Close your application
9.) Notepad will pop up with the result file after in a moment
|
|
热门服务/教程目录
|
客服电话:153 9760 0032
购买教程QQ:1416759661
|
|
|