bug 711201 - instrument when the throbber ends for performance testing r=dougt a=akeybl
authorBrad Lassey <blassey@mozilla.com>
Tue, 24 Jan 2012 15:39:23 -0500
changeset 84306 1e3863b4cf0827426884b2814bcc547da7fcf577
parent 84305 45b862358c3b170fe5ddb9cca31486f0d0547640
child 84307 6eb8b265cdfabc2b239727652bff44d31df88061
push id791
push userblassey@mozilla.com
push dateMon, 30 Jan 2012 04:37:49 +0000
treeherdermozilla-aurora@02093039f454 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdougt, akeybl
bugs711201
milestone11.0a2
bug 711201 - instrument when the throbber ends for performance testing r=dougt a=akeybl
mobile/android/base/BrowserToolbar.java
--- a/mobile/android/base/BrowserToolbar.java
+++ b/mobile/android/base/BrowserToolbar.java
@@ -42,31 +42,34 @@ package org.mozilla.gecko;
 
 import android.content.Context;
 import android.content.res.Resources;
 import android.content.res.TypedArray;
 import android.graphics.Color;
 import android.graphics.drawable.AnimationDrawable;
 import android.graphics.drawable.Drawable;
 import android.os.Handler;
+import android.os.SystemClock;
 import android.util.AttributeSet;
+import android.util.Log;
 import android.view.animation.TranslateAnimation;
 import android.view.Gravity;
 import android.view.ContextThemeWrapper;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.widget.Button;
 import android.widget.ImageButton;
 import android.widget.ImageView;
 import android.widget.LinearLayout;
 import android.widget.TextView;
 import android.widget.TextSwitcher;
 import android.widget.ViewSwitcher.ViewFactory;
 
 public class BrowserToolbar extends LinearLayout {
+    private static final String LOGTAG = "GeckoToolbar";    
     private Button mAwesomeBar;
     private ImageButton mTabs;
     public ImageButton mFavicon;
     public ImageButton mStop;
     public ImageButton mSiteSecurity;
     private AnimationDrawable mProgressSpinner;
     private TextSwitcher mTabsCount;
     private ImageView mShadow;
@@ -246,20 +249,22 @@ public class BrowserToolbar extends Line
         }, 2 * mDuration);
     }
 
     public void setProgressVisibility(boolean visible) {
         if (visible) {
             mFavicon.setImageDrawable(mProgressSpinner);
             mProgressSpinner.start();
             setStopVisibility(true);
+            Log.i(LOGTAG, "zerdatime " + SystemClock.uptimeMillis() + " - Throbber start");
         } else {
             mProgressSpinner.stop();
             setStopVisibility(false);
             setFavicon(Tabs.getInstance().getSelectedTab().getFavicon());
+            Log.i(LOGTAG, "zerdatime " + SystemClock.uptimeMillis() + " - Throbber stop");
         }
     }
 
     public void setStopVisibility(boolean visible) {
         mStop.setVisibility(visible ? View.VISIBLE : View.GONE);
         mSiteSecurity.setVisibility(visible ? View.GONE : View.VISIBLE);
     }