Home | History | Annotate | Download | only in tools

Lines Matching refs:Profile

30  * Creates a profile object for processing profiling-related events
35 function Profile() {
49 Profile.prototype.skipThisFunction = function(name) {
60 Profile.Operation = {
72 Profile.CodeState = {
82 * See the Profile.Operation enum for the list of
91 Profile.prototype.handleUnknownCode = function(
103 Profile.prototype.addLibrary = function(
119 Profile.prototype.addStaticCode = function(
136 Profile.prototype.addCode = function(
138 var entry = new Profile.DynamicCodeEntry(size, type, name);
152 * @param {Profile.CodeState} state Optimization state.
154 Profile.prototype.addFuncCode = function(
160 func = new Profile.FunctionEntry(name);
173 entry = new Profile.DynamicFuncCodeEntry(size, type, func, state);
186 Profile.prototype.moveCode = function(from, to) {
190 this.handleUnknownCode(Profile.Operation.MOVE, from);
200 Profile.prototype.deleteCode = function(start) {
204 this.handleUnknownCode(Profile.Operation.DELETE, start);
215 Profile.prototype.moveFunc = function(from, to) {
227 Profile.prototype.findEntry = function(addr) {
238 Profile.prototype.recordTick = function(stack) {
252 Profile.prototype.resolveAndFilterFuncs_ = function(stack) {
270 this.handleUnknownCode(Profile.Operation.TICK, stack[i], i);
293 Profile.prototype.traverseTopDownTree = function(f) {
303 Profile.prototype.traverseBottomUpTree = function(f) {
309 * Calculates a top down profile for a node with the specified label.
314 Profile.prototype.getTopDownProfile = function(opt_label) {
320 * Calculates a bottom up profile for a node with the specified label.
325 Profile.prototype.getBottomUpProfile = function(opt_label) {
331 * Helper function for calculating a tree profile.
333 * @param {Profile.CallTree} tree Call tree.
336 Profile.prototype.getTreeProfile_ = function(tree, opt_label) {
349 * Calculates a flat profile of callees starting from a node with
354 Profile.prototype.getFlatProfile = function(opt_label) {
390 // If we have created a flat profile for the whole program, we don't
403 Profile.CEntryNode = function(name, ticks) {
409 Profile.prototype.getCEntryProfile = function() {
410 var result = [new Profile.CEntryNode("TOTAL", 0)];
415 result.push(new Profile.CEntryNode(f, ticks));
428 Profile.prototype.cleanUpFuncEntries = function() {
432 if (entries[i][1].constructor === Profile.FunctionEntry) {
442 if (entries[i][1].constructor === Profile.FunctionEntry &&
458 Profile.DynamicCodeEntry = function(size, type, name) {
466 Profile.DynamicCodeEntry.prototype.getName = function() {
474 Profile.DynamicCodeEntry.prototype.getRawName = function() {
479 Profile.DynamicCodeEntry.prototype.isJSFunction = function() {
484 Profile.DynamicCodeEntry.prototype.toString = function() {
494 * @param {Profile.FunctionEntry} func Shared function entry.
495 * @param {Profile.CodeState} state Code optimization state.
498 Profile.DynamicFuncCodeEntry = function(size, type, func, state) {
504 Profile.DynamicFuncCodeEntry.STATE_PREFIX = ["", "~", "*"];
509 Profile.DynamicFuncCodeEntry.prototype.getName = function() {
511 return this.type + ': ' + Profile.DynamicFuncCodeEntry.STATE_PREFIX[this.state] + name;
518 Profile.DynamicFuncCodeEntry.prototype.getRawName = function() {
523 Profile.DynamicFuncCodeEntry.prototype.isJSFunction = function() {
528 Profile.DynamicFuncCodeEntry.prototype.toString = function() {
539 Profile.FunctionEntry = function(name) {
547 Profile.FunctionEntry.prototype.getName = function() {
558 Profile.FunctionEntry.prototype.toString = CodeMap.CodeEntry.prototype.toString;