OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/tracing/process_metrics_memory_dump_provider.h" | 5 #include "components/tracing/common/process_metrics_memory_dump_provider.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 | 11 |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/files/scoped_file.h" | 13 #include "base/files/scoped_file.h" |
14 #include "base/format_macros.h" | 14 #include "base/format_macros.h" |
15 #include "base/lazy_instance.h" | 15 #include "base/lazy_instance.h" |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 | 305 |
306 pmd->process_totals()->set_resident_set_bytes(rss_bytes); | 306 pmd->process_totals()->set_resident_set_bytes(rss_bytes); |
307 pmd->set_has_process_totals(); | 307 pmd->set_has_process_totals(); |
308 pmd->process_totals()->set_peak_resident_set_bytes(peak_rss_bytes); | 308 pmd->process_totals()->set_peak_resident_set_bytes(peak_rss_bytes); |
309 | 309 |
310 // Returns true even if other metrics failed, since rss is reported. | 310 // Returns true even if other metrics failed, since rss is reported. |
311 return true; | 311 return true; |
312 } | 312 } |
313 | 313 |
314 } // namespace tracing | 314 } // namespace tracing |
OLD | NEW |