History log of /sdk/traceview/src/com/android/traceview/TimeLineView.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
51a0d9d3b2badadcf0119b72feb6e27ae6405ff0 23-Jun-2011 Jeff Brown <jeffbrown@google.com> Add a horizontal scrollbar.

Change-Id: I077240805c45f71c8e270cada39bad3168061dfa
e13c3e151a6c68e8a898b8eec347122134798c3e 11-Mar-2011 Pierre Zurek <pierrezurek@gmail.com> Zoom with scrollwheel in Traceview.

The zoom factor is 2 (hardcoded).
The fixed point is given by the mouse position when zooming in.
When zooming out, we use the previous fixed point.
This commit do not launch an animation when zooming.

Change-Id: I020cce5ff12f80e70a49510dc334a250c23616ae
23da069e4f407df1b06e7db2324e3247496abe3d 05-Jan-2011 Tor Norbye <tnorbye@google.com> Fix NON-NLS tokens

There were a number of // $NON-NLS-1$ references in the codebase.
Eclipse's "Externalize Strings" functionality will not handle these
correctly; there must not be a space between the "//" and the "$NON"
tokens.

(I left AndroidXmlEditor.xml alone; it is the file I discovered
the problem in but I fixed those references as part of another
pending checkin.)

Change-Id: If185c88a667273af614f0bee5959fd2618756c05
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