bug 711201 - instrument when we paint for performance testing r=dougt
authorBrad Lassey <blassey@mozilla.com>
Tue, 24 Jan 2012 15:53:49 -0500
changeset 86684 5aadcbb1dfce9d7a2035b846f29292a406b7e945
parent 86683 218a7935768bfb940d4f648ded613187412527ba
child 86685 f29c4f3492769e9f35d2c8d019c223f17e565f48
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdougt
bugs711201
milestone12.0a1
bug 711201 - instrument when we paint for performance testing r=dougt
mobile/android/base/gfx/GeckoSoftwareLayerClient.java
--- a/mobile/android/base/gfx/GeckoSoftwareLayerClient.java
+++ b/mobile/android/base/gfx/GeckoSoftwareLayerClient.java
@@ -54,16 +54,17 @@ import org.mozilla.gecko.GeckoEventListe
 import android.content.Context;
 import android.graphics.Bitmap;
 import android.graphics.Canvas;
 import android.graphics.Color;
 import android.graphics.Point;
 import android.graphics.PointF;
 import android.graphics.Rect;
 import android.graphics.RectF;
+import android.os.SystemClock;
 import android.util.DisplayMetrics;
 import android.util.Log;
 import org.json.JSONException;
 import org.json.JSONObject;
 import java.nio.ByteBuffer;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
@@ -322,16 +323,17 @@ public class GeckoSoftwareLayerClient ex
                     Rect rect = new Rect(x, y, x + width, y + height);
                     rect.offset(mRenderOffset.x, mRenderOffset.y);
                     ((MultiTileLayer)mTileLayer).invalidate(rect);
                 }
             } finally {
                 endTransaction(mTileLayer);
             }
         }
+        Log.i(LOGTAG, "zerdatime " + SystemClock.uptimeMillis() + " - endDrawing");
     }
 
     public ViewportMetrics getGeckoViewportMetrics() {
         // Return a copy, as we modify this inside the Gecko thread
         if (mGeckoViewport != null)
             return new ViewportMetrics(mGeckoViewport);
         return null;
     }