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/graphics_memory_dump_provider_android.h" | 5 #include "components/tracing/graphics_memory_dump_provider_android.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <stdint.h> |
| 9 #include <string.h> |
8 #include <sys/socket.h> | 10 #include <sys/socket.h> |
9 #include <sys/time.h> | 11 #include <sys/time.h> |
10 #include <sys/types.h> | 12 #include <sys/types.h> |
11 #include <sys/un.h> | 13 #include <sys/un.h> |
12 | 14 |
13 #include "base/files/scoped_file.h" | 15 #include "base/files/scoped_file.h" |
| 16 #include "base/macros.h" |
14 #include "base/posix/eintr_wrapper.h" | 17 #include "base/posix/eintr_wrapper.h" |
15 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
16 #include "base/strings/string_piece.h" | 19 #include "base/strings/string_piece.h" |
17 #include "base/strings/string_tokenizer.h" | 20 #include "base/strings/string_tokenizer.h" |
18 #include "base/trace_event/process_memory_dump.h" | 21 #include "base/trace_event/process_memory_dump.h" |
19 #include "base/trace_event/process_memory_totals.h" | 22 #include "base/trace_event/process_memory_totals.h" |
20 | 23 |
21 using base::trace_event::MemoryAllocatorDump; | 24 using base::trace_event::MemoryAllocatorDump; |
22 | 25 |
23 namespace tracing { | 26 namespace tracing { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 mad->AddScalar(long_lived_column_name->c_str(), | 134 mad->AddScalar(long_lived_column_name->c_str(), |
132 MemoryAllocatorDump::kUnitsBytes, value); | 135 MemoryAllocatorDump::kUnitsBytes, value); |
133 } | 136 } |
134 } | 137 } |
135 | 138 |
136 GraphicsMemoryDumpProvider::GraphicsMemoryDumpProvider() {} | 139 GraphicsMemoryDumpProvider::GraphicsMemoryDumpProvider() {} |
137 | 140 |
138 GraphicsMemoryDumpProvider::~GraphicsMemoryDumpProvider() {} | 141 GraphicsMemoryDumpProvider::~GraphicsMemoryDumpProvider() {} |
139 | 142 |
140 } // namespace tracing | 143 } // namespace tracing |
OLD | NEW |