| OLD | NEW | 
|---|
| 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" | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
| 23   ~V8SamplingProfiler(); | 23   ~V8SamplingProfiler(); | 
| 24 | 24 | 
| 25   // Implementation of TraceLog::EnabledStateObserver | 25   // Implementation of TraceLog::EnabledStateObserver | 
| 26   void OnTraceLogEnabled() override; | 26   void OnTraceLogEnabled() override; | 
| 27   void OnTraceLogDisabled() override; | 27   void OnTraceLogDisabled() override; | 
| 28 | 28 | 
| 29   void EnableSamplingEventForTesting(); | 29   void EnableSamplingEventForTesting(); | 
| 30   void WaitSamplingEventForTesting(); | 30   void WaitSamplingEventForTesting(); | 
| 31 | 31 | 
| 32  private: | 32  private: | 
|  | 33   void StartSamplingThread(); | 
|  | 34 | 
| 33   scoped_ptr<base::WaitableEvent> waitable_event_for_testing_; | 35   scoped_ptr<base::WaitableEvent> waitable_event_for_testing_; | 
| 34   scoped_ptr<V8SamplingThread> sampling_thread_; | 36   scoped_ptr<V8SamplingThread> sampling_thread_; | 
| 35   scoped_ptr<Sampler> render_thread_sampler_; | 37   scoped_ptr<Sampler> render_thread_sampler_; | 
|  | 38   scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; | 
| 36 | 39 | 
| 37   DISALLOW_COPY_AND_ASSIGN(V8SamplingProfiler); | 40   DISALLOW_COPY_AND_ASSIGN(V8SamplingProfiler); | 
| 38 }; | 41 }; | 
| 39 | 42 | 
| 40 }  // namespace content | 43 }  // namespace content | 
| 41 | 44 | 
| 42 #endif  // CONTENT_RENDERER_DEVTOOLS_V8_SAMPLING_PROFILER_H_ | 45 #endif  // CONTENT_RENDERER_DEVTOOLS_V8_SAMPLING_PROFILER_H_ | 
| OLD | NEW | 
|---|