Home | History | Annotate | Download | only in tools

Lines Matching defs:profiler

31 devtools.profiler = devtools.profiler || {};
40 devtools.profiler.Profile = function() {
41 this.codeMap_ = new devtools.profiler.CodeMap();
42 this.topDownTree_ = new devtools.profiler.CallTree();
43 this.bottomUpTree_ = new devtools.profiler.CallTree();
47 * Version of profiler log.
49 devtools.profiler.Profile.VERSION = 2;
58 devtools.profiler.Profile.prototype.skipThisFunction = function(name) {
64 * Enum for profiler operations that involve looking up existing
69 devtools.profiler.Profile.Operation = {
79 * See the devtools.profiler.Profile.Operation enum for the list of
88 devtools.profiler.Profile.prototype.handleUnknownCode = function(
100 devtools.profiler.Profile.prototype.addLibrary = function(
102 var entry = new devtools.profiler.CodeMap.CodeEntry(
116 devtools.profiler.Profile.prototype.addStaticCode = function(
118 var entry = new devtools.profiler.CodeMap.CodeEntry(
133 devtools.profiler.Profile.prototype.addCode = function(
135 var entry = new devtools.profiler.Profile.DynamicCodeEntry(size, type, name);
147 devtools.profiler.Profile.prototype.addCodeAlias = function(
162 devtools.profiler.Profile.prototype.moveCode = function(from, to) {
166 this.handleUnknownCode(devtools.profiler.Profile.Operation.MOVE, from);
176 devtools.profiler.Profile.prototype.deleteCode = function(start) {
180 this.handleUnknownCode(devtools.profiler.Profile.Operation.DELETE, start);
191 devtools.profiler.Profile.prototype.safeMoveDynamicCode = function(from, to) {
203 devtools.profiler.Profile.prototype.safeDeleteDynamicCode = function(start) {
215 devtools.profiler.Profile.prototype.findEntry = function(addr) {
226 devtools.profiler.Profile.prototype.recordTick = function(stack) {
240 devtools.profiler.Profile.prototype.resolveAndFilterFuncs_ = function(stack) {
251 devtools.profiler.Profile.Operation.TICK, stack[i], i);
261 * @param {function(devtools.profiler.CallTree.Node)} f Visitor function.
263 devtools.profiler.Profile.prototype.traverseTopDownTree = function(f) {
271 * @param {function(devtools.profiler.CallTree.Node)} f Visitor function.
273 devtools.profiler.Profile.prototype.traverseBottomUpTree = function(f) {
284 devtools.profiler.Profile.prototype.getTopDownProfile = function(opt_label) {
295 devtools.profiler.Profile.prototype.getBottomUpProfile = function(opt_label) {
303 * @param {devtools.profiler.Profile.CallTree} tree Call tree.
306 devtools.profiler.Profile.prototype.getTreeProfile_ = function(tree, opt_label) {
324 devtools.profiler.Profile.prototype.getFlatProfile = function(opt_label) {
325 var counters = new devtools.profiler.CallTree();
326 var rootLabel = opt_label || devtools.profiler.CallTree.ROOT_NODE_LABEL;
381 devtools.profiler.Profile.DynamicCodeEntry = function(size, type, name) {
382 devtools.profiler.CodeMap.CodeEntry.call(this, size, name);
390 devtools.profiler.Profile.DynamicCodeEntry.prototype.getName = function() {
405 devtools.profiler.Profile.DynamicCodeEntry.prototype.getRawName = function() {
410 devtools.profiler.Profile.DynamicCodeEntry.prototype.isJSFunction = function() {
422 devtools.profiler.CallTree = function() {
423 this.root_ = new devtools.profiler.CallTree.Node(
424 devtools.profiler.CallTree.ROOT_NODE_LABEL);
431 devtools.profiler.CallTree.ROOT_NODE_LABEL = '';
437 devtools.profiler.CallTree.prototype.totalsComputed_ = false;
443 devtools.profiler.CallTree.prototype.getRoot = function() {
453 devtools.profiler.CallTree.prototype.addPath = function(path) {
473 devtools.profiler.CallTree.prototype.findOrAddChild = function(label) {
494 devtools.profiler.CallTree.prototype.cloneSubtree = function(label) {
495 var subTree = new devtools.profiler.CallTree();
511 devtools.profiler.CallTree.prototype.computeTotalWeights = function() {
532 * @param {function(devtools.profiler.CallTree.Node, *)} f Visitor function.
535 devtools.profiler.CallTree.prototype.traverse = function(f) {
553 * @param {function(devtools.profiler.CallTree.Node)} enter A function called
555 * @param {function(devtools.profiler.CallTree.Node)} exit A function called
558 devtools.profiler.CallTree.prototype.traverseInDepth = function(enter, exit) {
572 * @param {devtools.profiler.CallTree.Node} opt_parent Node parent.
574 devtools.profiler.CallTree.Node = function(label, opt_parent) {
586 devtools.profiler.CallTree.Node.prototype.selfWeight = 0;
593 devtools.profiler.CallTree.Node.prototype.totalWeight = 0;
601 devtools.profiler.CallTree.Node.prototype.addChild = function(label) {
602 var child = new devtools.profiler.CallTree.Node(label, this);
611 devtools.profiler.CallTree.Node.prototype.computeTotalWeight =
623 devtools.profiler.CallTree.Node.prototype.exportChildren = function() {
635 devtools.profiler.CallTree.Node.prototype.findChild = function(label) {
646 devtools.profiler.CallTree.Node.prototype.findOrAddChild = function(label) {
654 * @param {function(devtools.profiler.CallTree.Node)} f Visitor function.
656 devtools.profiler.CallTree.Node.prototype.forEachChild = function(f) {
666 * @param {function(devtools.profiler.CallTree.Node)} f Visitor function.
668 devtools.profiler.CallTree.Node.prototype.walkUpToRoot = function(f) {
679 * @param {function(devtools.profiler.CallTree.Node)} opt_f Visitor function.
681 devtools.profiler.CallTree.Node.prototype.descendToChild = function(