Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
01-20-2012 10:20 AM
I've tried searching but have not been able to find answers to the following:
1) Is there a way to monitor CPU usage on playbook - Process monitor?
2) I'm trying to make use of both CPU cores and have created a thread to do processing and update my screen in the main thread but can not seem to get any extra performance by threading. I've event tried setting the thread afinities for the main app and processing thread to seperate cores but with no success. Does anyone know how to properly make use of the second cpu core?
01-20-2012 10:36 AM - edited 01-20-2012 12:01 PM
If rooted, the "pidin" command could work for you. (Edit: but Elena clearly has a better idea, see below.)
And sorry, I can't help with the basic question other than to suggest an experiment involving splitting your code across two apps to explore whether even that seems to let them use separate cores effectively.
01-24-2012 01:53 PM
Thanks for the info, I gave the IDE real time statistics a look. Unfortunately it does not give me the information I was looking for. So I did the following:
1) Added a call to ClockCycles() before and after the Render loop, and before and after the Update loop with the update loop running as a seperate thread.
2) Compared ClockCycles before / after each loop call.
From this information I could determine when each loop was running and for how long. Without creating a thread all updates were sequential as expected. Running with a thread the ClockCycles overlapped each other. From this I can infer that the thread must be running in the other core (maybe). I will need to do some more analysis of the timestamps and cycle times to be sure that the thread isn't just being interrupted on the same core.
With enough samples I should be able to determine the total run time both with and without threading to prove that I am getting increased performance. It is likely that I am, just not as much as I was hoping for.
Thanks for all the help