MCPcopy Index your code
hub / github.com/ampproject/amphtml / isPerformanceTrackingOn

Method isPerformanceTrackingOn

src/service/performance-impl.js:961–963  ·  view source on GitHub ↗

* Identifies if the viewer is able to track performance. If the document is * not embedded, there is no messaging channel, so no performance tracking is * needed since there is nobody to forward the events. * @return {boolean}

()

Source from the content-addressed store, hash-verified

959 * @return {boolean}
960 */
961 isPerformanceTrackingOn() {
962 return this.isPerformanceTrackingOn_;
963 }
964
965 /**
966 * Retrieve a promise for tick label, resolved with metric. Used by amp-analytics

Callers 2

createdCallbackMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected