- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried to add my own start/end events according to the steps described in the help file ("User event API Usage Example").
first, the linker did not find __itt_err and __itt_event_err .(I had to avoid using them)
then, ignoring the return value typedef (after all they are just plain int), I called
__itt_event_create("x", strlen("x")) which returned 0 (zero). subsequent calls also returned 0.
the call to __itt_event_start( my_event) returned 0 (understandable, given the fact that it was 0).
What am I doing wrong?
*looking at the disassembly in debug build, shows an empty function??
using:
Visual Studio 2005
Intel compiler 10.1
ThreadProfiler 3.1
thanks
Noam Cohen
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Though much time passed since the question, I decided to step in.
It seems that you expected the functions to work in your regular runs, or under a debugger. But they only make sense when you run the application under Thread Profiler. The default implementation of these functions provided by libittnotify.dll contains just empty stubs which return 0. When the application is analyzed with Thread Profiler, the stubs are replaced by real functions from the TP runtime engine. These functions are called and collect the data. In the end, TP will show you purple event marks on the timeline view.
![](/skins/images/D2683F18326913BBA0436CB7114DD569/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page