| Index: tools/profile.js
|
| ===================================================================
|
| --- tools/profile.js (revision 16936)
|
| +++ tools/profile.js (working copy)
|
| @@ -36,6 +36,7 @@
|
| this.codeMap_ = new CodeMap();
|
| this.topDownTree_ = new CallTree();
|
| this.bottomUpTree_ = new CallTree();
|
| + this.generatedCode = 0;
|
| };
|
|
|
|
|
| @@ -134,6 +135,7 @@
|
| */
|
| Profile.prototype.addCode = function(
|
| type, name, start, size) {
|
| + this.generatedCode += size;
|
| var entry = new Profile.DynamicCodeEntry(size, type, name);
|
| this.codeMap_.addCode(start, entry);
|
| return entry;
|
| @@ -154,6 +156,7 @@
|
| type, name, start, size, funcAddr, state) {
|
| // As code and functions are in the same address space,
|
| // it is safe to put them in a single code map.
|
| + this.generatedCode += size;
|
| var func = this.codeMap_.findDynamicEntryByStartAddress(funcAddr);
|
| if (!func) {
|
| func = new Profile.FunctionEntry(name);
|
|
|