Community
cancel
Showing results for 
Search instead for 
Did you mean: 
nikolag
Beginner
91 Views

Jitprofiling doesn't work

I have Amplifier Update 4, I put it up and running collecting any hardware event data and then a basic C program testing to see if iJIT_IsProfilingActive() returns iJIT_NOTHING_RUNNING all the time.

I read on this forum that ENABLE_JITPROFILING needs to be set (maybe?), but that doesn't change anything.

I simply followed the example in the documenation. I've tried that one too on my system and it doesn't do anything.

Here's the sample program with VTune running in the background:

#include
#include

int main() {
int i;

if (iJIT_IsProfilingActive() != iJIT_SAMPLING_ON) {
printf("No profilier active\\n");
}
}
0 Kudos
1 Reply
Rob5
New Contributor II
91 Views

I was only able to replicate the behavior when the profiler was not running. The profiler is activated when performing an Intel VTune Amplifier analysis. If you run an application which utilizes the JIT Profiler API outside of VTune Amplifier analysis, the call to iJIT_IsProfilingActive() returns iJIT_NOTHING_RUNNING.

Reply