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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 s_markedObjectSizeAtLastCompleteSweep = 0; | 162 s_markedObjectSizeAtLastCompleteSweep = 0; |
163 s_wrapperCount = 0; | 163 s_wrapperCount = 0; |
164 s_wrapperCountAtLastGC = 0; | 164 s_wrapperCountAtLastGC = 0; |
165 s_collectedWrapperCount = 0; | 165 s_collectedWrapperCount = 0; |
166 s_partitionAllocSizeAtLastGC = WTF::Partitions::totalSizeOfCommittedPages(); | 166 s_partitionAllocSizeAtLastGC = WTF::Partitions::totalSizeOfCommittedPages(); |
167 s_estimatedMarkingTimePerByte = 0.0; | 167 s_estimatedMarkingTimePerByte = 0.0; |
168 | 168 |
169 GCInfoTable::init(); | 169 GCInfoTable::init(); |
170 | 170 |
171 if (Platform::current() && Platform::current()->currentThread()) | 171 if (Platform::current() && Platform::current()->currentThread()) |
172 Platform::current()->registerMemoryDumpProvider(BlinkGCMemoryDumpProvide
r::instance()); | 172 Platform::current()->registerMemoryDumpProvider(BlinkGCMemoryDumpProvide
r::instance(), "BlinkGC"); |
173 } | 173 } |
174 | 174 |
175 void Heap::shutdown() | 175 void Heap::shutdown() |
176 { | 176 { |
177 if (Platform::current() && Platform::current()->currentThread()) | 177 if (Platform::current() && Platform::current()->currentThread()) |
178 Platform::current()->unregisterMemoryDumpProvider(BlinkGCMemoryDumpProvi
der::instance()); | 178 Platform::current()->unregisterMemoryDumpProvider(BlinkGCMemoryDumpProvi
der::instance()); |
179 s_shutdownCalled = true; | 179 s_shutdownCalled = true; |
180 ThreadState::shutdownHeapIfNecessary(); | 180 ThreadState::shutdownHeapIfNecessary(); |
181 } | 181 } |
182 | 182 |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 size_t Heap::s_objectSizeAtLastGC = 0; | 746 size_t Heap::s_objectSizeAtLastGC = 0; |
747 size_t Heap::s_markedObjectSize = 0; | 747 size_t Heap::s_markedObjectSize = 0; |
748 size_t Heap::s_markedObjectSizeAtLastCompleteSweep = 0; | 748 size_t Heap::s_markedObjectSizeAtLastCompleteSweep = 0; |
749 size_t Heap::s_wrapperCount = 0; | 749 size_t Heap::s_wrapperCount = 0; |
750 size_t Heap::s_wrapperCountAtLastGC = 0; | 750 size_t Heap::s_wrapperCountAtLastGC = 0; |
751 size_t Heap::s_collectedWrapperCount = 0; | 751 size_t Heap::s_collectedWrapperCount = 0; |
752 size_t Heap::s_partitionAllocSizeAtLastGC = 0; | 752 size_t Heap::s_partitionAllocSizeAtLastGC = 0; |
753 double Heap::s_estimatedMarkingTimePerByte = 0.0; | 753 double Heap::s_estimatedMarkingTimePerByte = 0.0; |
754 | 754 |
755 } // namespace blink | 755 } // namespace blink |
OLD | NEW |