MCPcopy Create free account
hub / github.com/ORCID/orcid-angular / nrWrapper

Function nrWrapper

scripts/new-relic.runtime.js:647–682  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

645 })(t, nrWrapper, e),
646 nrWrapper)
647 function nrWrapper() {
648 var s, a, l, f
649 let h
650 try {
651 ;(a = this),
652 (s = [...arguments]),
653 (l = 'function' == typeof n ? n(s, a) : n || {})
654 } catch (t) {
655 u([t, '', [s, a, c], l], e)
656 }
657 i(r + 'start', [s, a, c], l, d)
658 const p = performance.now()
659 let g
660 try {
661 return (f = t.apply(a, s)), (g = performance.now()), f
662 } catch (e) {
663 throw (
664 ((g = performance.now()),
665 i(r + 'err', [s, a, e], l, d),
666 (h = e),
667 h)
668 )
669 } finally {
670 const e = g - p,
671 t = {
672 start: p,
673 end: g,
674 duration: e,
675 isLongTask: e >= o,
676 methodName: c,
677 thrownError: h,
678 }
679 t.isLongTask && i('long-task', [t, a], l, d),
680 i(r + 'end', [s, a, f], l, d)
681 }
682 }
683 }
684 function i(r, n, i, s) {
685 if (!c || t) {

Callers

nothing calls this directly

Calls 3

uFunction · 0.85
iFunction · 0.85
nFunction · 0.70

Tested by

no test coverage detected