Abhishek,
I do not think there is any technical reason for it L. If somebody can push a patch with the change enabling PCF macro by default in those logging API?s, we can merge it in the repo. Thanks Sachin From: iotivity-dev-bounces at lists.iotivity.org [mailto:[email protected]] On Behalf Of Abhishek Sharma Sent: Monday, August 31, 2015 7:29 AM To: iotivity-dev at lists.iotivity.org Subject: Re: [dev] OC logger memory consumption problem for Arduino devices We can see PCF() wrapper being missed out in many log statements, hence leading to log strings being stored in RAM. In connectivity logger (OIC_LOG), PCF wrapper is part of macro OIC_LOG_V(), OIC_LOG() so that caller don't have to explicitly wrap around every log string in PCF() wrapper. Is there any specific reason why PCF() wrapping has been left as a responsibility of caller rather than doing it in OC_LOG /OC_LOG_V macros ? ------- Original Message ------- Sender : Koushik Girijala<g.koushik at samsung.com> Lead Engineer/SRI-Bangalore-IoT & Connectivity/Samsung Electronics Date : Aug 31, 2015 19:42 (GMT+05:30) Title : [dev] OC logger memory consumption problem for Arduino devices Hi, Am Facing Memory consumption problems with OC logging for Arduino Mega device, 1. Found out that OC_LOG is occupying almost 3500 bytes of RAM because of which we are facing "Out of Memory issues" with latest master code built for Arduino MEGA with RELEASE=0. 2. Tried disabling/Enabling probabilities for OC and OIC logs and found below observation OC_LOG OIC_LOG RAM USED RAM LEFT 1 Disabled Disabled 4592 4094 2 Disabled Enabled 4592 4094 3 Enabled Enabled 7914 772 4 Enabled Disabled 7914 772 Found that OC log is occupying huge memory i.e almost 3500 bytes in Arduino Mega and OIC log is using very less RAM memory. Could anyone help with suggestion to solve above problem with OC_LOG usage in RI layer. Regards, Koushik <http://ext.samsung.net/mailcheck/SeenTimeChecker?do=1e11a3c3cb0ba77dc859ca4a1d0d7bb62b418d10ff30793e420c2cd0088339514e60fcf6aeb61df594c3b6ddffd7613bcb238d00164b0be48eeb9bec5ad9c75d326bbdfb2ea96a2fcf878f9a26ce15a0> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150831/b9fee3b4/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 13168 bytes Desc: not available URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150831/b9fee3b4/attachment.gif> -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 7768 bytes Desc: not available URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150831/b9fee3b4/attachment.p7s>
