bug 711201 - instrument when the throbber ends for performance testing r=dougt
authorBrad Lassey <blassey@mozilla.com>
Tue, 24 Jan 2012 15:39:23 -0500
changeset 86683 218a7935768bfb940d4f648ded613187412527ba
parent 86663 c9b1b20d95931f259528a374410f78a4ee02d7b5
child 86684 5aadcbb1dfce9d7a2035b846f29292a406b7e945
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 the throbber ends for performance testing r=dougt
mobile/android/base/BrowserToolbar.java
--- a/mobile/android/base/BrowserToolbar.java
+++ b/mobile/android/base/BrowserToolbar.java
@@ -42,30 +42,33 @@ 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.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;
@@ -245,20 +248,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);
     }