Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Profiling an application: (4 Items)
   
Profiling an application  
Dear

I am currently trying to profile an application.

THis application is not compiled with the IDE I only import the executable file.

I have compiled it with the following options

Compiler: -finstrument-functions
Linker: -lprofilingS

Then in the profiling options I have added:
   Tools / Application profiler
   Tools / Memory Analysis.

When I run the application I can see the "Executation time" chart updating during the run but I do not have anything in 
the "Allocations" chart

Any idea on what can be wrong or missing here?

Thanks in advance.

Attachment: Image untitled.JPG 143.71 KB
Re: Profiling an application  
I succeeded to generate a rmap file with the following command line without any change in my compilation option.
 Compiler: no -finstrument-functions option
 Linker: no -lprofilingS option


but when I load the file in IDE I have some issues due to 
    "unexpected token ENDAPPSTREAM at line xxxx"
if I remove them then it loads

In a test application I only do a malloc(128)

screenshot: http://yfrog.com/0ialloc128j

but as you can see on the picture there are other allocation before.
I do not succeed to see from which file/function the allocation is done

Re: Profiling an application  
ENDAPPSTREAM - you IDE is older then profiling library looks like
Memory Analysis - other allocation comes from libc. Looks like you app 
was not compiled with debug info -
otherwise you could have filtered it by binary/file name.

Mathieu Looten wrote:
> I succeeded to generate a rmap file with the following command line without any change in my compilation option.
>  Compiler: no -finstrument-functions option
>  Linker: no -lprofilingS option
>
>
> but when I load the file in IDE I have some issues due to 
>     "unexpected token ENDAPPSTREAM at line xxxx"
> if I remove them then it loads
>
> In a test application I only do a malloc(128)
>
> screenshot: http://yfrog.com/0ialloc128j
>
> but as you can see on the picture there are other allocation before.
> I do not succeed to see from which file/function the allocation is done
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post48397
>
>   
Re: Profiling an application  
I suggest not to run two tools at the same time

Mathieu Looten wrote:
> Dear
>
> I am currently trying to profile an application.
>
> THis application is not compiled with the IDE I only import the executable file.
>
> I have compiled it with the following options
>
> Compiler: -finstrument-functions
> Linker: -lprofilingS
>
> Then in the profiling options I have added:
>    Tools / Application profiler
>    Tools / Memory Analysis.
>
> When I run the application I can see the "Executation time" chart updating during the run but I do not have anything 
in the "Allocations" chart
>
> Any idea on what can be wrong or missing here?
>
> Thanks in advance.
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post48302
>   
>
> ------------------------------------------------------------------------
>