Does anyone use the tool "oprofile" in the open source code

by luyen » Tue, 24 Feb 2009 07:22:51 GMT


Sponsored Links
 an user has this question:

Does anyone try the tool "oprofile" in the source code folder
"external".
When I use command "oprofile -r start", it will show "Unable to open
cpu_type file for reading Make sure you have done opcontrol --init"
After I finish opcontrol --init, it show the same.
Does I need to set up something first, there is no guide to tell how
to use it.

from:  http://androidcore.com/android-community.html?func=view& ;catid=22&id=17

Does anyone has the answer?
--~--~---------~--~----~------------~-------~--~----~



Does anyone use the tool "oprofile" in the open source code

by Konig.Yuan » Fri, 27 Feb 2009 12:46:49 GMT


 (1) opcontrol --setup, if it failed, the oProfile is not built in
your android kernel.

   you need to enable the CONFIG_OPROFILE=y CONFIG_PROFILING=y
CONFIG_OPROFILE_ARMV6=y

  (2) If the opcontrol --setup successed. cat /dev/oproflie/cpu_type
check whether it is arm/armv6

       Seems google android supports arvm6 by default.

  (3) opcontrol --event TLB_MISS:150000 (you can change the events)


  (4) echo 1 >/dev/oprofile/enable  to start profiling (seems
"opcontrol --start" not work).

  (5) opcontrol --status ,check whether oprofiled is runing or not


  (6) echo 0 >/dev/oprofile/enable to stop the profiling(seems
opcontrol --stop not work).
      Sample data will be collected to /data/oprofile/samples/current/










--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Does anyone use the tool "oprofile" in the open source code

by ATC » Sat, 07 Mar 2009 10:53:19 GMT


 Hi,



I am trying to get OProfile working on Android



I have built the kernel with



make CONFIG_OPROFILE=y CONFIG_PROFILING=y CROSS_COMPILE=arm-none-eabi-
uImage



However, when I try to run it, it says the oprofiled is not running.
Is there quick way to make sure that oprofiled is running?



# echo 1 >/dev/oprofile/enable



# opcontrol --status

Driver directory: /dev/oprofile

Session directory: /data/oprofile

Counter 0 disabled

Counter 1 disabled

Counter 2 disabled

oprofiled is not running








--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. IM, calendar Apps not launching

Hi,

On my emulator IM, calendar apps (that comes as a part of android open
source platfrom) are not launching at all.

Also there is NO Maps application visible in Menu.

The logcat after launching IM is :-

I/ActivityManager(   46): Starting activity: Intent {
action=android.intent.action.MAIN
categories={android.intent.category.LAUNCHER} flags=0x10200000
comp={com.android.providers.im/com.android.providers.im.LandingPage} }
D/dalvikvm(   81): GC freed 9065 objects / 822568 bytes in 216ms
E/IM      (   81): Ignore bad IM frontdoor plugin:
ResolveInfo{437dc0a0 com.android.im.app.FrontDoorPlugin p=0 o=0
m=0x108000}. No providers found
E/IM      (   81): [onCreate] load plugin failed, no plugin found!
V/ActivityThread(   81): Resuming ActivityRecord{436b8bb8
token=android.os.binderpr...@436b8648
{com.android.launcher/com.android.launcher.Launcher}} with
isForward=false


Please help me with some pointers.

Thanks & Regards
Nimit

--~--~---------~--~----~------------~-------~--~----~

2. how to change the background color of the layout set in the main. xml file ,at runtime

hi group,
I'm newbie to Android
I need to change the color of my screen alternatively ,how to do that
can i use setBackground(int color) to access the layout color and
change it at runtime  ,can any one provide me a code snippet

Thanks


--~--~---------~--~----~------------~-------~--~----~

3. Can't seem to get something as simple as a ListView to work

4. Use Widgets (Clock Search Etc...) on Custom Home

5. Determine scroll status of WebView?

6. Question about Loading Drivers on Android OS

7. Using android 1.5 emulator, the sdcard can't be mounted