Profiling pjsua

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i see. may be this helps , seems like you forgot to include the -pj in the linking  phase as well.
"If the program consists of more than one source file then the -pg option should be used when compiling each source file, and used again when linking the object files to create the final executable (as shown above). Forgetting to link with the option -pg is a common error, which prevents profiling from recording any useful information."
so the -pj option should be added in the linker options.

regards

On Mar 26, 2010, at 6:36 PM, Alfonso Ortega wrote:

> The compiler flag was getting set earlier, although that user.mak is good to know about.
> 
> The issue is that the profiling doesn't seem to be happening. I think I'll ask this question over on the gcc list.
> On Mar 26, 2010, at 3:21 PM, Alejandro Orellana wrote:
> 
>> Hi
>> i would use the user.mak file to set this flag
>> should look like
>> 
>> # You can create user.mak file in PJ root directory to specify
>> # additional flags to compiler and linker. For example:
>> export CFLAGS += -pj
>> export LDFLAGS +=
>> 
>> Regards
>> 
>> On Mar 26, 2010, at 6:17 PM, Alfonso Ortega wrote:
>> 
>>> Hello all,
>>> 
>>> I would like to profile pjsua to help optimize it for an embedded platform. When I build pjproject, I do:
>>> 
>>> ./configure CFLAGS="-pg"
>>> make dep && make
>>> 
>>> but when I run the newly built pjsua app, no gmon.out file is generated. Am I missing something?
>>> 
>>> -Alfonso Ortega
>>> _______________________________________________
>>> Visit our blog: http://blog.pjsip.org
>>> 
>>> pjsip mailing list
>>> pjsip at lists.pjsip.org
>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>> 
>> ------
>> Alejandro Orellana
>> Savant Systems, LLC
>> 770 Main Street
>> Osterville, Ma. 02655
>> (508) 683-2547 (W)
>> (508) 683-2647 (F)
>> Alejandro.Orellana at savantav.com
>> 
>> Statement of Confidentiality
>> The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683-2500 and delete this message and its attachments, if any.
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Visit our blog: http://blog.pjsip.org
>> 
>> pjsip mailing list
>> pjsip at lists.pjsip.org
>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> 
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

------
Alejandro Orellana
Savant Systems, LLC
770 Main Street
Osterville, Ma. 02655
(508) 683-2547 (W)
(508) 683-2647 (F)
Alejandro.Orellana at savantav.com

Statement of Confidentiality
The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683-2500 and delete this message and its attachments, if any.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100327/1f31218d/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux