mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
32 lines
658 B
PHP
32 lines
658 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Magento\ApplicationPerformanceMonitor\Profiler;
|
|
|
|
/**
|
|
* Interface for different ways of outputting our performance data.
|
|
*/
|
|
interface OutputInterface
|
|
{
|
|
|
|
/**
|
|
* Whether this output is currently enabled
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function isEnabled() : bool;
|
|
|
|
/**
|
|
* Output our metrics and other information
|
|
*
|
|
* @param Metric[] $metrics
|
|
* @param array $information
|
|
* @return void
|
|
*/
|
|
public function doOutput(array $metrics, array $information) : void;
|
|
}
|