Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Oflline memory analysis: (7 Items)
   
Oflline memory analysis  
The Target board we are using does not have Ethernet OR JTAG. Only interface available is serial. 
Is it possible to get Offline memory analysis ? Like tracelogger? Then import the file to IDE for analysis

Request help
AW: Oflline memory analysis  
prerequisite is that you can store tracing data on your target and transfer this data later to your host pc.
If this is possible you can do all the analysis like System Profiling, Application Profiling or Memory Analysis.
-use tracelogger on your target to record kernel traces
-use any instrumented binary to record data usable for Application Profiling, contolled through env vars
-and some for Memory Profiling

in the IDE manual you'll not only find the "online" versions but also the hints 
you neede to use cmd line interface to record data and how to import them to IDE
http://www.qnx.com/developers/docs/6.4.0/ide_en/user_guide/about.html
http://www.qnx.com/developers/docs/6.4.1/ide_en/user_guide/about.html

HTH
/hp



>-----Ursprüngliche Nachricht-----
>Von: nkr krishnan [mailto:community-noreply@qnx.com] 
>Gesendet: Mittwoch, 30. September 2009 13:31
>An: general-community
>Betreff: Oflline memory analysis
>
>The Target board we are using does not have Ethernet OR JTAG. 
>Only interface available is serial. 
>Is it possible to get Offline memory analysis ? Like 
>tracelogger? Then import the file to IDE for analysis
>
>Request help
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post39050
>
> 
 
*******************************************
Harman Becker Automotive Systems GmbH
Management Board: Dr. Klaus Blickle (Chairman), Dr. Udo Hüls, Michael Mauser
Chairman of the Supervisory Board: Ansgar Rempp | Domicile: Karlsbad | 
Local Court Mannheim: Register No. 361395

 
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat 
sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail
. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have 
received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************
Re: AW: Oflline memory analysis  
We are using QNX 6.3.2 version. Tried using 
LD_PRELOAD=/tmp/libmalloc_g.so MALLOC_TRACE=/tmp/log.memory
 MALLOC_CTHREAD=1 ./my_app

as in the 6.4.0 manual. Did not get any log in the tmp directory. 

Also tried with -pg option. Not sure why we did not get any log for application as well.
Am i missing something?

Request your help,

Thanks,
nkr
AW: AW: Oflline memory analysis  
just to be sure: you're linking against shared libc?
you can check whether malloc_g is loaded? using env var DL_DEBUG=1 

>-----Ursprüngliche Nachricht-----
>Von: nkr krishnan [mailto:community-noreply@qnx.com] 
>Gesendet: Mittwoch, 30. September 2009 15:28
>An: general-community
>Betreff: Re: AW: Oflline memory analysis
>
>We are using QNX 6.3.2 version. Tried using 
>LD_PRELOAD=/tmp/libmalloc_g.so MALLOC_TRACE=/tmp/log.memory
> MALLOC_CTHREAD=1 ./my_app
>
>as in the 6.4.0 manual. Did not get any log in the tmp directory. 
>
>Also tried with -pg option. Not sure why we did not get any 
>log for application as well.
>Am i missing something?
>
>Request your help,
>
>Thanks,
>nkr
>
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post39067
>
> 
 
*******************************************
Harman Becker Automotive Systems GmbH
Management Board: Dr. Klaus Blickle (Chairman), Dr. Udo Hüls, Michael Mauser
Chairman of the Supervisory Board: Ansgar Rempp | Domicile: Karlsbad | 
Local Court Mannheim: Register No. 361395

 
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat 
sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail
. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have 
received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************
Re: AW: Oflline memory analysis  
What is the purpose of your analysis? Finding memory allocations? Memory leaks? or memory errors? You have to specify 
more options (env vars) depends on what are looking for
Re: AW: Oflline memory analysis  
We wanted to analyze memory allocation, errors, heap for a program.

Thanks,
nkr
Re: AW: Oflline memory analysis  
In 6.4.0 and up it is something like this

LD_PRELOAD=librcheck.so MALLOC_TRACE=/tmp/output.rmat MALLOC_CKALLOC=1 
./your_app

It would create a file /tmp/output.rmat which can be imported to MAT 
tool in IDE.
Try simple case first:

main(){
   malloc(7);
}

Does it work?

nkr krishnan wrote:
> We wanted to analyze memory allocation, errors, heap for a program.
>
> Thanks,
> nkr
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post39345
>
>