Home
last modified time | relevance | path

Searched refs:slopes (Results 1 – 2 of 2) sorted by relevance

/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/
DSlabinfoHelperTest.java80 Map<String, Double> slopes = SlabinfoHelper.fitLinesToSamples(samples); in testSimpleExactFits() local
81 assertEquals(Double.valueOf(300), slopes.get("slabinfo.a")); in testSimpleExactFits()
82 assertEquals(Double.valueOf(150), slopes.get("slabinfo.b")); in testSimpleExactFits()
83 assertEquals(Double.valueOf(75), slopes.get("slabinfo.c")); in testSimpleExactFits()
84 assertEquals(Double.valueOf(-75), slopes.get("slabinfo.d")); in testSimpleExactFits()
85 assertEquals(Double.valueOf(-150), slopes.get("slabinfo.e")); in testSimpleExactFits()
86 assertEquals(Double.valueOf(-300), slopes.get("slabinfo.f")); in testSimpleExactFits()
113 Map<String, Double> slopes = SlabinfoHelper.fitLinesToSamples(samples); in testNoSlopes() local
114 assertEquals(Double.valueOf(0), slopes.get("slabinfo.a")); in testNoSlopes()
115 assertEquals(Double.valueOf(0), slopes.get("slabinfo.b")); in testNoSlopes()
[all …]
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DSlabinfoHelper.java181 Map<String, Double> slopes = new TreeMap<>(); in fitLinesToSamples() local
190 slopes.put("slabinfo." + name, num * TimeUnit.MINUTES.toSeconds(5) / denom); in fitLinesToSamples()
193 slopes.put( in fitLinesToSamples()
197 return slopes; in fitLinesToSamples()