gcRateThresholdPerMin property

int gcRateThresholdPerMin
final

Young-generation collections (scavenges) per minute, extrapolated from a 10 s sliding window, above which gc_pressure fires. Old-generation sweeps and concurrent-marking starts do not count: on animated screens they follow promotion and pause the app briefly. On an iPhone 12 and a Galaxy A07 at 60 Hz, ordinary screens ran 168 scavenges a minute or fewer, and the GC Churn demo ran 390 to 810. Scavenges rise with the frame rate: Live Waveform at 90 Hz on the Galaxy ran 186 to 246 a minute with 3.7 to 4.9 % of the time in GC pauses, more than the churn demo. Each emission stamps the young-generation / old-generation / marking-start split of the window, and the GC pause time when it can be measured.

Implementation

final int gcRateThresholdPerMin;