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

Side by Side Diff: Source/platform/heap/Heap.h

Issue 1149673002: Adding blink gc memory dump infrastructure for thread specific dumps. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebasing for primiano's future changes. Created 5 years, 7 months 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
« no previous file with comments | « no previous file | Source/platform/heap/Heap.cpp » ('j') | Source/platform/heap/Heap.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 // 673 //
674 // BaseHeap is a parent class of NormalPageHeap and LargeObjectHeap. 674 // BaseHeap is a parent class of NormalPageHeap and LargeObjectHeap.
675 // NormalPageHeap represents a heap that contains NormalPages 675 // NormalPageHeap represents a heap that contains NormalPages
676 // and LargeObjectHeap represents a heap that contains LargeObjectPages. 676 // and LargeObjectHeap represents a heap that contains LargeObjectPages.
677 class PLATFORM_EXPORT BaseHeap { 677 class PLATFORM_EXPORT BaseHeap {
678 public: 678 public:
679 BaseHeap(ThreadState*, int); 679 BaseHeap(ThreadState*, int);
680 virtual ~BaseHeap(); 680 virtual ~BaseHeap();
681 void cleanupPages(); 681 void cleanupPages();
682 682
683 void dumpMemoryInto(WebProcessMemoryDump*, const String* allocatorBaseName);
Primiano Tucci (use gerrit) 2015/05/21 18:43:10 nit: const String& ?
ssid 2015/05/22 13:34:06 Done.
683 #if ENABLE(ASSERT) || ENABLE(GC_PROFILING) 684 #if ENABLE(ASSERT) || ENABLE(GC_PROFILING)
684 BasePage* findPageFromAddress(Address); 685 BasePage* findPageFromAddress(Address);
685 #endif 686 #endif
686 #if ENABLE(GC_PROFILING) 687 #if ENABLE(GC_PROFILING)
687 void snapshot(TracedValue*, ThreadState::SnapshotInfo*); 688 void snapshot(TracedValue*, ThreadState::SnapshotInfo*);
688 virtual void snapshotFreeList(TracedValue&) { }; 689 virtual void snapshotFreeList(TracedValue&) { };
689 690
690 void countMarkedObjects(ClassAgeCountsMap&) const; 691 void countMarkedObjects(ClassAgeCountsMap&) const;
691 void countObjectsToSweep(ClassAgeCountsMap&) const; 692 void countObjectsToSweep(ClassAgeCountsMap&) const;
692 void incrementMarkedObjectsAge(); 693 void incrementMarkedObjectsAge();
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 size_t copySize = previousHeader->payloadSize(); 1239 size_t copySize = previousHeader->payloadSize();
1239 if (copySize > size) 1240 if (copySize > size)
1240 copySize = size; 1241 copySize = size;
1241 memcpy(address, previous, copySize); 1242 memcpy(address, previous, copySize);
1242 return address; 1243 return address;
1243 } 1244 }
1244 1245
1245 } // namespace blink 1246 } // namespace blink
1246 1247
1247 #endif // Heap_h 1248 #endif // Heap_h
OLDNEW
« no previous file with comments | « no previous file | Source/platform/heap/Heap.cpp » ('j') | Source/platform/heap/Heap.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698