Lines Matching refs:require
10 d&&d.call(this,b,f),g(this,a,b,f))};case r.BOOL_ATTR:return c=l(a),function(b){var f=this[c];b!==f&&(b?this.setAttribute(c,a):this.removeAttribute(c),d&&d.call(this,b,f),g(this,a,b,f))}}}function k(a,b,d){var f=base.doc.createEvent("Event");f.initEvent(a,!!b,!!d);f.__proto__=global.Event.prototype;return f}var q=".",m=!1,p={},s={},t={},u={},r={JS:"js",ATTR:"attr",BOOL_ATTR:"boolAttr"},w=1;return{set moduleBasePath(a){e(a)},get moduleBasePath(){return q},require:d,requireStylesheet:f,exportTo:function(a,
19 a.prototype={__proto__:e.prototype,addCategory:function(a){this.categories_[a]=!0},matchSlice:function(a){return!a.category?!0:!this.categories_[a.category]}};return{filterSliceArray:function(a,d){if(void 0===a)return d;for(var f=[],g=0;g<d.length;++g)a.matchSlice(d[g])&&f.push(d[g]);return f},TimelineFilter:e,TimelineTitleFilter:c,TimelineCategoryFilter:a}});"use strict";base.require("event_target");
23 map:function(a){for(var d=0;d<this.length_;d++)a(this[d])},getShiftedSelection:function(b){for(var d=new a,f=0;f<this.length_;f++){var g=this[f];g.track.addItemNearToProvidedHitToSelection(g,b,d)}return 0==d.length?void 0:d}};return{TimelineSelectionSliceHit:e,TimelineSelectionCounterSampleHit:c,TimelineSelection:a}});"use strict";base.require("event_target");
36 10),k=a.clientWidth-h-g-f;c.addEventListener("input",d);d()},toCssPx:function(c){window.isFinite(c)||console.error("Pixel value is not a number: "+c);return Math.round(c)+"px"}}});base.requireStylesheet("tracks.timeline_track");base.require("ui");
38 function(){b.style.display="None"});this.appendChild(a);var d=document.createElement("div");d.classList.add("timeline-track-button");d.classList.add("timeline-track-collapse-button");d.textContent="\u2212";var f=!1;d.addEventListener("click",function(){f=!f;this.collapsedDidChange(f);d.textContent=f?"+":"\u2212"});this.appendChild(d);c||(d.style.display="None")}};return{TimelineTrack:e}});"use strict";base.require("tracks.timeline_track");base.require("timeline_filter");base.require("ui");
49 base.require("tracks.timeline_track");base.require("fast_rect_renderer");base.require("timeline_color_scheme");base.require("ui");
57 0:-1:g<=a.length&&f>=b(a[g-1])&&f<b(a[g-1])+d(a[g-1])?g-1:a.length},iterateOverIntersectingIntervals:c,getIntersectingIntervals:function(a,b,d,f,g){var l=[];c(a,b,d,f,g,function(a){l.push(a)});return l}}});"use strict";base.requireStylesheet("tracks.timeline_slice_track");base.require("tracks.timeline_canvas_based_track");base.require("sorted_array_utils");base.require("fast_rect_renderer");base.require("timeline_color_scheme");base.require("ui");
66 base.exportTo("tracing",function(){function e(c,a,b,d,f,g){this.category=c||"";this.title=a;this.start=d;this.colorId=b;this.args=f;this.didNotFinish=!1;void 0!==g&&(this.duration=g)}e.prototype={selected:!1,duration:void 0,get end(){return this.start+this.duration}};return{TimelineSlice:e}});"use strict";base.require("timeline_slice");base.require("timeline_color_scheme");base.require("timeline_filter");
71 base.require("timeline_slice");
74 {},d=0;d<this.slices.length;++d){var f=this.slices[d],g=f.startThread.ptid;a[g]||(a[g]=new c(this.name));a[g].slices.push(f)}var d=[],l;for(l in a)f=a[l],f.updateBounds(),d.push(f);return d}};return{TimelineAsyncSlice:e,TimelineAsyncSliceGroup:c}});"use strict";base.require("timeline_slice");base.require("timeline_slice_group");base.require("timeline_async_slice_group");
82 d=0;d<this.timestamps.length;d++){for(var f=0,g=0;g<a;g++)f+=this.samples[d*a+g],this.totals.push(f);f>b&&(b=f)}this.maxTotal=b}}};e.compare=function(a,b){if(a.parent_id!=b.parent_id)return a.parent_id-b.parent_id;var d=a.name.localeCompare(b.name);return 0==d?a.tid-b.tid:d};return{TimelineCounter:e}});"use strict";base.require("timeline_thread");base.require("timeline_counter");
84 getOrCreateCounter:function(b,d){var f=b+"."+d;this.counters[f]||(this.counters[f]=new a(this,f,b,d));return this.counters[f]}};e.compare=function(a,d){return a.pid-d.pid};return{TimelineProcess:e}});"use strict";base.require("timeline_slice");base.require("timeline_counter");
86 this.slices[0].start,this.maxTimestamp=this.slices[this.slices.length-1].end):this.maxTimestamp=this.minTimestamp=void 0}};e.compare=function(a,b){return a.cpuNumber-b.cpuNumber};return{TimelineCpu:e}});"use strict";base.require("event_target");base.require("timeline_process");base.require("timeline_cpu");base.require("timeline_filter");
94 this.autoCloseOpenSlices_();for(c=0;c<d.length;c++)d[c].finalizeImport();this.pruneEmptyThreads_();this.updateBounds();this.updateCategories_();b&&this.shiftWorldToZero()}};return{TimelineModel:e}});"use strict";base.require("tracks.timeline_container_track");base.require("tracks.timeline_slice_track");base.require("timeline_filter");base.require("timeline_model");base.require("ui");
97 return{TimelineCpuTrack:e}});"use strict";base.requireStylesheet("tracks.timeline_counter_track");base.require("tracks.timeline_canvas_based_track");base.require("timeline_color_scheme");base.require("ui");
103 a);b=tracing.findLowIndexInSortedArray(f.timestamps,function(a){return a},e);0<d&&a>f.timestamps[d-1]&&d--;0<b&&e>f.timestamps[b-1]&&b--;for(a=d;a<=b;a++)a>=f.timestamps.length||(e=c.addCounterSample(this,this.counter,a),this.decorateHit(e))}},addAllObjectsMatchingFilterToSelection:function(){}};return{TimelineCounterTrack:c}});"use strict";base.require("tracks.timeline_container_track");base.require("sorted_array_utils");base.require("ui");
107 g=!0);if(f.start>=h.start&&f.end<=h.end){for(;d.length<=e+1;)d.push([]);d[e+1].push(f);h.subSlices&&h.subSlices.push(f);g=!0;break}}g||d[0].push(f)}return d},areArrayContentsSame_:function(c,a){if(!c||!a||(!c.length||!a.length)||c.length!=a.length)return!1;for(var b=0;b<c.length;++b)if(c[b]!=a[b])return!1;return!0}};return{TimelineSliceGroupTrack:e}});"use strict";base.require("tracks.timeline_slice_group_track");base.require("ui");
110 base.require("tracks.timeline_container_track");base.require("tracks.timeline_slice_track");base.require("tracks.timeline_slice_group_track");base.require("tracks.timeline_async_slice_group_track");base.require("timeline_filter");base.require("ui");
114 a=0;a<this.tracks_.length;++a)2<c?this.tracks_[a].height=Math.floor(c)+"px":this.tracks_[a].style.display="none",c*=0.5;else for(a=0;a<this.tracks_.length;++a)this.tracks_[a].height=this.tracks_[0].height,this.tracks_[a].style.display=""}};return{TimelineThreadTrack:e}});"use strict";base.require("tracks.timeline_container_track");base.require("tracks.timeline_counter_track");base.require("tracks.timeline_thread_track");base.require("timeline_filter");base.require("ui");
117 return{TimelineProcessTrack:e}});"use strict";base.requireStylesheet("tracks.timeline_model_track");base.require("tracks.timeline_container_track");base.require("tracks.timeline_cpu_track");base.require("tracks.timeline_process_track");base.require("ui");
121 base.require("tracks.timeline_track");base.require("tracks.timeline_canvas_based_track");base.require("ui");
128 (r?(m=g-10,p=u+10):p=m=h,this.drawArrow_(a,m,e,t,e,3,"rgb(128,121,121)"),this.drawArrow_(a,p,e,s,e,3,"rgb(128,121,121)"))}},addIntersectingItemsToSelection:function(){},addIntersectingItemsInRangeToSelection:function(){},addAllObjectsMatchingFilterToSelection:function(){}};return{TimelineViewportTrack:e}});"use strict";base.requireStylesheet("timeline");base.require("event_target");base.require("measuring_stick");base.require("timeline_filter");base.require("timeline_selection");base.require("timeline_viewport");
129 base.require("tracks.timeline_model_track");base.require("tracks.timeline_viewport_track");base.require("ui");
150 base.require("ui");base.requireStylesheet("timeline_analysis");
161 analyzeSelection_:e}});base.requireStylesheet("overlay");base.require("ui");base.require("event_target");
168 !1;a.preventDefault();break}},onDocumentClick:function(a){if(this.defaultClickShouldClose){for(var b=a.target;null!==b;){if(b===this)return;b=b.parentNode}this.visible=!1;a.preventDefault()}}};base.defineProperty(c,"visible",base.PropertyKind.BOOL_ATTR,c.prototype.onVisibleChanged_);base.defineProperty(c,"defaultClickShouldClose",base.PropertyKind.BOOL_ATTR);return{Overlay:c}});"use strict";base.require("timeline_filter");base.require("overlay");
172 base.require("timeline");base.require("timeline_filter");base.require("overlay");
179 this.currentHitIndex_,b=this.filterHits.subSelection(this.currentHitIndex_),this.timeline.setSelectionAndMakeVisible(b,a))}},findNext:function(){this.find_(1)},findPrevious:function(){this.find_(-1)}};return{TimelineFindControl:c,TimelineFindController:e}});base.require("timeline_model");base.require("timeline_color_scheme");
186 b){return a.event.ts-b.event.ts});for(var c={},a=this.allAsyncEvents_,b=0;b<a.length;b++){var d=a[b],f=d.event,g=f.name;if(void 0===g)this.model_.importErrors.push("Async events (ph: S, T or F) require an name parameter.");else{var e=f.id;if(void 0===e)this.model_.importErrors.push("Async events (ph: S, T or F) require an id parameter.");else if("S"==f.ph)void 0===c[g]&&(c[g]={}),c[g][e]?this.model_.importErrors.push("At "+f.ts+", a slice of the same id "+e+" was alrady open."):(c[g][e]=[],c[g][e].push(d));
189 base.exportTo("tracing",function(){function e(a){this.importer=a}var c=[];e.registerSubtype=function(a){c.push(a)};e.getSubtypeConstructors=function(){return c};e.prototype={__proto__:Object.prototype};return{LinuxPerfParser:e}});base.require("linux_perf_parser");
192 base.require("linux_perf_parser");
194 ".value")));a.timestamps.push(c);a.samples.push(b);return!0}};c.registerSubtype(e);return{LinuxPerfClockParser:e}});base.require("linux_perf_parser");
198 if(!l)return!1;b=parseInt(l[1]);d=parseInt(l[2]);e=parseInt(l[3]);l=parseInt(l[4]);this.cpufreqSlice(c,a,b,{cpu:b,load:d,cur:e,targ:l});return!0},cpufreqBoostUnboostEvent:function(a,b,d,c,e){this.cpufreqBoostSlice(c,a,{type:e[5]});return!0}};c.registerSubtype(e);return{LinuxPerfCpufreqParser:e}});base.require("linux_perf_parser");
200 a=parseInt(b[1]);b=parseInt(b[2]);this.drmVblankSlice(c,"vblank:"+a,{crtc:a,seq:b});return!0}};c.registerSubtype(e);return{LinuxPerfDrmParser:e}});base.require("linux_perf_parser");
204 b,d,c,e){a=/frequency=(\d+)/.exec(e[5]);if(!a)return!1;this.exynosBusfreqSample("MIF Frequency",c,parseInt(a[1]));return!0}};c.registerSubtype(e);return{LinuxPerfExynosParser:e}});base.require("linux_perf_parser");
207 syncEvent:function(a,b,d,c,e){a=/^\s*(\w+):\s*(\w+)$/.exec(e[2]);switch(a[1]){case "start":this.gestureOpenSlice("SyncInterpret",c,{interpreter:a[2]});break;case "end":this.gestureCloseSlice("SyncInterpret",c)}return!0},timerEvent:function(a,b,d,c,e){a=/^\s*(\w+):\s*(\w+)$/.exec(e[2]);switch(a[1]){case "start":this.gestureOpenSlice("HandleTimer",c,{interpreter:a[2]});break;case "end":this.gestureCloseSlice("HandleTimer",c)}return!0}};c.registerSubtype(e);return{LinuxPerfGestureParser:e}});base.require("linux_perf_parser");
218 d,c,e){a=/(\w+) reg=(\w+), len=(\d+), val=(\(\w+, \w+\))/.exec(e[5]);if(!a)return!1;b=a[1];d=a[2];this.i915RegSlice(c,b,d,{rw:b,reg:d,len:a[3],data:a[3]});return!0},flipEvent:function(a,b,d,c,e){d=/plane=(\d+), obj=(\w+)/.exec(e[5]);if(!d)return!1;b=parseInt(d[1]);d=d[2];"i915_flip_request"==a?this.i915FlipOpenSlice(c,d,b):this.i915FlipCloseSlice(c,{obj:d,plane:b});return!0}};c.registerSubtype(e);return{LinuxPerfI915Parser:e}});base.require("linux_perf_parser");
222 if(!a)return!1;this.dvfsSample("DVFS Frequency","frequency",c,a[1]);return!0},dvfsSetVoltageEvent:function(a,b,d,c,e){a=/voltage=(\d+)/.exec(e[5]);if(!a)return!1;this.dvfsSample("DVFS Voltage","voltage",c,a[1]);return!0}};c.registerSubtype(e);return{LinuxPerfMaliParser:e}});base.require("linux_perf_parser");
227 base.require("linux_perf_parser");
230 base.require("linux_perf_parser");
232 b[2];return!0},executeEndEvent:function(a,c,e,l,h){if(!b.exec(h[5]))return!1;a=this.importer.getOrCreateKernelThread(h[1]);a.openSlice&&(l=new tracing.TimelineSlice("",a.openSlice,tracing.getStringColorId(a.openSlice),a.openSliceTS,{},l-a.openSliceTS),a.thread.pushSlice(l));a.openSlice=void 0;return!0}};c.registerSubtype(e);return{LinuxPerfWorkqueueParser:e}});base.require("linux_perf_parser");
235 c.args[h]=event.args[h];break;case "C":a=parseInt(b[1]);h=b[2];d=parseInt(b[3]);l=this.model_.getOrCreateProcess(a).getOrCreateCounter(null,h);0==l.numSeries&&(l.seriesNames.push("value"),l.seriesColors.push(tracing.getStringColorId(l.name+".value")));l.timestamps.push(c);l.samples.push(d);break;default:return!1}return!0}};c.registerSubtype(e);return{LinuxPerfAndroidParser:e}});base.require("timeline_model");base.require("timeline_color_scheme");base.require("linux_perf_bus_parser");base.require("linux_perf_clock_parser");
236 base.require("linux_perf_cpufreq_parser");base.require("linux_perf_drm_parser");base.require("linux_perf_exynos_parser");base.require("linux_perf_gesture_parser");base.require("linux_perf_i915_parser");base.require("linux_perf_mali_parser");base.require("linux_perf_power_parser");base.require("linux_perf_sched_parser");base.require("linux_perf_workqueue_parser");base.require("linux_perf_android_parser");
253 namespace_:function(c,a){return this.normalize_(a)+c},unnamespace_:function(c,a){return c.replace(this.normalize_(a),"")},normalize_:function(c){return e.NAMESPACE+(c?c+".":"")}};e.NAMESPACE="trace-viewer";return{Settings:e}});function FakeLocalStorage(){return Object.create({},{key:{value:function(e){return Object.keys(this).sort()[e]}},length:{get:function(){return Object.keys(this).length}}})}"use strict";base.requireStylesheet("timeline_view");base.require("timeline");base.require("timeline_analysis");
254 base.require("timeline_category_filter_dialog");base.require("timeline_filter");base.require("timeline_find_control");base.require("overlay");base.require("trace_event_importer");base.require("linux_perf_importer");base.require("settings");