Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: base/trace_event/trace_event_impl.cc

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/trace_event/trace_event_impl.h ('k') | base/trace_event/trace_event_impl_constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/debug/trace_event_impl.h" 5 #include "base/trace_event/trace_event_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/base_switches.h" 9 #include "base/base_switches.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/debug/leak_annotations.h" 12 #include "base/debug/leak_annotations.h"
13 #include "base/debug/trace_event.h"
14 #include "base/debug/trace_event_synthetic_delay.h"
15 #include "base/float_util.h" 13 #include "base/float_util.h"
16 #include "base/format_macros.h" 14 #include "base/format_macros.h"
17 #include "base/json/string_escape.h" 15 #include "base/json/string_escape.h"
18 #include "base/lazy_instance.h" 16 #include "base/lazy_instance.h"
19 #include "base/memory/singleton.h" 17 #include "base/memory/singleton.h"
20 #include "base/message_loop/message_loop.h" 18 #include "base/message_loop/message_loop.h"
21 #include "base/process/process_metrics.h" 19 #include "base/process/process_metrics.h"
22 #include "base/stl_util.h" 20 #include "base/stl_util.h"
23 #include "base/strings/string_number_conversions.h" 21 #include "base/strings/string_number_conversions.h"
24 #include "base/strings/string_split.h" 22 #include "base/strings/string_split.h"
25 #include "base/strings/string_tokenizer.h" 23 #include "base/strings/string_tokenizer.h"
26 #include "base/strings/string_util.h" 24 #include "base/strings/string_util.h"
27 #include "base/strings/stringprintf.h" 25 #include "base/strings/stringprintf.h"
28 #include "base/strings/utf_string_conversions.h" 26 #include "base/strings/utf_string_conversions.h"
29 #include "base/synchronization/cancellation_flag.h" 27 #include "base/synchronization/cancellation_flag.h"
30 #include "base/synchronization/waitable_event.h" 28 #include "base/synchronization/waitable_event.h"
31 #include "base/sys_info.h" 29 #include "base/sys_info.h"
32 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" 30 #include "base/third_party/dynamic_annotations/dynamic_annotations.h"
33 #include "base/threading/platform_thread.h" 31 #include "base/threading/platform_thread.h"
34 #include "base/threading/thread_id_name_manager.h" 32 #include "base/threading/thread_id_name_manager.h"
35 #include "base/time/time.h" 33 #include "base/time/time.h"
34 #include "base/trace_event/trace_event.h"
35 #include "base/trace_event/trace_event_synthetic_delay.h"
36 36
37 #if defined(OS_WIN) 37 #if defined(OS_WIN)
38 #include "base/debug/trace_event_win.h" 38 #include "base/trace_event/trace_event_win.h"
39 #endif 39 #endif
40 40
41 class DeleteTraceLogForTesting { 41 class DeleteTraceLogForTesting {
42 public: 42 public:
43 static void Delete() { 43 static void Delete() {
44 Singleton<base::debug::TraceLog, 44 Singleton<base::debug::TraceLog,
45 LeakySingletonTraits<base::debug::TraceLog> >::OnExit(0); 45 LeakySingletonTraits<base::debug::TraceLog> >::OnExit(0);
46 } 46 }
47 }; 47 };
48 48
(...skipping 2536 matching lines...) Expand 10 before | Expand all | Expand 10 after
2585 } 2585 }
2586 2586
2587 ScopedTraceBinaryEfficient::~ScopedTraceBinaryEfficient() { 2587 ScopedTraceBinaryEfficient::~ScopedTraceBinaryEfficient() {
2588 if (*category_group_enabled_) { 2588 if (*category_group_enabled_) {
2589 TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION(category_group_enabled_, 2589 TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION(category_group_enabled_,
2590 name_, event_handle_); 2590 name_, event_handle_);
2591 } 2591 }
2592 } 2592 }
2593 2593
2594 } // namespace trace_event_internal 2594 } // namespace trace_event_internal
OLDNEW
« no previous file with comments | « base/trace_event/trace_event_impl.h ('k') | base/trace_event/trace_event_impl_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698