I would like to profile a particular function in my code, but when using amplifer xe, hot spot mode, it only shows the top N functions, which are all the data preparation function during the init phase of my program.
I played with Amplifier, could find a way to see my target function though. I was using valgrind in Linux, which can do target function analysis easily.
Hotspots analysis can collect performance data and can display ALL hot functions.
Is it possible that your interest of function executed extra short time? If so, samples in this function cannot be captured because interrupt interval is 10ms. Please increase call count so samples in this function can be captured.
Back to your question, if you want to profile a specific function ONLY. Please use Pause/Resume API (in your code) from the tool, read this article.
0.1ms is too small interval, I suggest to call this function many times in loop.
Another way is to create a new "New User-mode Sampling and Tracing Analysis"on GUI by clicking "New..." button. Thus, you can adjust "CPU sampling interval, ms:" to "1" (minimal value) - note it will increase overheads when reducing interval value.