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

Side by Side Diff: content/renderer/devtools/v8_sampling_profiler.h

Issue 892213004: Mechanical rename of base::debug -> base::trace_event for /content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_trace_part3_1
Patch Set: Rebase. 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CONTENT_RENDERER_DEVTOOLS_V8_SAMPLING_PROFILER_H_ 5 #ifndef CONTENT_RENDERER_DEVTOOLS_V8_SAMPLING_PROFILER_H_
6 #define CONTENT_RENDERER_DEVTOOLS_V8_SAMPLING_PROFILER_H_ 6 #define CONTENT_RENDERER_DEVTOOLS_V8_SAMPLING_PROFILER_H_
7 7
8 #include "base/synchronization/waitable_event.h" 8 #include "base/synchronization/waitable_event.h"
9 #include "base/trace_event/trace_event_impl.h" 9 #include "base/trace_event/trace_event_impl.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 // The class monitors enablement of V8 CPU profiler and 14 // The class monitors enablement of V8 CPU profiler and
15 // spawns a sampling thread when needed. 15 // spawns a sampling thread when needed.
16 class CONTENT_EXPORT V8SamplingProfiler final 16 class CONTENT_EXPORT V8SamplingProfiler final
17 : public base::debug::TraceLog::EnabledStateObserver { 17 : public base::trace_event::TraceLog::EnabledStateObserver {
18 public: 18 public:
19 V8SamplingProfiler(); 19 V8SamplingProfiler();
20 ~V8SamplingProfiler(); 20 ~V8SamplingProfiler();
21 21
22 // Implementation of TraceLog::EnabledStateObserver 22 // Implementation of TraceLog::EnabledStateObserver
23 void OnTraceLogEnabled() override; 23 void OnTraceLogEnabled() override;
24 void OnTraceLogDisabled() override; 24 void OnTraceLogDisabled() override;
25 25
26 void EnableSamplingEventForTesting(); 26 void EnableSamplingEventForTesting();
27 void WaitSamplingEventForTesting(); 27 void WaitSamplingEventForTesting();
28 28
29 private: 29 private:
30 scoped_ptr<base::WaitableEvent> waitable_event_for_testing_; 30 scoped_ptr<base::WaitableEvent> waitable_event_for_testing_;
31 scoped_ptr<class V8SamplingThread> sampling_thread_; 31 scoped_ptr<class V8SamplingThread> sampling_thread_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(V8SamplingProfiler); 33 DISALLOW_COPY_AND_ASSIGN(V8SamplingProfiler);
34 }; 34 };
35 35
36 } // namespace content 36 } // namespace content
37 37
38 #endif // CONTENT_RENDERER_DEVTOOLS_V8_SAMPLING_PROFILER_H_ 38 #endif // CONTENT_RENDERER_DEVTOOLS_V8_SAMPLING_PROFILER_H_
OLDNEW
« no previous file with comments | « content/renderer/devtools/devtools_agent.cc ('k') | content/renderer/devtools/v8_sampling_profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698