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
Родитель 695e0c90c3
Коммит 77a6b5e20a
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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(),