Bug 780346: Add a sample label to refresh driver. irl-r=mattwoodrow

This commit is contained in:
Chris Jones 2012-08-03 20:23:24 -07:00
parent dcec45c0c1
commit 3a11727da8

View File

@ -24,6 +24,7 @@
#include "nsContentUtils.h"
#include "mozilla/Preferences.h"
#include "nsIViewManager.h"
#include "sampler.h"
using mozilla::TimeStamp;
using mozilla::TimeDuration;
@ -298,6 +299,8 @@ NS_IMPL_ISUPPORTS1(nsRefreshDriver, nsITimerCallback)
NS_IMETHODIMP
nsRefreshDriver::Notify(nsITimer *aTimer)
{
SAMPLE_LABEL("nsRefreshDriver", "Notify");
NS_PRECONDITION(!mFrozen, "Why are we notified while frozen?");
NS_PRECONDITION(mPresContext, "Why are we notified after disconnection?");
NS_PRECONDITION(!nsContentUtils::GetCurrentJSContext(),