Bug 1845638 - Part 2: Include the pending time of OffThreadCompilationCompleteRunnable to the profiler timing. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D184897
This commit is contained in:
@@ -1673,8 +1673,6 @@ void CompileOrDecodeTask::DidRunTask(const MutexAutoLock& aProofOfLock,
|
||||
|
||||
LogRunnable::Run run(runnable);
|
||||
|
||||
runnable->RecordStopTime();
|
||||
|
||||
OffThreadCompilationCompleteRunnable::Dispatch(runnable.forget());
|
||||
}
|
||||
|
||||
@@ -1943,6 +1941,8 @@ OffThreadCompilationCompleteRunnable::Run() {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
RecordStopTime();
|
||||
|
||||
if (profiler_is_active()) {
|
||||
ProfilerString8View scriptSourceString;
|
||||
if (mRequest->IsTextSource()) {
|
||||
|
||||
Reference in New Issue
Block a user