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

Unified Diff: runtime/vm/timeline.cc

Issue 2320183002: Fix Mac build (Closed)
Patch Set: Created 4 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/timeline.cc
diff --git a/runtime/vm/timeline.cc b/runtime/vm/timeline.cc
index 8d3a966d70cea24ecd5e604d05b68ba8ed5c7576..2e29d674907b063ea641be1e3a3ccab014289a3b 100644
--- a/runtime/vm/timeline.cc
+++ b/runtime/vm/timeline.cc
@@ -1400,13 +1400,11 @@ void TimelineEventFixedBufferRecorder::CompleteEvent(TimelineEvent* event) {
}
-static const char* kSystracePath = "/sys/kernel/debug/tracing/trace_marker";
-
-
TimelineEventSystraceRecorder::TimelineEventSystraceRecorder(intptr_t capacity)
: TimelineEventFixedBufferRecorder(capacity),
systrace_fd_(-1) {
#if defined(TARGET_OS_ANDROID) || defined(TARGET_OS_LINUX)
+ const char* kSystracePath = "/sys/kernel/debug/tracing/trace_marker";
systrace_fd_ = open(kSystracePath, O_WRONLY);
if ((systrace_fd_ < 0) && FLAG_trace_timeline) {
OS::PrintErr("TimelineEventSystraceRecorder: Could not open `%s`\n",
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698