PHP logging

EventLogging::logEvent( 'CpuBenchmark', 21012091, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"CpuBenchmark": 21012091
			}
		}
	}
}

JavaScript logging

mw.track( 'event.CpuBenchmark', { /* ... */ } );

Schema:CpuBenchmark

From Meta, a Wikimedia project coordination wiki
Revision 21012091
Jump to navigation Jump to search
description"Holds the outcome of CPU microbenchmarks run by the NavigationTiming extension"
properties
pageviewToken
description"Token unique to current page's JS execution context. Used to link to NavTiming data."
type"string"
score
description"A score representing the outcome of a CPU microbenchmark. Lower values mean a more powerful device."
type"integer"
batteryLevel
description"The current battery level, according to the Battery Status API. Values range from 0 to 1.0."
type"number"