{"repo":"w3c/performance-timeline","free":true,"listed":false,"github":"https://github.com/w3c/performance-timeline","clone":"git clone https://github.com/w3c/performance-timeline.git","description":"Performance Timeline","language":"Bikeshed","stars":113,"topics":["api","web","webapp","web-application","performance","specification","performance-metrics"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"Performance Timeline ==================== Overview The PerformanceTimeline specification defines ways in which web developers can measure specific aspects of their web applications in order to make them faster. It introduces two main ways to obtain these measurements: via getter methods from the Performance interface and via the PerformanceObserver interface. The latter is the recommended way to reduce the performance impact of querying these measurements. PerformanceEntry A PerformanceEntry object can host performance data of a certain metric. A PerformanceEntry has 4 attributes: name , entryType , startTime , and duration . This specification does not define concrete PerformanceEntry objects. Examples of specifications that define new concrete types of PerformanceEntry objects are Paint Timing, User Timing, Resource Timing, and Navigation Timing. Performance getters The Performance interface is augmented with three new methods that can return a list of PerformanceEntry objects: getEntries() : returns all of the entries available to the Performance object. getEntriesByType(type) : returns all of the entries available to the Performance object whose entryType matches type . getEntriesByName(name, type) : returns all of the entries available to the Performance object whose name matches name . If the optional parameter type is specified, it only returns entries whose entryType matches type . Using the getters in JavaScript The following example shows how getEntriesByName() coul","default_branch":null,"files":null,"tree":[],"storefront":"/r/w3c","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/w3c/performance-timeline/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}