Languages

Menu
Sites
Language
Memory Analyzer for Gear 2

I have a gear 2 app (web app) developed which crashes randomly on the gear watch. This might be happening because of leaking memory somewhere in the code. To debug this issue I was in search of some memory analyzer tool or logs displaying which kind of exception/error has occurred. I know that there is a dynamic analyzer for tizen native application monitoring, but is there something similar existing for tizen web app on gear 2?

Responses

5 Replies
Marco Buettner

You can start your application with "Debug As" additional to the emulator/device launch it starts Chrome. With the integrated dev tools your can figure out why big leaks and so on.

ankur doshi

Thanks for the help, Marco. Using this approach, I noticed that there is no such consistent memory mark where app is crashing, but whenever this happens it's always after onreceive() execution completes. Function onreceive() is called on receiving data from samsung mobile (acting as host), since I have set it as:

SASocket.setDataReceiveListener(onreceive);

Is there a way to capture crash logs by which I can be sure of the type of error (OutOfMemory or any other)? Is there any method which is executed everytime after onreceive()?

Marco Buettner

Do you send big data? You have a limit of ~1MB to send/recieve for SAP.
 

Marco Buettner

So if you send or recieve bigger data it should better to use the setFileReceiveListener.

ankur doshi

No, it's approximately 200KB of data.