Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5248 ディスカッション

Timeline events

selmilab
ビギナー
1,526件の閲覧回数

Hi, I'm a happy vtune user and I'd like to ask you a question. Is it possible to add custom events to the timeline?

I mean, on windows you have some functions that, when called in your program, will generate an event. These events will be recorded by xperf and shown on the timeline displayed by xperfview. These events are extremely helpful because they allow me to know exactly where in the code am I when I'm looking at the timeline.

Is it possible to so such thing with vtune on linux?

0 件の賞賛
7 返答(返信)
selmilab
ビギナー
1,526件の閲覧回数

Maybe Frame API is what I'm looking for

Peter_W_Intel
従業員
1,526件の閲覧回数

I'm not familiar with xperf, and don't know what exact custom events you want to insert into timeline report in VTune(TM) Amplifier XE.

Frame API is useful to measure critical code area for each frame (iteration), see this article to know more (also there is a simple example) 

Bernard
高評価コントリビューター I
1,526件の閲覧回数

Which xperf events are you reffering to?

selmilab
ビギナー
1,526件の閲覧回数

Peter Wang (Intel) wrote:

I'm not familiar with xperf, and don't know what exact custom events you want to insert into timeline report in VTune(TM) Amplifier XE.

Frame API is useful to measure critical code area for each frame (iteration), see this article to know more (also there is a simple example) 

Yes, Frame APIs seems the way to go. Basically, I need a function that creates a "mark" and this mark should be visible on vtune's timeline

selmilab
ビギナー
1,526件の閲覧回数

iliyapolak wrote:

Which xperf events are you reffering to?

ETW events. The ones generated by functions like EventWrite

Bernard
高評価コントリビューター I
1,526件の閲覧回数

Interesting I was personally more interested in programming performance counters.

SergeyKostrov
高評価コントリビューター II
1,526件の閲覧回数
>>...I mean, on windows you have some functions that, when called in your program, will generate an event... Could you provide an example of functions you want "monitor" for events? Are these Win32 API functions?
返信