MCPcopy Create free account
hub / github.com/YellowLabTools/YellowLabTools / f

Function f

test/www/minified-script.js:7–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5n.length>100&&(n=n.substr(0,98)+"...")
6var r={fullPath:t.file,shortPath:n}
7e.scripts.push(r)})}function f(){var t=e.result.javascriptExecutionTree.children||[],n=t[t.length-1]
8e.endTime=n.data.timestamp+(n.data.time||0),e.executionTree=[],t.forEach(function(t){if(e.selectedScript){if(t.data.backtrace&&-1===t.data.backtrace.indexOf(e.selectedScript.fullPath+":"))return
9if("jQuery loaded"===t.data.type||"jQuery version change"===t.data.type)return}e.executionTree.push(t)})}function m(){var t=199
10e.timelineIntervalDuration=e.endTime/t
11var n=Array.apply(null,Array(e.endTime+1)).map(Number.prototype.valueOf,0)
12e.executionTree.forEach(function(e){if(void 0!==e.data.time)for(var t=Math.min(e.data.time,100)||1,r=e.data.timestamp,i=e.data.timestamp+t;i>r;r++)n[r]|=1}),e.timeline=Array.apply(null,Array(t+1)).map(Number.prototype.valueOf,0),n.forEach(function(t,n){1===t&&(e.timeline[Math.floor(n/e.timelineIntervalDuration)]+=1)}),e.timelineMax=Math.max.apply(Math,e.timeline)}function p(){e.profilerData=e.executionTree}e.runId=n.runId,e.Menu=a.setCurrentPage("timeline",e.runId),e.changeScript=function(){f(),m(),p()},e.findLineIndexByTimestamp=function(t){for(var n=0,r=0;r<e.executionTree.length;r++){var i=e.executionTree[r].data.timestamp-t

Callers 3

htFunction · 0.85
cFunction · 0.85
minified-script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected