Home | History | Annotate | Download | only in js

Lines Matching defs:profiler

32  * @fileoverview Profiler processor is used to process log file produced
39 * Creates a Profile View builder object compatible with WebKit Profiler UI.
41 * @param {number} samplingRate Number of ms between profiler ticks.
44 devtools.profiler.WebKitViewBuilder = function(samplingRate)
46 devtools.profiler.ViewBuilder.call(this, samplingRate);
48 devtools.profiler.WebKitViewBuilder.prototype.__proto__ = devtools.profiler.ViewBuilder.prototype;
54 devtools.profiler.WebKitViewBuilder.prototype.createViewNode = function(funcName, totalTime, selfTime, head)
56 return new devtools.profiler.WebKitViewNode(funcName, totalTime, selfTime, head);
61 * Constructs a Profile View node object for displaying in WebKit Profiler UI.
69 * @param {devtools.profiler.ProfileView.Node} head Profile view head.
72 devtools.profiler.WebKitViewNode = function(internalFuncName, totalTime, selfTime, head)
74 devtools.profiler.ProfileView.Node.call(this, internalFuncName, totalTime, selfTime, head);
78 devtools.profiler.WebKitViewNode.prototype.__proto__ = devtools.profiler.ProfileView.Node.prototype;
84 devtools.profiler.WebKitViewNode.FUNC_NAME_STRIP_RE = /^(?:LazyCompile|Function|Callback): (.*)$/;
90 devtools.profiler.WebKitViewNode.FUNC_NAME_PARSE_RE = /^((?:get | set )?[^ ]+) (.*):(\d+)( \{\d+\})?$/;
98 devtools.profiler.WebKitViewNode.prototype.initFuncInfo_ = function()
100 var nodeAlias = devtools.profiler.WebKitViewNode;
125 devtools.profiler.JsProfile = function()
127 devtools.profiler.Profile.call(this);
129 devtools.profiler.JsProfile.prototype.__proto__ = devtools.profiler.Profile.prototype;
136 devtools.profiler.JsProfile.JS_NON_NATIVE_RE = new RegExp(
146 devtools.profiler.JsProfile.prototype.skipThisFunction = function(name)
148 return !devtools.profiler.JsProfile.JS_NON_NATIVE_RE.test(name);
153 * Profiler processor. Consumes profiler log and builds profile views.
156 * @param {function(devtools.profiler.ProfileView)} newProfileCallback Callback
160 devtools.profiler.Processor = function()
185 "profiler": { parsers: [null, "var-args"],
199 // Not used in DevTools Profiler.
206 if (devtools.profiler.Profile.VERSION === 2) {
213 devtools.profiler.LogReader.call(this, dispatches);
230 * @type {function(devtools.profiler.ProfileView)}
236 * @type {devtools.profiler.JsProfile}
241 * Builder of profile views. Created during "profiler,begin" event processing.
242 * @type {devtools.profiler.WebKitViewBuilder}
276 devtools.profiler.Processor.prototype.__proto__ = devtools.profiler.LogReader.prototype;
282 devtools.profiler.Processor.prototype.printError = function(str)
291 devtools.profiler.Processor.prototype.skipDispatch = function(dispatch)
301 * @param {function(devtools.profiler.ProfileView)} finished Finished
304 devtools.profiler.Processor.prototype.setCallbacks = function(started, processing, finished)
322 devtools.profiler.Processor.PROGRAM_ENTRY = 0xffff;
326 devtools.profiler.Processor.PROGRAM_ENTRY_STR = "0xffff";
331 * @param {function(devtools.profiler.ProfileView)} callback Callback function.
333 devtools.profiler.Processor.prototype.setNewProfileCallback = function(callback)
339 devtools.profiler.Processor.prototype.processProfiler_ = function(state, params)
344 this.currentProfile_ = new devtools.profiler.JsProfile();
345 // see the comment for devtools.profiler.Processor.PROGRAM_ENTRY
346 this.currentProfile_.addCode("Function", "(program)", devtools.profiler.Processor.PROGRAM_ENTRY, 1);
373 this.viewBuilder_ = new devtools.profiler.WebKitViewBuilder(samplingRate);
379 throw new Error("unknown profiler state: " + state);
384 devtools.profiler.Processor.prototype.processCodeCreation_ = function(type, start, size, name)
390 devtools.profiler.Processor.prototype.processCodeMove_ = function(from, to)
396 devtools.profiler.Processor.prototype.processCodeDelete_ = function(start)
402 devtools.profiler.Processor.prototype.processFunctionCreation_ = function(functionAddr, codeAddr)
408 devtools.profiler.Processor.prototype.processFunctionMove_ = function(from, to)
414 devtools.profiler.Processor.prototype.processFunctionDelete_ = function(start)
421 devtools.profiler.Processor.prototype.processTick_ = function(pc, sp, vmState, stack)
423 // see the comment for devtools.profiler.Processor.PROGRAM_ENTRY
424 stack.push(devtools.profiler.Processor.PROGRAM_ENTRY_STR);
430 devtools.profiler.Processor.prototype.processTickV2_ = function(pc, sp, func, vmState, stack)
432 // see the comment for devtools.profiler.Processor.PROGRAM_ENTRY
433 stack.push(devtools.profiler.Processor.PROGRAM_ENTRY_STR);
453 devtools.profiler.Processor.prototype.processHeapSampleBegin_ = function(space, state, ticks)
466 devtools.profiler.Processor.prototype.processHeapSampleStats_ = function(space, state, capacity, used)
472 devtools.profiler.Processor.prototype.processHeapSampleItem_ = function(item, number, size)
481 devtools.profiler.Processor.prototype.processHeapJsConsItem_ = function(item, number, size)
490 devtools.profiler.Processor.prototype.processHeapJsRetItem_ = function(item, retainersArray)
525 devtools.profiler.Processor.prototype.processHeapSampleEnd_ = function(space, state)
537 devtools.profiler.Processor.prototype.createProfileForView = function()