how to analyze threads in eclipse blackberry project? - multithreading

I am creating a multithreaded application.. but it drains battery. whether i want to check what are the threads running and memory leaks etc..
is there any tool or plugin to check thread activity in my eclipse for blackberry application..
sorry for asking this here, please guide me where to post such questions and tell me solution for this..

If you're an Eclipse user, the BlackBerry Java Plug-in for Eclipse 1.3 does come with BlackBerry Memory Statistics View, Objects View and Profiler View. I've had success with that and 1.3.0 fixes an issue with debugging on the actual device.

Related

Can I debug a program with LLDB-MI via Eclipse?

It seems that LLDB plugin for Eclipse is still not developed yet, but this article claims that one can debug a program with LLDB-MI driver in Linux. However described way of integrating Eclipse and LLDB doesn't work for me (I always get "command --exec-continue not recognized" error message) and it looks suspicious that embedding LLDB-MI to Eclipse may be so easy.
Could anyone point me to curren materials on this topic? Google shows me only old Eclipse-bug-tracking threads.
There is a project called lldbmi2 that provides most of the functionality one would need. I know it's been developed primarily for the Mac and I don't know if it's been tested on Linux. It's not perfect, but I've been using it on the Mac for months and I'm pleased with its functionality.
See https://github.com/freedib/lldbmi2

BlackBerry : How to detect memory leaks in QNX Momentics IDE

I am developing the game on BlackBerry platform with help of QNX Momentics IDE but unfortunately it is crash randomly. I want to check any memory leaks in project. How to achieve this? Is their any tool for that?
Any suggestion always appreciated.. Thanks in advance..
There are profiling tools available on the Momentics IDE
https://developer.blackberry.com/native/documentation/bb10/com.qnx.doc.ide.userguide/topic/profiler_base_.html

How do I generate .dSYM for MonoTouch app in Simulator?

I want to profile a MonoTouch application in Instruments without an iPad. I am able to profile an app compiled for Simulator but it's no fun without the symbols:
There is no option to generate IPA with dSYM in project build settings—looks like they're only available when compiling for the device.
All I want is a MonoTouch-aware dSYM for Simulator.
Is this possible?
This is unfortunately not possible, because in the simulator we JIT managed code. This means that it is not possible to know before executing the process where methods will be in memory, and Instruments doesn't support the required mechanisms for MonoTouch to inform about JIT'ed methods at runtime [1].
[1] See last comment on the response here: Is it possible to notify DTrace on Mac OS X of dynamically generated code?
Take a look at this - miguel wrote a blog post recently to compile aot for profiling on mac - I think this will give you what you're looking for:
Using Instruments to profile Mac apps built with Mono

Java to NPAPI for Chrome Extension

I was wondering if it is possible to make an NPAPI plugin from a Java project (Since java can be compiled straight to a dll with the help of gcj)? I already looked at the mozilla page describing NPAPI plugins but I could not find anything related to Java. All the tools over seem to focus on C++ projects.
Thanks in advance.
The tools and examples focus on C/C++ because NPAPI is a C API. There's no way to make an NPAPI plugin purely in Java.
If you really wanted to, you could probably write a bridge layer in C using JNI, but that means you'd need to have your plugin start a JVM. If your plugin were running in a browser that doesn't run plugins out-of-process though, you'd potentially be running two JVMs in the same process, which might not end well. And getting the drawing right across the bridge will be a nightmare, at least on the Mac.
Before trying to go down that route, you should ask yourself why, if your goal is to run Java code in a browser, you aren't just using the Java plugin.

JBlend with LWUIT

I have made some applications on J2ME using LWUIT, CLDC 1.1, MIDP 2.0 and they are working great on Nokia handsets.
But when I tried to install these applications on Huawei G7206 (JBlend) some of the applications gives error (NOT SUPPORTED) and some crashes without displaying anything.
I have tested an application without LWUIT and it worked.
My question is,
what is the issue?
Either JBlend does not support LWUIT? or I have to downgrade my applications (I mean to remove some features)?
Does anyone know the limitations to work with JBlend?
Have you tested your applications on other devices?
Confirm that your jad doesn't include any other hidden requirements, jblend generally works with LWUIT but some VM's don't handle the full LWUIT properly and require an obfuscated application or similar hacks.
Whenever we use LWUIT in application the size of the application increase because of the jar file which we add in it. By obfuscation we can reduce the size of .jar file. And can become able to run in device.
Please try of obfuscate the application. You might get the solution of your problem

Resources