OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
8 #include "base/process/process_handle.h" | 8 #include "base/process/process_handle.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/tracked_objects.h" | 10 #include "base/tracked_objects.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 "{" | 105 "{" |
106 "\"list\":[{" | 106 "\"list\":[{" |
107 "\"birth_location\":{" | 107 "\"birth_location\":{" |
108 "\"file_name\":\"path/to/foo.cc\"," | 108 "\"file_name\":\"path/to/foo.cc\"," |
109 "\"function_name\":\"WhizBang\"," | 109 "\"function_name\":\"WhizBang\"," |
110 "\"line_number\":101" | 110 "\"line_number\":101" |
111 "}," | 111 "}," |
112 "\"birth_thread\":\"CrBrowserMain\"," | 112 "\"birth_thread\":\"CrBrowserMain\"," |
113 "\"death_data\":{" | 113 "\"death_data\":{" |
114 "\"alloc_ops\":127," | 114 "\"alloc_ops\":127," |
115 "\"alloc_overhead_bytes\":201," | 115 "\"alloc_overhead_bytes\":201.0," |
116 "\"allocated_bytes\":2013," | 116 "\"allocated_bytes\":2013.0," |
117 "\"count\":37," | 117 "\"count\":37," |
118 "\"free_ops\":120," | 118 "\"free_ops\":120," |
119 "\"freed_bytes\":1092," | 119 "\"freed_bytes\":1092.0," |
120 "\"max_allocated_bytes\":1500," | 120 "\"max_allocated_bytes\":1500," |
121 "\"queue_ms\":79," | 121 "\"queue_ms\":79," |
122 "\"queue_ms_max\":53," | 122 "\"queue_ms_max\":53," |
123 "\"queue_ms_sample\":13," | 123 "\"queue_ms_sample\":13," |
124 "\"run_ms\":17," | 124 "\"run_ms\":17," |
125 "\"run_ms_max\":5," | 125 "\"run_ms_max\":5," |
126 "\"run_ms_sample\":3" | 126 "\"run_ms_sample\":3" |
127 "}," | 127 "}," |
128 "\"death_thread\":\"WorkerPool/-1340960768\"" | 128 "\"death_thread\":\"WorkerPool/-1340960768\"" |
129 "},{" | 129 "},{" |
130 "\"birth_location\":{" | 130 "\"birth_location\":{" |
131 "\"file_name\":\"path/to/bar.cc\"," | 131 "\"file_name\":\"path/to/bar.cc\"," |
132 "\"function_name\":\"FizzBoom\"," | 132 "\"function_name\":\"FizzBoom\"," |
133 "\"line_number\":433" | 133 "\"line_number\":433" |
134 "}," | 134 "}," |
135 "\"birth_thread\":\"Chrome_IOThread\"," | 135 "\"birth_thread\":\"Chrome_IOThread\"," |
136 "\"death_data\":{" | 136 "\"death_data\":{" |
137 "\"alloc_ops\":1207," | 137 "\"alloc_ops\":1207," |
138 "\"alloc_overhead_bytes\":2001," | 138 "\"alloc_overhead_bytes\":2001.0," |
139 "\"allocated_bytes\":20013," | 139 "\"allocated_bytes\":20013.0," |
140 "\"count\":41," | 140 "\"count\":41," |
141 "\"free_ops\":1200," | 141 "\"free_ops\":1200," |
142 "\"freed_bytes\":10092," | 142 "\"freed_bytes\":10092.0," |
143 "\"max_allocated_bytes\":15000," | 143 "\"max_allocated_bytes\":15000," |
144 "\"queue_ms\":2079," | 144 "\"queue_ms\":2079," |
145 "\"queue_ms_max\":2053," | 145 "\"queue_ms_max\":2053," |
146 "\"queue_ms_sample\":2013," | 146 "\"queue_ms_sample\":2013," |
147 "\"run_ms\":2017," | 147 "\"run_ms\":2017," |
148 "\"run_ms_max\":205," | 148 "\"run_ms_max\":205," |
149 "\"run_ms_sample\":203" | 149 "\"run_ms_sample\":203" |
150 "}," | 150 "}," |
151 "\"death_thread\":\"PAC thread #3\"" | 151 "\"death_thread\":\"PAC thread #3\"" |
152 "}]," | 152 "}]," |
153 "\"process_id\":239," | 153 "\"process_id\":239," |
154 "\"process_type\":\"Tab\"" | 154 "\"process_type\":\"Tab\"" |
155 "}"); | 155 "}"); |
156 } | 156 } |
157 } | 157 } |
OLD | NEW |