Chromium Code Reviews| Index: base/trace_event/memory_dump_manager.h |
| diff --git a/base/trace_event/memory_dump_manager.h b/base/trace_event/memory_dump_manager.h |
| index 03192bfa91efd9521ee335755c46a61ec668d278..f5f692bea66684b74e13adb3a3ca6789da5506bd 100644 |
| --- a/base/trace_event/memory_dump_manager.h |
| +++ b/base/trace_event/memory_dump_manager.h |
| @@ -42,7 +42,7 @@ namespace trace_event { |
| class MemoryTracingObserver; |
| class MemoryDumpProvider; |
| -class MemoryDumpSessionState; |
| +class HeapProfilerSerializationState; |
| // This is the interface exposed to the rest of the codebase to deal with |
| // memory tracing. The main entry point for clients is represented by |
| @@ -147,18 +147,15 @@ class BASE_EXPORT MemoryDumpManager { |
| // Enable heap profiling if kEnableHeapProfiling is specified. |
| void EnableHeapProfilingIfNeeded(); |
| - // Returns true if the dump mode is allowed for current tracing session. |
| - bool IsDumpModeAllowed(MemoryDumpLevelOfDetail dump_mode); |
| - |
| // Lets tests see if a dump provider is registered. |
| bool IsDumpProviderRegisteredForTesting(MemoryDumpProvider*); |
| - // Returns the MemoryDumpSessionState object, which is shared by all the |
| - // ProcessMemoryDump and MemoryAllocatorDump instances through all the tracing |
| - // session lifetime. |
| - const scoped_refptr<MemoryDumpSessionState>& session_state_for_testing() |
| - const { |
| - return session_state_; |
| + // Returns the HeapProfilerSerializationState object, which is shared by all |
| + // the ProcessMemoryDump and MemoryAllocatorDump instances through all the |
| + // tracing session lifetime. |
| + const scoped_refptr<HeapProfilerSerializationState>& |
| + heap_profiler_serialization_state_for_testing() const { |
| + return heap_profiler_serialization_state_; |
| } |
| // Returns a unique id for identifying the processes. The id can be |
| @@ -197,7 +194,8 @@ class BASE_EXPORT MemoryDumpManager { |
| ProcessMemoryDumpAsyncState( |
| MemoryDumpRequestArgs req_args, |
| const MemoryDumpProviderInfo::OrderedSet& dump_providers, |
| - scoped_refptr<MemoryDumpSessionState> session_state, |
| + scoped_refptr<HeapProfilerSerializationState> |
| + heap_profiler_serialization_state, |
| ProcessMemoryDumpCallback callback, |
| scoped_refptr<SequencedTaskRunner> dump_thread_task_runner); |
| ~ProcessMemoryDumpAsyncState(); |
| @@ -222,7 +220,8 @@ class BASE_EXPORT MemoryDumpManager { |
| std::vector<scoped_refptr<MemoryDumpProviderInfo>> pending_dump_providers; |
| // The trace-global session state. |
|
Primiano Tucci (use gerrit)
2017/05/05 15:59:23
update this comment (actually just move the one fr
hjd
2017/05/05 16:10:33
Done.
hjd
2017/05/05 16:10:33
Done.
|
| - scoped_refptr<MemoryDumpSessionState> session_state; |
| + scoped_refptr<HeapProfilerSerializationState> |
| + heap_profiler_serialization_state; |
| // Callback passed to the initial call to CreateProcessDump(). |
| ProcessMemoryDumpCallback callback; |
| @@ -293,7 +292,8 @@ class BASE_EXPORT MemoryDumpManager { |
| MemoryDumpProviderInfo::OrderedSet dump_providers_; |
| // Shared among all the PMDs to keep state scoped to the tracing session. |
| - scoped_refptr<MemoryDumpSessionState> session_state_; |
| + scoped_refptr<HeapProfilerSerializationState> |
| + heap_profiler_serialization_state_; |
| std::unique_ptr<MemoryTracingObserver> tracing_observer_; |