| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "platform/instrumentation/tracing/TracedValue.h" | 5 #include "platform/instrumentation/tracing/TracedValue.h" |
| 6 | 6 |
| 7 #include "wtf/PtrUtil.h" | 7 #include "platform/wtf/PtrUtil.h" |
| 8 #include "wtf/text/StringUTF8Adaptor.h" | 8 #include "platform/wtf/text/StringUTF8Adaptor.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 std::unique_ptr<TracedValue> TracedValue::create() { | 12 std::unique_ptr<TracedValue> TracedValue::create() { |
| 13 return WTF::wrapUnique(new TracedValue()); | 13 return WTF::wrapUnique(new TracedValue()); |
| 14 } | 14 } |
| 15 | 15 |
| 16 TracedValue::TracedValue() {} | 16 TracedValue::TracedValue() {} |
| 17 | 17 |
| 18 TracedValue::~TracedValue() {} | 18 TracedValue::~TracedValue() {} |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 void TracedValue::AppendAsTraceFormat(std::string* out) const { | 82 void TracedValue::AppendAsTraceFormat(std::string* out) const { |
| 83 m_tracedValue.AppendAsTraceFormat(out); | 83 m_tracedValue.AppendAsTraceFormat(out); |
| 84 } | 84 } |
| 85 | 85 |
| 86 void TracedValue::EstimateTraceMemoryOverhead( | 86 void TracedValue::EstimateTraceMemoryOverhead( |
| 87 base::trace_event::TraceEventMemoryOverhead* overhead) { | 87 base::trace_event::TraceEventMemoryOverhead* overhead) { |
| 88 m_tracedValue.EstimateTraceMemoryOverhead(overhead); | 88 m_tracedValue.EstimateTraceMemoryOverhead(overhead); |
| 89 } | 89 } |
| 90 | 90 |
| 91 } // namespace blink | 91 } // namespace blink |
| OLD | NEW |