| 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 "base/trace_event/process_memory_totals.h" | 5 #include "base/trace_event/process_memory_totals.h" |
| 6 | 6 |
| 7 #include "base/format_macros.h" |
| 8 #include "base/strings/stringprintf.h" |
| 7 #include "base/trace_event/trace_event_argument.h" | 9 #include "base/trace_event/trace_event_argument.h" |
| 8 | 10 |
| 9 namespace base { | 11 namespace base { |
| 10 namespace trace_event { | 12 namespace trace_event { |
| 11 | 13 |
| 12 void ProcessMemoryTotals::AsValueInto(TracedValue* value) const { | 14 void ProcessMemoryTotals::AsValueInto(TracedValue* value) const { |
| 13 value->SetDouble("resident_set_bytes", resident_set_bytes_); | 15 value->SetString("resident_set_bytes", |
| 16 StringPrintf("%" PRIx64, resident_set_bytes_)); |
| 14 } | 17 } |
| 15 | 18 |
| 16 } // namespace trace_event | 19 } // namespace trace_event |
| 17 } // namespace base | 20 } // namespace base |
| OLD | NEW |