This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of DevSecOps Adventures: A Game-Changing Approach with Chocolate, LEGO, and Coaching Games and have Dana Pylayeva on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Android Memory FootPrint

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jeff,


I have one application where code is separated into two modules - UI comprising of Android and business logic - Pure Java Code.

I want to get the memory footprint of my java code when run on emulator. In this, I dont want to include my android classes, just the non-android code. My application loads large files, want to test application performance when run on emulator.

So, I created Test Project using Android Instrumentation framework and have test cases written there. This testAndroid project(AndroidProj1) starts main activity of "Original Android project" (AndroidProj2). AndroidProj2 has a Java Project (JavaProj) dependent on it.

Now, the problem is , when I run my Android Project(containing UI classes, and dependent Java proj) via AndroidProj1, I get an error - "Process crased" , with no relevant description in logcat.

and when I run same after removing dependent java project, android test cases (AndroidProj1) runs fine, with proper results of test cases(soem dummy test cases).

Can you please suggest as what I can check and correct ?

My aim is to get memory footprint of Java project when run on Emulator.

Thanks in advance,
Kacee
 
author
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kacee,

I would advise checking out blog posts such as Analyzing the memory usage of your Android application. Although it focuses on Android 1.5, this post might still be helpful to you.

All the best.

Jeff
 
Hey cool! They got a blimp! But I have a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic