Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: third_party/WebKit/Source/platform/heap/Heap.cpp

Issue 1406213005: [tracing] Add names to memory-infra dumpers for debugging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@memory-infra-runtime
Patch Set: Rebase + fix android Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/exported/Platform.cpp ('k') | third_party/WebKit/Source/web/WebKit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698