Chromium Code Reviews| Index: components/tracing/common/process_metrics_memory_dump_provider.h |
| diff --git a/components/tracing/common/process_metrics_memory_dump_provider.h b/components/tracing/common/process_metrics_memory_dump_provider.h |
| index b47bdec142b7145feaf31af18dd4a7ecaad61010..1be613704bf563a94fba00700d3a0320be3a0bdd 100644 |
| --- a/components/tracing/common/process_metrics_memory_dump_provider.h |
| +++ b/components/tracing/common/process_metrics_memory_dump_provider.h |
| @@ -33,11 +33,15 @@ class TRACING_EXPORT ProcessMetricsMemoryDumpProvider |
| // MemoryDumpProvider implementation. |
| bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args, |
| base::trace_event::ProcessMemoryDump* pmd) override; |
| + void PollFastMemoryTotal(uint64_t* memory_total) override; |
| + void SetFastMemoryPollingEnabled(bool enabled) override; |
| private: |
| FRIEND_TEST_ALL_PREFIXES(ProcessMetricsMemoryDumpProviderTest, |
| ParseProcSmaps); |
| FRIEND_TEST_ALL_PREFIXES(ProcessMetricsMemoryDumpProviderTest, DumpRSS); |
| + FRIEND_TEST_ALL_PREFIXES(ProcessMetricsMemoryDumpProviderTest, |
| + TestPollFastMemoryTotal); |
| ProcessMetricsMemoryDumpProvider(base::ProcessId process); |
| @@ -50,6 +54,9 @@ class TRACING_EXPORT ProcessMetricsMemoryDumpProvider |
| #if defined(OS_LINUX) || defined(OS_ANDROID) |
| static FILE* proc_smaps_for_testing; |
| + static int fast_polling_statm_fd_for_testing; |
| + |
| + int fast_polling_statm_fd_; |
|
Primiano Tucci (use gerrit)
2016/12/16 11:50:40
I'm sorry I realized only now. This should be a ba
ssid
2016/12/16 19:48:44
Done.
|
| #endif |
| base::ProcessId process_; |