Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)

Profile running processes

christoph-bartoschek
1,154 조회수
Hi,

is it possible to profile already running processes?

Or is it possible to start and stop profiling during the run of a process?
0 포인트
4 응답
TimP
명예로운 기여자 III
1,154 조회수

Yes.

In order to do it repeatably, API calls in the application are likely to be needed.

0 포인트
christoph-bartoschek
1,154 조회수
Could you say for which keywords I have to search for to be able to attach to a running process?
0 포인트
aokunev
초급자
1,154 조회수
Please check /opt/intel/vtune/analyzer/include/VtuneApi.h. It contains two functions wich can be used for collection control - VTPause and VTResume.

regards, Andrei
0 포인트
christoph-bartoschek
1,154 조회수
Thanks.

But do the functions imply that the app is always started with collection on?

Till my module is loaded I have no control over the app and cannot use VTPause to stop collection. However I guess I can use the pause/resume buttons in the GUI.
0 포인트
응답