Home | History | Annotate | Download | only in tools

Lines Matching refs:function

35 function ViewBuilder(samplingRate) {
47 ViewBuilder.prototype.buildView = function(
52 callTree.traverse(function(node, viewParent) {
81 ViewBuilder.prototype.createView = function(head) {
89 * @param {string} internalFuncName A fully qualified function name.
91 * corresponding function and its descendants (not that depending on
94 * corresponding function only.
98 ViewBuilder.prototype.createViewNode = function(
112 function ProfileView(head) {
118 * Sorts the profile view using the specified sort function.
120 * @param {function(ProfileView.Node,
122 * functions. Must comply with Array.sort sorting function requirements.
124 ProfileView.prototype.sort = function(sortFunc) {
125 this.traverse(function (node) {
134 * @param {function(ProfileView.Node)} f Visitor function.
136 ProfileView.prototype.traverse = function(f) {
149 * a function call.
151 * @param {string} internalFuncName A fully qualified function name.
153 * corresponding function and its descendants (not that depending on
156 * corresponding function only.
160 ProfileView.Node = function(
172 * Returns a share of the function's total time in application's total time.
176 function() { return this.totalTime /
181 * Returns a share of the function's self time in application's total time.
185 function() { return this.selfTime /
190 * Returns a share of the function's total time in its parent's total time.
194 function() { return this.totalTime /
203 ProfileView.Node.prototype.addChild = function(node) {
212 * @param {function(ProfileView.Node,
214 * functions. Must comply with Array.sort sorting function requirements.
216 ProfileView.Node.prototype.sortChildren = function(