| 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/TracedValue.h" | 5 #include "platform/TracedValue.h" |
| 6 | 6 |
| 7 #include "base/trace_event/trace_event_argument.h" | 7 #include "base/trace_event/trace_event_argument.h" |
| 8 #include "wtf/text/StringUTF8Adaptor.h" | 8 #include "wtf/text/StringUTF8Adaptor.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 void TracedValue::beginDictionary() | 88 void TracedValue::beginDictionary() |
| 89 { | 89 { |
| 90 m_tracedValue->BeginDictionary(); | 90 m_tracedValue->BeginDictionary(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 void TracedValue::endArray() | 93 void TracedValue::endArray() |
| 94 { | 94 { |
| 95 m_tracedValue->EndArray(); | 95 m_tracedValue->EndArray(); |
| 96 } | 96 } |
| 97 | 97 |
| 98 String TracedValue::asTraceFormat() const | 98 String TracedValue::toString() const |
| 99 { | 99 { |
| 100 std::string out; | 100 std::string out; |
| 101 m_tracedValue->AppendAsTraceFormat(&out); | 101 m_tracedValue->AppendAsTraceFormat(&out); |
| 102 return String::fromUTF8(out.c_str()); | 102 return String::fromUTF8(out.c_str()); |
| 103 } | 103 } |
| 104 | 104 |
| 105 void TracedValue::estimateTraceMemoryOverhead(base::trace_event::TraceEventMemor
yOverhead* overhead) | |
| 106 { | |
| 107 m_tracedValue->EstimateTraceMemoryOverhead(overhead); | |
| 108 } | |
| 109 | |
| 110 } // namespace blink | 105 } // namespace blink |
| OLD | NEW |