OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <stdlib.h> | 8 #include <stdlib.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/debug/leak_annotations.h" | 11 #include "base/debug/leak_annotations.h" |
12 #include "base/format_macros.h" | 12 #include "base/format_macros.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/port.h" |
14 #include "base/process_util.h" | 15 #include "base/process_util.h" |
15 #include "base/profiler/alternate_timer.h" | 16 #include "base/profiler/alternate_timer.h" |
16 #include "base/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
17 #include "base/third_party/valgrind/memcheck.h" | 18 #include "base/third_party/valgrind/memcheck.h" |
18 #include "base/threading/thread_restrictions.h" | 19 #include "base/threading/thread_restrictions.h" |
19 #include "base/port.h" | |
20 | 20 |
21 using base::TimeDelta; | 21 using base::TimeDelta; |
22 | 22 |
23 namespace tracked_objects { | 23 namespace tracked_objects { |
24 | 24 |
25 namespace { | 25 namespace { |
26 // Flag to compile out almost all of the task tracking code. | 26 // Flag to compile out almost all of the task tracking code. |
27 const bool kTrackAllTaskObjects = true; | 27 const bool kTrackAllTaskObjects = true; |
28 | 28 |
29 // TODO(jar): Evaluate the perf impact of enabling this. If the perf impact is | 29 // TODO(jar): Evaluate the perf impact of enabling this. If the perf impact is |
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 : process_id(base::GetCurrentProcId()) { | 870 : process_id(base::GetCurrentProcId()) { |
871 #else | 871 #else |
872 : process_id(0) { | 872 : process_id(0) { |
873 #endif | 873 #endif |
874 } | 874 } |
875 | 875 |
876 ProcessDataSnapshot::~ProcessDataSnapshot() { | 876 ProcessDataSnapshot::~ProcessDataSnapshot() { |
877 } | 877 } |
878 | 878 |
879 } // namespace tracked_objects | 879 } // namespace tracked_objects |
OLD | NEW |