Harness the capabilities of DDMS to assist in problem solving


Recommended Posts

I'm not a developer, and I don't pretend to be; I'm a test analyst. However, I'm working on an agile product which requires me to use some development tools such as MonoDevelop, Xamarin, ADT, XCode, VS 2012 and a few other bits and bobs. The product is not something I can share details of, however I can say it's going to be cross platform. Anyway, I digress.

My current involvement is to assist in running a proof of concept on Xamarin, and to establish whether it'll fit out needs. Whilst installing all of the bits 'n' bobs I need, I have been spending a lot of time on the Android developer site and stumbled across a useful profiling tool called DDMS (Dalvik Debug Monitor Server). Whilst it's primarily aimed at plugging into the emulator(s), it will also support physical devices provided you have the correct USB driver and the device is in developer mode (don't quote me on that last bit). It seems like a great tool for monitoring CPU & memory usage. I'm one of these people who believes what tools like GoTaskManager and Device Info when it says the CPU is running at > 50%, and the memory consumption is up at 80%+... it seems these apps don't give you a good indication of what is actually happening. DDMS appears to be a better tool to tell you if your device really is chomping up all your resources.

So here's how to get going with DDMS:

1 - Download the SDK (ADT bundle) from here

2 - Unzip it to a location on your machine (doesn't matter where)

3 - Go ahead and run eclipse.exe from ..\adt-bundle-windows-x86_64-20130219\eclipse\

3a - You might get a warning that JDK or JRE is missing, so go ahead and sort that out before re-launching ADT (eclipse.exe)

4 - Once you have ADT up and running, click Window > Open Perspective > DDMS

5 - Put your device into Developer mode by going to Settings > Developer Options and enable USB debugging

5a - If you don't see a Developer option, go into Settings > About Device > touch the Build Number 7 times, and you'll get a toast message telling you that you're now a developer

6 - Attach your device to your PC, and it should appear on the left under Devices. If it doesn't, wait for the ADB Interface driver to install

7 - Once your device is listed, you can start probing it. The most useful tab (I found) is the System Information tab which provides you with CPU load and Memory usage. The LogCat is also very useful, but isn't easy to read.

Because of the way DDMS integrates with Dalvik, you won't be able to get a list of processes and Heap data as you can with an emulator.

My device is running at < 10% CPU whilst idle, and about 50% Memory used with 'standard' apps running (FB, Instagram, K9 mail, Lookout, WhatsApp etc...)

Anyway, enjoy :)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • We had no idea as kids how much time and energy it took to be an adult 😅
    • The Trump administration doesn't want you to use OpenAI's GPT-5.6 without its approval by David Uzondu Image via @realDonalTrump (X) As OpenAI prepares the release of its next model, GPT 5.6, the White House has instructed the company to limit the distribution of the software to a small group of government-approved partners instead of the general public, as it has done with previous releases. According to The Information, OpenAI Chief Executive Officer Sam Altman sent an internal memo to staff on Thursday explaining that the federal government will approve access "customer by customer" during an initial preview phase. Altman noted in the communication that this restrictive rollout is "not [their] long-term model" for software deployment, and the company plans to work toward a "more sustainable" distribution method later. CNN said that both OpenAI and the Trump administration view the capabilities of GPT 5.6 on the same level as Anthropic's Mythos and that government officials intend to "collaborate with frontier AI labs to develop shared approaches for addressing the challenges of scaling this technology." The latest restriction comes just weeks after the US Commerce Department decided to restrict Fable, a version of Mythos with extra safety "guardrails" to prevent users from exploiting software vulnerabilities. Not long after the release, though, researchers at Amazon found a way to bypass these restrictions, prompting an aggressive response from federal authorities. The government ordered Anthropic to cut off access for non-US citizens located outside the US, non-US citizens living inside the US, and incredibly, even Anthropic's own foreign-born employees. Anthropic now appears to be building a workaround to resolve this compliance block with an update to its Privacy Policy that introduces a category called "Verification Data" to handle KYC and Digital IDs. This setup could mandate digital identity checks to filter users by nationality, requiring a government-issued ID and facial biometric data. Who knows? Maybe in the future, you would have to scan your US Passport or State ID to prove your citizenship before you are allowed to chat with Fable 5 (or any other model).
    • When Windows 7 was released I created an AutoHotkey script that uses Alt+` as a keyboard shortcut to move a window across monitors. I have been using that script for over 15 years and this is the first time I have come across another app that uses the same shortcut!
    • I called it last year that they wouldn't end support when they said there would. There are too many people still on Windows 10 waiting for something better to upgrade to and 11 ain't it! The recent promises of fixing Windows 11's many problems is nice, but unless they deliver on those promises in a big way then I expect customers will still want to stick with 10.
  • Recent Achievements

    • Week One Done
      xvvxcvv earned a badge
      Week One Done
    • One Month Later
      xvvxcvv earned a badge
      One Month Later
    • Enthusiast
      Xonos went up a rank
      Enthusiast
    • Conversation Starter
      Admir earned a badge
      Conversation Starter
    • First Post
      The_Focal_Point earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      411
    2. 2
      +Edouard
      169
    3. 3
      PsYcHoKiLLa
      129
    4. 4
      neufuse
      69
    5. 5
      Xenon
      67
  • Tell a friend

    Love Neowin? Tell a friend!