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

Unified Diff: src/cpu-profiler-inl.h

Issue 18053004: CpuProfiler: eliminate 2 layers of 4 for CodeCreateEvent calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: all tests were fixed Created 7 years, 6 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
Index: src/cpu-profiler-inl.h
diff --git a/src/cpu-profiler-inl.h b/src/cpu-profiler-inl.h
index 4982197cabaf418006431f15d107fa29e6af8f2a..64ac1fcf9b6bf4d75fda9b34d66985980b656afe 100644
--- a/src/cpu-profiler-inl.h
+++ b/src/cpu-profiler-inl.h
@@ -64,7 +64,7 @@ TickSample* ProfilerEventsProcessor::TickSampleEvent() {
}
-bool ProfilerEventsProcessor::FilterOutCodeCreateEvent(
+bool CpuProfiler::FilterOutCodeCreateEvent(
Logger::LogEventsAndTags tag) {
return FLAG_prof_browser_mode
&& (tag != Logger::CALLBACK_TAG
@@ -74,6 +74,13 @@ bool ProfilerEventsProcessor::FilterOutCodeCreateEvent(
&& tag != Logger::SCRIPT_TAG);
}
+
+void ProfilerEventsProcessor::Enqueue(CodeEventsContainer* event) {
yurys 2013/06/28 11:33:43 The argument should be "const CodeEventsContainer&
+ event->generic.order = ++enqueue_order_;
+ events_buffer_.Enqueue(*event);
+}
+
+
} } // namespace v8::internal
#endif // V8_CPU_PROFILER_INL_H_

Powered by Google App Engine
This is Rietveld 408576698