forked from mirrors/gecko-dev
		
	 bcf6f4c256
			
		
	
	
		bcf6f4c256
		
	
	
	
	
		
			
			This ChromeUtils API now returns a promise that gets resolved once all the data has been collected via IPDL and the main process. The existing notification design and its related XPCOM classes are removed. MozReview-Commit-ID: CYKukBOC8yh --HG-- extra : rebase_source : 1e27524726ace0bfed5297d48af8be268c5b4945
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			655 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			655 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 | |
| /* This Source Code Form is subject to the terms of the Mozilla Public
 | |
|  * License, v. 2.0. If a copy of the MPL was not distributed with this
 | |
|  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 | |
| 
 | |
| #ifndef PerformanceUtils_h
 | |
| #define PerformanceUtils_h
 | |
| 
 | |
| #include "mozilla/dom/DOMTypes.h"   // defines PerformanceInfo
 | |
| 
 | |
| namespace mozilla {
 | |
| 
 | |
| /**
 | |
|  * Collects all performance info in the current process
 | |
|  * and adds then in the aMetrics array
 | |
|  */
 | |
| void CollectPerformanceInfo(nsTArray<dom::PerformanceInfo>& aMetrics);
 | |
| 
 | |
| } // namespace mozilla
 | |
| #endif   // PerformanceUtils_h
 |