使用CLR Profiler查看C#运行程序的内存占用情况

http://blog.csdn.net/wy3552128/article/details/8158938

https://msdn.microsoft.com/en-us/library/ff650691.aspx

Downloading CLR Profiler

CLR Profiler is downloaded as a self-extracting executable file.

The expanded contents include the source code and the executable file (CLRProfiler.exe).

The download also contains a comprehensive document that provides detailed information on CLR Profiler.

Download CLR Profiler

上面下载的版本太低了,可以去http://clrprofiler.codeplex.com 下载

What You Must Know

The primary function of CLR Profiler is to enable you to understand how your application interacts with the managed, garbage-collected heap.

Some of the more important things that you can investigate include:

  • Who allocates what on the managed heap.
  • Which objects survive on the managed heap.
  • Who is holding on to objects.
  • What the garbage collector does over the lifetime of your application.

Results of profiling are stored in log files.

You can view these files in various ways by using the view menus in CLR Profiler to display the corresponding graphs.

Table 1 lists the most useful views.

 

 

监视windows Service的话,菜单栏File-->profile service,然后输入Service的名字启动

 

转载于:https://www.cnblogs.com/chucklu/p/3892955.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值