// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {TestRunner} from 'test_runner';
import * as SDK from 'devtools/core/sdk/sdk.js';
(async function() {
TestRunner.addResult(`Tests stability of performance metrics list.\n`);
const model = SDK.TargetManager.TargetManager.instance().primaryPageTarget().model(SDK.PerformanceMetricsModel.PerformanceMetricsModel);
await model.enable();
let metrics = (await model.requestMetrics()).metrics;
TestRunner.addResult('\nMetrics reported:');
TestRunner.addResults([...metrics.keys()].sort());
TestRunner.completeTest();
})();