in resources/perf.webkit.org/public/v3/models/measurement-set.js [107:129]
async _fetchPrimaryCluster(noCache = false)
{
let data = null;
if (!noCache) {
try {
data = await RemoteAPI.getJSONWithStatus(this._urlForCache());
if (+data['lastModified'] < this._lastModified)
data = null;
} catch (error) {
if (error != 404)
throw error;
}
}
if (!data) // Request the latest JSON if noCache was true or the cached JSON was outdated.
data = await RemoteAPI.getJSONWithStatus(`/api/measurement-set?platform=${this._platformId}&metric=${this._metricId}`);
this._primaryClusterEndTime = data['endTime'];
this._clusterCount = data['clusterCount'];
this._clusterStart = data['clusterStart'];
this._clusterSize = data['clusterSize'];
this._addFetchedCluster(new MeasurementCluster(data));
}