Bug 1339435 - Fix bogus assertion in both profiler_time() variants. r=jseward.

--HG--
extra : rebase_source : e752a0bf0b8ea8282bc8f0b477d178325e247397
This commit is contained in:
Nicholas Nethercote 2017-02-15 14:36:10 +11:00
parent 209be0e8ce
commit 912ba37deb

View File

@ -2477,7 +2477,7 @@ profiler_js_operation_callback()
double
profiler_time(const mozilla::TimeStamp& aTime)
{
MOZ_RELEASE_ASSERT(NS_IsMainThread());
// This function runs both on and off the main thread.
mozilla::TimeDuration delta = aTime - gStartTime;
return delta.ToMilliseconds();
@ -2486,7 +2486,7 @@ profiler_time(const mozilla::TimeStamp& aTime)
double
profiler_time()
{
MOZ_RELEASE_ASSERT(NS_IsMainThread());
// This function runs both on and off the main thread.
return profiler_time(mozilla::TimeStamp::Now());
}