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

Unified Diff: content/renderer/devtools/v8_sampling_profiler.h

Issue 792903003: V8 Sampling Profiler: Collect V8 JitCodeEvents in tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the test under Debug mode. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/devtools/v8_sampling_profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/devtools/v8_sampling_profiler.h
diff --git a/content/renderer/devtools/v8_sampling_profiler.h b/content/renderer/devtools/v8_sampling_profiler.h
index 9cc4c85451d9a9b0e5c8c85c34760499cf286b59..50cae06a15870161d5c3698df88beead2e7dffc0 100644
--- a/content/renderer/devtools/v8_sampling_profiler.h
+++ b/content/renderer/devtools/v8_sampling_profiler.h
@@ -11,12 +11,15 @@
namespace content {
+class Sampler;
+class V8SamplingThread;
+
// The class monitors enablement of V8 CPU profiler and
// spawns a sampling thread when needed.
class CONTENT_EXPORT V8SamplingProfiler final
: public base::trace_event::TraceLog::EnabledStateObserver {
public:
- V8SamplingProfiler();
+ explicit V8SamplingProfiler(bool underTest = false);
~V8SamplingProfiler();
// Implementation of TraceLog::EnabledStateObserver
@@ -28,7 +31,8 @@ class CONTENT_EXPORT V8SamplingProfiler final
private:
scoped_ptr<base::WaitableEvent> waitable_event_for_testing_;
- scoped_ptr<class V8SamplingThread> sampling_thread_;
+ scoped_ptr<V8SamplingThread> sampling_thread_;
+ scoped_ptr<Sampler> render_thread_sampler_;
DISALLOW_COPY_AND_ASSIGN(V8SamplingProfiler);
};
« no previous file with comments | « no previous file | content/renderer/devtools/v8_sampling_profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698