Commit bd3c5f4 1 parent 25054b8 commit bd3c5f4 Copy full SHA for bd3c5f4
File tree 2 files changed +0
-16
lines changed
perfsuite/src/main/java/com/booking/perfsuite/rendering
2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -21,17 +21,6 @@ public data class RenderingMetrics(
21
21
*/
22
22
val frozenFrames : Long ,
23
23
24
- /* *
25
- * Amount of "good" frames that potentially could be rendered, but were "dropped" due to
26
- * rendering performance issues.
27
- *
28
- * For instance if we target 60fps, the "good" frame would be any frame rendered for less than
29
- * 16ms. But when we see "slow" frame that take 48ms to render, it spend the same time to render
30
- * as 3 "good" frames would spend. That means that due to performance issue the app has rendered
31
- * 1 frame, but 2 potentially good frames were dropped
32
- */
33
- val droppedFrames : Long ,
34
-
35
24
/* *
36
25
* Total time of freezing the UI due to rendering of the slow frames per screen session.
37
26
* This metric accumulates all freeze durations during the screen session
@@ -44,4 +33,3 @@ public data class RenderingMetrics(
44
33
*/
45
34
val foregroundTimeMs : Long? = null
46
35
)
47
-
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ public object RenderingMetricsMapper {
22
22
var total = 0L
23
23
var slow = 0L
24
24
var frozen = 0L
25
- var dropped = 0L
26
25
var totalFreezeTime = 0L
27
26
28
27
totalMetrics.forEach { frameDuration, numberOfFrames ->
@@ -36,15 +35,12 @@ public object RenderingMetricsMapper {
36
35
totalFreezeTime + = frameDuration * numberOfFrames
37
36
}
38
37
total + = numberOfFrames.toLong()
39
-
40
- dropped + = (frameDuration / SLOW_FRAME_THRESHOLD_MS ) * numberOfFrames
41
38
}
42
39
43
40
return RenderingMetrics (
44
41
totalFrames = total,
45
42
slowFrames = slow,
46
43
frozenFrames = frozen,
47
- droppedFrames = dropped,
48
44
totalFreezeTimeMs = totalFreezeTime,
49
45
foregroundTimeMs = foregroundTime
50
46
)
You can’t perform that action at this time.
0 commit comments