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 <stddef.h> |
| 6 #include <string> |
6 | 7 |
7 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
| 9 #include "base/time.h" |
| 10 #include "base/tracked.h" |
8 #include "base/tracked_objects.h" | 11 #include "base/tracked_objects.h" |
9 | 12 |
10 using base::TimeTicks; | 13 using base::TimeTicks; |
11 | 14 |
12 namespace tracked_objects { | 15 namespace tracked_objects { |
13 | 16 |
14 //------------------------------------------------------------------------------ | 17 //------------------------------------------------------------------------------ |
15 | 18 |
16 Location::Location(const char* function_name, const char* file_name, | 19 Location::Location(const char* function_name, const char* file_name, |
17 int line_number) | 20 int line_number) |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 tracked_birth_time_ = TimeTicks::Now(); | 111 tracked_birth_time_ = TimeTicks::Now(); |
109 } | 112 } |
110 | 113 |
111 bool Tracked::MissingBirthplace() const { | 114 bool Tracked::MissingBirthplace() const { |
112 return -1 == tracked_births_->location().line_number(); | 115 return -1 == tracked_births_->location().line_number(); |
113 } | 116 } |
114 | 117 |
115 #endif // NDEBUG | 118 #endif // NDEBUG |
116 | 119 |
117 } // namespace tracked_objects | 120 } // namespace tracked_objects |
OLD | NEW |