OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/trace_event/trace_log.h" | 5 #include "base/trace_event/trace_log.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/base_switches.h" | 12 #include "base/base_switches.h" |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/debug/leak_annotations.h" | 15 #include "base/debug/leak_annotations.h" |
16 #include "base/lazy_instance.h" | 16 #include "base/lazy_instance.h" |
17 #include "base/location.h" | 17 #include "base/location.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/memory/ref_counted_memory.h" | 19 #include "base/memory/ref_counted_memory.h" |
20 #include "base/memory/singleton.h" | 20 #include "base/memory/singleton.h" |
21 #include "base/process/process_metrics.h" | 21 #include "base/process/process_metrics.h" |
22 #include "base/stl_util.h" | 22 #include "base/stl_util.h" |
23 #include "base/strings/string_split.h" | 23 #include "base/strings/string_split.h" |
24 #include "base/strings/string_tokenizer.h" | 24 #include "base/strings/string_tokenizer.h" |
25 #include "base/strings/stringprintf.h" | 25 #include "base/strings/stringprintf.h" |
26 #include "base/sys_info.h" | 26 #include "base/sys_info.h" |
27 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 27 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
28 #include "base/thread_task_runner_handle.h" | |
29 #include "base/threading/platform_thread.h" | 28 #include "base/threading/platform_thread.h" |
30 #include "base/threading/thread_id_name_manager.h" | 29 #include "base/threading/thread_id_name_manager.h" |
| 30 #include "base/threading/thread_task_runner_handle.h" |
31 #include "base/threading/worker_pool.h" | 31 #include "base/threading/worker_pool.h" |
32 #include "base/time/time.h" | 32 #include "base/time/time.h" |
33 #include "base/trace_event/heap_profiler.h" | 33 #include "base/trace_event/heap_profiler.h" |
34 #include "base/trace_event/heap_profiler_allocation_context_tracker.h" | 34 #include "base/trace_event/heap_profiler_allocation_context_tracker.h" |
35 #include "base/trace_event/memory_dump_manager.h" | 35 #include "base/trace_event/memory_dump_manager.h" |
36 #include "base/trace_event/memory_dump_provider.h" | 36 #include "base/trace_event/memory_dump_provider.h" |
37 #include "base/trace_event/process_memory_dump.h" | 37 #include "base/trace_event/process_memory_dump.h" |
38 #include "base/trace_event/trace_buffer.h" | 38 #include "base/trace_event/trace_buffer.h" |
39 #include "base/trace_event/trace_event.h" | 39 #include "base/trace_event/trace_event.h" |
40 #include "base/trace_event/trace_event_synthetic_delay.h" | 40 #include "base/trace_event/trace_event_synthetic_delay.h" |
(...skipping 1703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1744 } | 1744 } |
1745 | 1745 |
1746 ScopedTraceBinaryEfficient::~ScopedTraceBinaryEfficient() { | 1746 ScopedTraceBinaryEfficient::~ScopedTraceBinaryEfficient() { |
1747 if (*category_group_enabled_) { | 1747 if (*category_group_enabled_) { |
1748 TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION(category_group_enabled_, name_, | 1748 TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION(category_group_enabled_, name_, |
1749 event_handle_); | 1749 event_handle_); |
1750 } | 1750 } |
1751 } | 1751 } |
1752 | 1752 |
1753 } // namespace trace_event_internal | 1753 } // namespace trace_event_internal |
OLD | NEW |