What is the best way to debug performance problems?

前端 未结 8 1449
夕颜
夕颜 2021-02-06 11:51

I\'m writing a plug-in for another program in C#.NET, and am having performance issues where commands take a lot longer then I would. The plug-in reacts to events in the host pr

8条回答
  •  礼貌的吻别
    2021-02-06 12:52

    You need to use profiler. Here link to good one: ANTS Performance Profiler.

    Update: You can also write messages in control points using Debug.Write. Then you need to load DebugView application that displays all your debug string with precise time stamp. It is freeware and very good for quick debugging and profiling.

提交回复
热议问题