This isn't something you can (or should) be doing from the SDK alone.
You'll want to look at another list, however I'd like to first just
note that Dalvik already has support for this.  (You can google
"dalvik profiler" and find some information).

You can also look into the implementation of the "Debug" class, though
it didn't seem to provide enough to do full out profiling.  And yes,
this is at the VM level, not any native level.

I'd say that if you're trying to write your own profiler from scratch,
you'll want to look instead at some of the publicly available
utilities, or in the worst case add some stuff onto android itself
from what is already there.  (Note however, that Dalvik does quite a
bit of profiling to make informative decisions as to trace based JIT.)

Kris

On Thu, Sep 29, 2011 at 2:36 AM, ehsan azimzadeh
<ehsan.azimza...@gmail.com> wrote:
> When I run a program, I want to count that how many times every Dalvik
> bytecode was executed.
> In other words bytecode profiling is my target.
> Can you help me?
>
> Thanks in advance
> Ehsan
>
>
> On 28 September 2011 06:07, Kristopher Micinski <krismicin...@gmail.com>
> wrote:
>>
>> Type of it?  You mean like, Java type?
>>
>> It's dalvik,  not everything runs ARM, and there wouldn't be a
>> meaningful way to quantify this anyway, as the code is at least
>> partially interpreted (ran on dalvik sans jit), plus API level 1
>> didn't *have* a jitter :-).
>>
>> Kris
>>
>> On Wed, Sep 28, 2011 at 8:37 AM, ehsan azimzadeh
>> <ehsan.azimza...@gmail.com> wrote:
>> > Hi
>> >
>> > In below link:
>> >
>> > http://developer.android.com/reference/android/os/Debug.InstructionCount.html
>> > What do instructions mean? ARM instructions or Dalvik bytecodes? Which
>> > one?
>> > I want number and type of executed dynamic bytecode. How can I do this?
>> >
>> > Thanks
>> > Ehsan
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to