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:
Tooru Fujisawa
2023-08-29 12:07:18 +00:00
parent c457938e8c
commit c34d22afe2

View File

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