mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1339435 - Fix bogus assertion in both profiler_time() variants. r=jseward.
--HG-- extra : rebase_source : e752a0bf0b8ea8282bc8f0b477d178325e247397
This commit is contained in:
parent
209be0e8ce
commit
912ba37deb
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user