It seems better to confirm if WaitForGPUQuery() works for the problem.
Bug 1531294 Comment 8 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
It seems better to check if WaitForGPUQuery() works for the problem.