in MotionMark/resources/debug-runner/graph.js [106:133]
_tickValuesForFrameRate: function(frameRate, minValue, maxValue)
{
// Tick labels go up to 1.5x frame rate
const buildInFrameRates = {
15 : [5, 10, 15, 20],
30 : [5, 10, 15, 20, 25, 30, 35, 40],
45 : [30, 35, 40, 45, 50, 55, 60],
60 : [30, 35, 40, 45, 50, 55, 60, 90],
90 : [30, 35, 40, 45, 50, 55, 60, 90, 120],
120 : [30, 40, 50, 60, 70, 80, 100, 120, 150],
144 : [40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 200],
};
let tickValues = buildInFrameRates[frameRate];
if (!tickValues) {
const minLabel = Math.round(minValue / 10) * 10;
const maxLabel = Math.round(maxValue / 10) * 10;
tickValues = [];
let curValue = minLabel;
while (curValue <= maxLabel) {
tickValues.push(curValue);
curValue += 20;
}
}
tickValues = tickValues.map((x) => msPerSecond / x);
return tickValues;
},