Skip to content

Commit

Permalink
Bug 1880373 - avoid failing browser_test_procinfo.js when none of the…
Browse files Browse the repository at this point in the history
… threads of a process used more than 0.5ms of CPU time, r=gerard-majax.

Depends on D201888

Differential Revision: https://phabricator.services.mozilla.com/D201890

UltraBlame original commit: 1a79b9485bb3cb26349c044ad8d5ed0f4b67c3dd
  • Loading branch information
marco-c committed Feb 16, 2024
1 parent 6c71e9c commit 05925ba
Showing 1 changed file with 47 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,53 @@ time
"
)
;
Assert
.
greater
(
proc
.
threads
.
length
0
"
Got
some
threads
"
)
;
Assert
.
ok
(
proc
.
threads
.
some
(
thread
=
>
thread
.
cpuTime
>
0
)
"
Got
some
cpu
time
in
the
threads
"
)
;
let
cpuThreads
=
Expand Down Expand Up @@ -154,23 +201,6 @@ NS_PER_MS
)
;
}
Assert
.
greater
(
cpuThreads
0
"
Got
some
cpu
time
in
the
threads
"
)
;
let
processCpuTime
=
Expand Down

0 comments on commit 05925ba

Please sign in to comment.