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_objects.h" | 5 #include "base/tracked_objects.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 | 8 |
| 9 #include "base/message_loop.h" |
9 #include "base/string_util.h" | 10 #include "base/string_util.h" |
10 | 11 |
11 using base::TimeDelta; | 12 using base::TimeDelta; |
12 | 13 |
13 namespace tracked_objects { | 14 namespace tracked_objects { |
14 | 15 |
15 // A TLS slot to the TrackRegistry for the current thread. | 16 // A TLS slot to the TrackRegistry for the current thread. |
16 // static | 17 // static |
17 TLSSlot ThreadData::tls_index_(base::LINKER_INITIALIZED); | 18 TLSSlot ThreadData::tls_index_(base::LINKER_INITIALIZED); |
18 | 19 |
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 (combined_selectors_ & BIRTH_THREAD) ? "*" : | 898 (combined_selectors_ & BIRTH_THREAD) ? "*" : |
898 sample.birth().birth_thread()->ThreadName().c_str(), | 899 sample.birth().birth_thread()->ThreadName().c_str(), |
899 (combined_selectors_ & DEATH_THREAD) ? "*" : | 900 (combined_selectors_ & DEATH_THREAD) ? "*" : |
900 sample.DeathThreadName().c_str()); | 901 sample.DeathThreadName().c_str()); |
901 sample.birth().location().Write(!(combined_selectors_ & BIRTH_FILE), | 902 sample.birth().location().Write(!(combined_selectors_ & BIRTH_FILE), |
902 !(combined_selectors_ & BIRTH_FUNCTION), | 903 !(combined_selectors_ & BIRTH_FUNCTION), |
903 output); | 904 output); |
904 } | 905 } |
905 | 906 |
906 } // namespace tracked_objects | 907 } // namespace tracked_objects |
OLD | NEW |