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

Side by Side Diff: runtime/vm/timeline.cc

Issue 2117593002: Fuchsia: Initial check-in. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 years, 5 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
« no previous file with comments | « runtime/vm/thread_interrupter_fuchsia.cc ('k') | runtime/vm/virtual_memory_fuchsia.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef PRODUCT
6
5 #include <cstdlib> 7 #include <cstdlib>
6 8
7 #include "vm/atomic.h" 9 #include "vm/atomic.h"
8 #include "vm/isolate.h" 10 #include "vm/isolate.h"
9 #include "vm/json_stream.h" 11 #include "vm/json_stream.h"
10 #include "vm/lockers.h" 12 #include "vm/lockers.h"
11 #include "vm/log.h" 13 #include "vm/log.h"
12 #include "vm/object.h" 14 #include "vm/object.h"
13 #include "vm/service_event.h" 15 #include "vm/service_event.h"
14 #include "vm/thread.h" 16 #include "vm/thread.h"
15 #include "vm/timeline.h" 17 #include "vm/timeline.h"
16 18
17 namespace dart { 19 namespace dart {
18 20
19 #ifndef PRODUCT
20
21 DEFINE_FLAG(bool, complete_timeline, false, "Record the complete timeline"); 21 DEFINE_FLAG(bool, complete_timeline, false, "Record the complete timeline");
22 DEFINE_FLAG(bool, startup_timeline, false, "Record the startup timeline"); 22 DEFINE_FLAG(bool, startup_timeline, false, "Record the startup timeline");
23 DEFINE_FLAG(bool, trace_timeline, false, 23 DEFINE_FLAG(bool, trace_timeline, false,
24 "Trace timeline backend"); 24 "Trace timeline backend");
25 DEFINE_FLAG(bool, trace_timeline_analysis, false, 25 DEFINE_FLAG(bool, trace_timeline_analysis, false,
26 "Trace timeline analysis backend"); 26 "Trace timeline analysis backend");
27 DEFINE_FLAG(bool, timing, false, 27 DEFINE_FLAG(bool, timing, false,
28 "Dump isolate timing information from timeline."); 28 "Dump isolate timing information from timeline.");
29 DEFINE_FLAG(charp, timeline_dir, NULL, 29 DEFINE_FLAG(charp, timeline_dir, NULL,
30 "Enable all timeline trace streams and output VM global trace " 30 "Enable all timeline trace streams and output VM global trace "
(...skipping 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1685 } 1685 }
1686 1686
1687 1687
1688 TimelineEventBlock* TimelineEventBlockIterator::Next() { 1688 TimelineEventBlock* TimelineEventBlockIterator::Next() {
1689 ASSERT(current_ != NULL); 1689 ASSERT(current_ != NULL);
1690 TimelineEventBlock* r = current_; 1690 TimelineEventBlock* r = current_;
1691 current_ = current_->next(); 1691 current_ = current_->next();
1692 return r; 1692 return r;
1693 } 1693 }
1694 1694
1695 } // namespace dart
1696
1695 #endif // !PRODUCT 1697 #endif // !PRODUCT
1696
1697 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/thread_interrupter_fuchsia.cc ('k') | runtime/vm/virtual_memory_fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698