History log of /sdk/traceview/src/com/android/traceview/ProfileProvider.java
Revision Date Author Comments
f526dc3bb658b07c5a96d0372b17ffa2fbbe6079 03-Feb-2012 Xavier Ducrohet <xav@android.com> Make some SDK project compile under Java 1.6

Change-Id: I97189bda85530decff2ef8c4da3c43f186a6dba0
069cdbf76cc71c62b47e1fedc5a2bd376502b50a 23-Jun-2011 Jeff Brown <jeffbrown@google.com> Add support for tracking cpu and real time.

Enhanced TraceView to support extracting cpu and real time profile
data from traces and plotting them accordingly.

In contrast, the original thread-cpu algorithm incorrectly assumed
that threads could not execute in parallel so it would produce
inaccurate representations of the global execution timeline on SMP
systems.

To use this feature, Dalvik must be restarted with appropriate
profiling options.

Collect CPU time only (default). Global timeline must be inferred.
adb shell setprop dalvik.vm.extra-opts -Xprofile:threadcpuclock

Collect real time only. CPU usage information is not available.
adb shell setprop dalvik.vm.extra-opts -Xprofile:wallclock

Collect CPU time and real time information. Most accurate but
requires a newer VM.
adb shell setprop dalvik.vm.extra-opts -Xprofile:dualclock

TraceView remains compatible with traces gathered on older devices
and produces identical output when analyzing traces gathered with
the thread-cpu clock.

Added a feature that displays the exclusive and inclusive time
information while hovering over a method.

Added a feature that displays the time spent in a context switch
by a simple 1 pixel underline within the body of the method call.
This makes it much easier to identify long running methods that
spend most of their time blocked on a wait.

Fixed a bug in the way that the method call highlights were
displayed which could cause them to be truncated down to a
single-pixel width depending on the pixel alignment of the
start and end of each segment.

Change-Id: Id2e6d101d9c604a0029e0920127871f88013faa0
d4963dc4347c871be5faa76920709001490e1d2a 24-Feb-2010 The Android Open Source Project <initial-contribution@android.com> snapshot
e13151727c63786342cddc3ea355425582bd4e7a 13-Jan-2010 The Android Open Source Project <initial-contribution@android.com> android-2.1_r1 snapshot
55a2c71f27d3e0b8344597c7f281e687cb7aeb1b 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
82ea7a177797b844b252effea5c7c7c5d63ea4ac 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
1506a206c0a5e3b593c4c61a62b8805b64e98daf 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution