Lines Matching refs:function
31 * and calculating function execution times.
35 function Profile() {
43 * Returns whether a function with the specified name must be skipped.
46 * @param {string} name Function name.
48 Profile.prototype.skipThisFunction = function(name) {
79 * Called whenever the specified operation has failed finding a function
90 Profile.prototype.handleUnknownCode = function(
102 Profile.prototype.addLibrary = function(
118 Profile.prototype.addStaticCode = function(
135 Profile.prototype.addCode = function(
150 * @param {number} funcAddr Shared function object address.
153 Profile.prototype.addFuncCode = function(
162 // Function object has been overwritten with a new one.
185 Profile.prototype.moveCode = function(from, to) {
199 Profile.prototype.deleteCode = function(start) {
214 Profile.prototype.moveFunc = function(from, to) {
226 Profile.prototype.findEntry = function(addr) {
237 Profile.prototype.recordTick = function(stack) {
246 * Translates addresses into function names and filters unneeded
251 Profile.prototype.resolveAndFilterFuncs_ = function(stack) {
272 * @param {function(CallTree.Node)} f Visitor function.
274 Profile.prototype.traverseTopDownTree = function(f) {
282 * @param {function(CallTree.Node)} f Visitor function.
284 Profile.prototype.traverseBottomUpTree = function(f) {
295 Profile.prototype.getTopDownProfile = function(opt_label) {
306 Profile.prototype.getBottomUpProfile = function(opt_label) {
312 * Helper function for calculating a tree profile.
317 Profile.prototype.getTreeProfile_ = function(tree, opt_label) {
335 Profile.prototype.getFlatProfile = function(opt_label) {
344 function onEnter(node) {
363 function onExit(node) {
385 * Cleans up function entries that are not referenced by code entries.
387 Profile.prototype.cleanUpFuncEntries = function() {
414 * @param {string} name Function name.
417 Profile.DynamicCodeEntry = function(size, type, name) {
426 Profile.DynamicCodeEntry.prototype.getName = function() {
434 Profile.DynamicCodeEntry.prototype.getRawName = function() {
439 Profile.DynamicCodeEntry.prototype.isJSFunction = function() {
444 Profile.DynamicCodeEntry.prototype.toString = function() {
454 * @param {Profile.FunctionEntry} func Shared function entry.
458 Profile.DynamicFuncCodeEntry = function(size, type, func, state) {
470 Profile.DynamicFuncCodeEntry.prototype.getName = function() {
479 Profile.DynamicFuncCodeEntry.prototype.getRawName = function() {
484 Profile.DynamicFuncCodeEntry.prototype.isJSFunction = function() {
489 Profile.DynamicFuncCodeEntry.prototype.toString = function() {
495 * Creates a shared function object entry.
497 * @param {string} name Function name.
500 Profile.FunctionEntry = function(name) {
508 Profile.FunctionEntry.prototype.getName = function() {
513 // An anonymous function with location: " aaa.js:10".
526 function CallTree() {
547 CallTree.prototype.getRoot = function() {
557 CallTree.prototype.addPath = function(path) {
577 CallTree.prototype.findOrAddChild = function(label) {
598 CallTree.prototype.cloneSubtree = function(label) {
600 this.traverse(function(node, parent) {
615 CallTree.prototype.computeTotalWeights = function() {
625 * Traverses the call graph in preorder. This function can be used for
629 * callTree.traverse(function(node, parentClone) {
636 * @param {function(CallTree.Node, *)} f Visitor function.
639 CallTree.prototype.traverse = function(f) {
647 node.forEachChild(function (child) {
657 * @param {function(CallTree.Node)} enter A function called
659 * @param {function(CallTree.Node)} exit A function called
662 CallTree.prototype.traverseInDepth = function(enter, exit) {
663 function traverse(node) {
678 CallTree.Node = function(label, opt_parent) {
705 CallTree.Node.prototype.addChild = function(label) {
716 function() {
718 this.forEachChild(function(child) {
727 CallTree.Node.prototype.exportChildren = function() {
729 this.forEachChild(function (node) { result.push(node); });
739 CallTree.Node.prototype.findChild = function(label) {
750 CallTree.Node.prototype.findOrAddChild = function(label) {
756 * Calls the specified function for every child.
758 * @param {function(CallTree.Node)} f Visitor function.
760 CallTree.Node.prototype.forEachChild = function(f) {
770 * @param {function(CallTree.Node)} f Visitor function.
772 CallTree.Node.prototype.walkUpToRoot = function(f) {
783 * @param {function(CallTree.Node)} opt_f Visitor function.
785 CallTree.Node.prototype.descendToChild = function(