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

Unified Diff: base/trace_event/process_memory_dump.h

Issue 1717283003: tracing: Make ConvertableToTraceFormat move-only scoped_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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: base/trace_event/process_memory_dump.h
diff --git a/base/trace_event/process_memory_dump.h b/base/trace_event/process_memory_dump.h
index e38451c4e3d9e747a2d329b21b20ef31afe70e12..e2503c5abe5ace62e39cafdb7f7fbc6576eeab77 100644
--- a/base/trace_event/process_memory_dump.h
+++ b/base/trace_event/process_memory_dump.h
@@ -53,8 +53,7 @@ class BASE_EXPORT ProcessMemoryDump {
using AllocatorDumpsMap =
std::unordered_map<std::string, scoped_ptr<MemoryAllocatorDump>>;
- using HeapDumpsMap =
- std::unordered_map<std::string, scoped_refptr<TracedValue>>;
+ using HeapDumpsMap = std::unordered_map<std::string, scoped_ptr<TracedValue>>;
#if defined(COUNT_RESIDENT_BYTES_SUPPORTED)
// Returns the total bytes resident for a virtual address range, with given
@@ -117,7 +116,7 @@ class BASE_EXPORT ProcessMemoryDump {
// must have the correct format. |trace_event::HeapDumper| will generate such
// a value from a |trace_event::AllocationRegister|.
void AddHeapDump(const std::string& absolute_name,
- scoped_refptr<TracedValue> heap_dump);
+ scoped_ptr<TracedValue> heap_dump);
// Adds an ownership relationship between two MemoryAllocatorDump(s) with the
// semantics: |source| owns |target|, and has the effect of attributing

Powered by Google App Engine
This is Rietveld 408576698