首页 新闻 会员 周边

CLR Profile如何保存测试log?

0
[已解决问题] 解决于 2018-11-08 10:20

现假设需要测试的exe为:a.exe
CLR Profile 勾选Allocation和Calls
start Application
exe执行完毕。
再点一次Start Application弹出对话框

the process you are profiling is still running:
do you want to terminate it and optionaly save the profile
选择yes
继续弹出对话框:
you staill have a profile for a.exe
do want to save it?
选择yes
默认目录保存
弹出对话框
cannot rename log file to 目录.log

求解

YamatAmain的主页 YamatAmain | 初学一级 | 园豆:23
提问于:2018-09-11 13:43
< >
分享
最佳答案
0

从 CLRProfiler 的源码

try
{
    File.Move(logFileName, saveFileDialog.FileName);
}
catch
{
    MessageBox.Show(this, "Cannot rename log file " + logFileName + " to " + saveFileDialog.FileName, "Failure");
    return;
}

应该是原文件处于打开状态,无法直接移动,建议先用默认文件名保存,然后复制出来

奖励园豆:5
dudu | 高人七级 |园豆:30994 | 2018-09-11 13:57
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册