forked from rebillar/site-accueil-insa
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			No EOL
		
	
	
		
			945 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			No EOL
		
	
	
		
			945 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /**
 | |
|  * Matomo - free/libre analytics platform
 | |
|  *
 | |
|  * @link https://matomo.org
 | |
|  * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
 | |
|  */
 | |
| namespace Piwik\Plugins\PagePerformance\Columns\Metrics;
 | |
| 
 | |
| use Piwik\Piwik;
 | |
| 
 | |
| /**
 | |
|  * The average amount of time the browser needs to load media any Javascript listening for the DOMContentLoaded event.
 | |
|  * Calculated as
 | |
|  *
 | |
|  *     sum_time_dom_completion / nb_hits_with_time_dom_completion
 | |
|  *
 | |
|  * The above metrics are calculated during archiving. This metric is calculated before
 | |
|  * serving a report.
 | |
|  */
 | |
| class AverageTimeDomCompletion extends AveragePerformanceMetric
 | |
| {
 | |
|     const ID = 'time_dom_completion';
 | |
| 
 | |
|     public function getTranslatedName()
 | |
|     {
 | |
|         return Piwik::translate('PagePerformance_ColumnAverageTimeDomCompletion');
 | |
|     }
 | |
| 
 | |
|     public function getDocumentation()
 | |
|     {
 | |
|         return Piwik::translate('PagePerformance_ColumnAverageTimeDomCompletionDocumentation');
 | |
|     }
 | |
| } |