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

Unified Diff: third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.h

Issue 2890363003: Enable sharding of AllocationRegister on desktop. (Closed)
Patch Set: comments from primiano, thakis. Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.h
diff --git a/third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.h b/third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.h
index b1c5ca473f0fe2c53994e71f36f4cc3138c13fbe..f8e699acd3d5506dfce30801d193f1beb182f30a 100644
--- a/third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.h
+++ b/third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.h
@@ -6,16 +6,15 @@
#define BlinkGCMemoryDumpProvider_h
#include "base/trace_event/memory_dump_provider.h"
+#include "base/trace_event/sharded_allocation_register.h"
#include "platform/PlatformExport.h"
#include "platform/heap/BlinkGC.h"
#include "platform/wtf/Allocator.h"
-#include "platform/wtf/ThreadingPrimitives.h"
#include "platform/wtf/text/WTFString.h"
namespace base {
namespace trace_event {
-class AllocationRegister;
class MemoryAllocatorDump;
} // namespace trace_event
@@ -57,11 +56,9 @@ class PLATFORM_EXPORT BlinkGCMemoryDumpProvider final
private:
BlinkGCMemoryDumpProvider();
- Mutex allocation_register_mutex_;
- std::unique_ptr<base::trace_event::AllocationRegister> allocation_register_;
+ base::trace_event::ShardedAllocationRegister allocation_register_;
std::unique_ptr<base::trace_event::ProcessMemoryDump>
current_process_memory_dump_;
- bool is_heap_profiling_enabled_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698