Changeset 39368 in webkit for trunk/JavaScriptCore/bytecode
- Timestamp:
- Dec 17, 2008, 4:00:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/CodeBlock.cpp
r39366 r39368 1094 1094 macro(expressionInfo) \ 1095 1095 macro(lineInfo) \ 1096 macro(getByIdExceptionInfo) \ 1096 1097 macro(pcVector) 1097 1098 … … 1103 1104 macro(immediateSwitchJumpTables) \ 1104 1105 macro(characterSwitchJumpTables) \ 1105 macro(stringSwitchJumpTables) 1106 macro(stringSwitchJumpTables) \ 1107 macro(functionRegisterInfos) 1106 1108 1107 1109 template<typename T> … … 1151 1153 } 1152 1154 1155 size_t totalSize = 0; 1156 1157 #define GET_TOTAL_SIZE(name) totalSize += name##TotalSize; 1158 FOR_EACH_MEMBER_VECTOR(GET_TOTAL_SIZE) 1159 FOR_EACH_MEMBER_VECTOR_RARE_DATA(GET_TOTAL_SIZE) 1160 #undef GET_TOTAL_SIZE 1161 1162 totalSize += symbolTableTotalSize; 1163 totalSize += (liveCodeBlockSet.size() * sizeof(CodeBlock)); 1164 1153 1165 printf("Number of live CodeBlocks: %d\n", liveCodeBlockSet.size()); 1154 1166 printf("Size of a single CodeBlock [sizeof(CodeBlock)]: %zu\n", sizeof(CodeBlock)); 1167 printf("Size of all CodeBlocks: %zu\n", totalSize); 1168 printf("Average size of a CodeBlock: %zu\n", totalSize / liveCodeBlockSet.size()); 1155 1169 1156 1170 printf("Number of CodeBlocks with rare data: %zu\n", hasRareData);
Note:
See TracChangeset
for help on using the changeset viewer.