Best strategy for profiling memory usage of my code (open source) and 3rd party code(closed source)

后端 未结 7 1456
悲&欢浪女
悲&欢浪女 2020-12-15 12:07

I am soon going to be tasked with doing a proper memory profile of a code that is written in C/C++ and uses CUDA to take advantage of GPU processing.

My initial thou

7条回答
  •  青春惊慌失措
    2020-12-15 12:29

    You could use the profiler included in Visual Studio 2010 Premium and Ultimate.

    It lets you choose between different methods of performance measuring, the most useful for you will probably be CPU sampling because it freezes your program at arbitrary time intervals and figures out which functions it is currently executing, thereby not making your program run substantially slower.

提交回复
热议问题