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 | 9 |
9 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
10 #include "base/message_loop.h" | |
11 #include "base/profiler/alternate_timer.h" | 11 #include "base/profiler/alternate_timer.h" |
12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
13 #include "base/third_party/valgrind/memcheck.h" | 13 #include "base/third_party/valgrind/memcheck.h" |
14 #include "base/threading/thread_restrictions.h" | 14 #include "base/threading/thread_restrictions.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "base/port.h" | 16 #include "base/port.h" |
17 | 17 |
18 using base::TimeDelta; | 18 using base::TimeDelta; |
19 | 19 |
20 namespace tracked_objects { | 20 namespace tracked_objects { |
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
882 ++it) { | 882 ++it) { |
883 base::DictionaryValue* parent_child = new base::DictionaryValue; | 883 base::DictionaryValue* parent_child = new base::DictionaryValue; |
884 it->first->ToValue("parent", parent_child); | 884 it->first->ToValue("parent", parent_child); |
885 it->second->ToValue("child", parent_child); | 885 it->second->ToValue("child", parent_child); |
886 descendants->Append(parent_child); | 886 descendants->Append(parent_child); |
887 } | 887 } |
888 dictionary->Set("descendants", descendants); | 888 dictionary->Set("descendants", descendants); |
889 } | 889 } |
890 | 890 |
891 } // namespace tracked_objects | 891 } // namespace tracked_objects |
OLD | NEW |