OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/tracked.h" | 5 #include "base/tracked.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/tracked_objects.h" | 8 #include "base/tracked_objects.h" |
9 | 9 |
| 10 using base::Time; |
| 11 |
10 namespace tracked_objects { | 12 namespace tracked_objects { |
11 | 13 |
12 //------------------------------------------------------------------------------ | 14 //------------------------------------------------------------------------------ |
13 void Location::Write(bool display_filename, bool display_function_name, | 15 void Location::Write(bool display_filename, bool display_function_name, |
14 std::string* output) const { | 16 std::string* output) const { |
15 StringAppendF(output, "%s[%d] ", | 17 StringAppendF(output, "%s[%d] ", |
16 display_filename ? file_name_ : "line", | 18 display_filename ? file_name_ : "line", |
17 line_number_); | 19 line_number_); |
18 | 20 |
19 if (display_function_name) { | 21 if (display_function_name) { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 87 |
86 bool Tracked::MissingBirthplace() const { | 88 bool Tracked::MissingBirthplace() const { |
87 return -1 == tracked_births_->location().line_number(); | 89 return -1 == tracked_births_->location().line_number(); |
88 } | 90 } |
89 | 91 |
90 #endif // NDEBUG | 92 #endif // NDEBUG |
91 | 93 |
92 } // namespace tracked_objects | 94 } // namespace tracked_objects |
93 | 95 |
94 | 96 |
OLD | NEW |