[heap profiler] Replace SharedMemoryBuffer with mojo::BigString
BUG=923459
Change-Id: I008e2aa9fea0d5d7d674cb72e141d6d949b463db
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1575734
Reviewed-by: Tom Sepez <[email protected]>
Reviewed-by: Primiano Tucci <[email protected]>
Reviewed-by: Dmitry Gozman <[email protected]>
Reviewed-by: Erik Chen <[email protected]>
Commit-Queue: Alexei Filippov <[email protected]>
Cr-Commit-Position: refs/heads/master@{#654237}
diff --git a/components/services/heap_profiling/connection_manager.h b/components/services/heap_profiling/connection_manager.h
index 01d65b47..cb576e9 100644
--- a/components/services/heap_profiling/connection_manager.h
+++ b/components/services/heap_profiling/connection_manager.h
@@ -24,6 +24,8 @@
namespace heap_profiling {
+struct ExportParams;
+
using VmRegions =
base::flat_map<base::ProcessId,
std::vector<memory_instrumentation::mojom::VmRegionPtr>>;
@@ -73,15 +75,9 @@
uint32_t sampling_rate,
mojom::HeapProfilePtr profile);
- void DoDumpOneProcessForTracing(
- scoped_refptr<DumpProcessesForTracingTracking> tracking,
- base::ProcessId pid,
- mojom::ProcessType process_type,
- bool strip_path_from_mapped_files,
- bool success,
- AllocationMap counts,
- ContextMap context,
- AddressToStringMap mapped_strings);
+ bool ConvertProfileToExportParams(mojom::HeapProfilePtr profile,
+ uint32_t sampling_rate,
+ ExportParams* out_params);
// Notification that a connection is complete. Unlike OnNewConnection which
// is signaled by the pipe server, this is signaled by the allocation tracker