Changeset 37747 in webkit for trunk/JavaScriptCore/kjs/StructureID.cpp
- Timestamp:
- Oct 20, 2008, 2:27:44 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/StructureID.cpp
r37684 r37747 58 58 void StructureID::dumpStatistics() 59 59 { 60 unsigned numberLeaf = 0; 60 61 unsigned numberUsingSingleSlot = 0; 62 unsigned numberSingletons = 0; 61 63 62 64 HashSet<StructureID*>::const_iterator end = liveStructureIDSet.end(); 63 65 for (HashSet<StructureID*>::const_iterator it = liveStructureIDSet.begin(); it != end; ++it) { 64 66 StructureID* structureID = *it; 65 if (structureID->m_usingSingleTransitionSlot) 66 ++numberUsingSingleSlot; 67 if (structureID->m_usingSingleTransitionSlot) { 68 if (!structureID->m_transitions.singleTransition) 69 ++numberLeaf; 70 else 71 ++numberUsingSingleSlot; 72 73 if (!structureID->m_previous && !structureID->m_transitions.singleTransition) 74 ++numberSingletons; 75 } 67 76 } 68 77 69 78 printf("Number of live StructureIDs: %d\n", liveStructureIDSet.size()); 70 79 printf("Number of StructureIDs using the single item optimization for transition map: %d\n", numberUsingSingleSlot); 80 printf("Number of StructureIDs that are leaf nodes: %d\n", numberLeaf); 81 printf("Number of StructureIDs that singletons: %d\n", numberSingletons); 71 82 } 72 83 #endif
Note:
See TracChangeset
for help on using the changeset viewer.