| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1160 json->setString("name", #HeapType); \ | 1160 json->setString("name", #HeapType); \ |
| 1161 m_heaps[HeapType##HeapIndex]->snapshotFreeList(*json); \ | 1161 m_heaps[HeapType##HeapIndex]->snapshotFreeList(*json); \ |
| 1162 json->endDictionary(); \ | 1162 json->endDictionary(); \ |
| 1163 } | 1163 } |
| 1164 | 1164 |
| 1165 json->beginArray("heaps"); | 1165 json->beginArray("heaps"); |
| 1166 SNAPSHOT_FREE_LIST(NormalPage); | 1166 SNAPSHOT_FREE_LIST(NormalPage); |
| 1167 SNAPSHOT_FREE_LIST(Vector); | 1167 SNAPSHOT_FREE_LIST(Vector); |
| 1168 SNAPSHOT_FREE_LIST(InlineVector); | 1168 SNAPSHOT_FREE_LIST(InlineVector); |
| 1169 SNAPSHOT_FREE_LIST(HashTable); | 1169 SNAPSHOT_FREE_LIST(HashTable); |
| 1170 SNAPSHOT_FREE_LIST(LargeObject); | |
| 1171 FOR_EACH_TYPED_HEAP(SNAPSHOT_FREE_LIST); | 1170 FOR_EACH_TYPED_HEAP(SNAPSHOT_FREE_LIST); |
| 1172 json->endArray(); | 1171 json->endArray(); |
| 1173 | 1172 |
| 1174 #undef SNAPSHOT_FREE_LIST | 1173 #undef SNAPSHOT_FREE_LIST |
| 1175 | 1174 |
| 1176 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID(TRACE_DISABLED_BY_DEFAULT("blink_gc"), "
FreeList", this, json.release()); | 1175 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID(TRACE_DISABLED_BY_DEFAULT("blink_gc"), "
FreeList", this, json.release()); |
| 1177 } | 1176 } |
| 1178 | 1177 |
| 1179 void ThreadState::collectAndReportMarkSweepStats() const | 1178 void ThreadState::collectAndReportMarkSweepStats() const |
| 1180 { | 1179 { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1199 json->beginArray(it->key.ascii().data()); | 1198 json->beginArray(it->key.ascii().data()); |
| 1200 for (size_t age = 0; age <= maxHeapObjectAge; ++age) | 1199 for (size_t age = 0; age <= maxHeapObjectAge; ++age) |
| 1201 json->pushInteger(it->value.ages[age]); | 1200 json->pushInteger(it->value.ages[age]); |
| 1202 json->endArray(); | 1201 json->endArray(); |
| 1203 } | 1202 } |
| 1204 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID(TRACE_DISABLED_BY_DEFAULT("blink_gc"), s
tatsName, this, json.release()); | 1203 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID(TRACE_DISABLED_BY_DEFAULT("blink_gc"), s
tatsName, this, json.release()); |
| 1205 } | 1204 } |
| 1206 #endif | 1205 #endif |
| 1207 | 1206 |
| 1208 } // namespace blink | 1207 } // namespace blink |
| OLD | NEW |