Profiling C++ multi-threaded applications

前端 未结 7 1544
眼角桃花
眼角桃花 2020-12-31 14:09

Have you used any profiling tool like Intel Vtune analyzer?

What are your recommendations for a C++ multi threaded application on Linux and windows? I am primarily

7条回答
  •  长情又很酷
    2020-12-31 14:26

    VTune give you a lot of details on what the processor is doing and sometimes I find it hard to see the wood for the trees. VTune will not report on memory leaks. You'll need purify plus for that, or if you can run on a Linux box valgrind is good for memory leaks at a great price.

    VTune shows two views, one is useful the tabular one, the other I think is just for sales men to impress people with but not that useful.

    For quick and cheap option I'd go with valgrind. Valgrind also has a cache grind part to it but i've not used it, but suspect its very good also.

    cheers, Martin.

提交回复
热议问题