Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Application Profiling - Issue: (5 Items)
   
Application Profiling - Issue  
Good morning,

I attempting to perform application profiling on a resource manager I am working on.

The project is built as a simple C makefile project. I have added the following lines to the makefile:

CFLAGS += -O0 -g -finstrument-functions
LIBS += profilingS
CPULIST=arm

I am able to debug the application (ie: step through code), but when I attempt to carry out application profiling, the "
Execution Time" window is always blacnk, and the "Application Profiler" panel does not allow me to expand the tree-view 
for the process (screenshot attached).

I have gone through the developer documentation, and this appears to be all that is needed to enable application 
profiling for a recursive makefile project. Are there any other steps involved? I am building on a Linux host (kernel 2.
6) with QNX 6.5.0.

Thank you.
Attachment: Image profiling_ex.png 38.09 KB
Re: Application Profiling - Issue  
Profiling is not running (instrumenting would not automatically start the profiling)
You can start profiling either when you launch it from IDE and enable Application Profiler tool in Launch configuration 
in Function Instrumentation mode for single application
Or if you don't start it from IDE there are env vars to be set (check docs).
In any case do not run it with debugger - all profiling numbers would be wrong if you run it with debugger.

On 08/24/2011 02:22 PM, Matthew Giassa wrote:
> Good morning,
> 
> I attempting to perform application profiling on a resource manager I am working on.
> 
> The project is built as a simple C makefile project. I have added the following lines to the makefile:
> 
> CFLAGS += -O0 -g -finstrument-functions
> LIBS += profilingS
> CPULIST=arm
> 
> I am able to debug the application (ie: step through code), but when I attempt to carry out application profiling, the
 "Execution Time" window is always blacnk, and the "Application Profiler" panel does not allow me to expand the tree-
view for the process (screenshot attached).
> 
> I have gone through the developer documentation, and this appears to be all that is needed to enable application 
profiling for a recursive makefile project. Are there any other steps involved? I am building on a Linux host (kernel 2.
6) with QNX 6.5.0.
> 
> Thank you.
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post88327
Re: Application Profiling - Issue  
Thank you.

It turns out that I had to configure application profiling in a "Run" configuration as opposed to a "Debug" or "
Profiling" configuration. Also, I have to set QPROF_KERNEL_TRACE=1 in my exports on the target (http://community.qnx.com
/sf/wiki/do/viewPage/projects.ide/wiki/UsageOfFunctionInstrumentationInSystemProfiler).

Cheers!
Re: Application Profiling - Issue  
This setting (QPROF_KERNEL_TRACE=1) is set by IDE if you select System Wide mode, and if you set it it won't show data, 
unless you run kernel tracing at the same time. If you see the
data means your binary does not see this env var.
Also it does not matter if you set it in Run,Debug or Profile - it should be the same launch configuration (Although I 
would not recommend run it as Debug).

On 08/24/2011 04:39 PM, Matthew Giassa wrote:
> Thank you.
> 
> It turns out that I had to configure application profiling in a "Run" configuration as opposed to a "Debug" or "
Profiling" configuration. Also, I have to set QPROF_KERNEL_TRACE=1 in my exports on the target (http://community.qnx.com
/sf/wiki/do/viewPage/projects.ide/wiki/UsageOfFunctionInstrumentationInSystemProfiler).
> 
> Cheers!
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post88330
> 
Post Deleted