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

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

Issue 1731743003: Move precompilation-related flags to flags list. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: make print_stop_message default false to fix build Created 4 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/precompiler.cc ('k') | runtime/vm/raw_object_snapshot.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #include "platform/assert.h" 5 #include "platform/assert.h"
6 6
7 #include "vm/dart_api_impl.h" 7 #include "vm/dart_api_impl.h"
8 #include "vm/dart_api_state.h" 8 #include "vm/dart_api_state.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/profiler.h" 10 #include "vm/profiler.h"
11 #include "vm/profiler_service.h" 11 #include "vm/profiler_service.h"
12 #include "vm/unit_test.h" 12 #include "vm/unit_test.h"
13 13
14 namespace dart { 14 namespace dart {
15 15
16 #ifndef PRODUCT 16 #ifndef PRODUCT
17 17
18 DECLARE_FLAG(bool, background_compilation);
19 DECLARE_FLAG(bool, profile_vm); 18 DECLARE_FLAG(bool, profile_vm);
20 DECLARE_FLAG(int, max_profile_depth); 19 DECLARE_FLAG(int, max_profile_depth);
21 20
22 // Some tests are written assuming native stack trace profiling is disabled. 21 // Some tests are written assuming native stack trace profiling is disabled.
23 class DisableNativeProfileScope : public ValueObject { 22 class DisableNativeProfileScope : public ValueObject {
24 public: 23 public:
25 DisableNativeProfileScope() 24 DisableNativeProfileScope()
26 : FLAG_profile_vm_(FLAG_profile_vm) { 25 : FLAG_profile_vm_(FLAG_profile_vm) {
27 FLAG_profile_vm = false; 26 FLAG_profile_vm = false;
28 } 27 }
(...skipping 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after
1655 EXPECT_STREQ("go", walker.CurrentName()); 1654 EXPECT_STREQ("go", walker.CurrentName());
1656 EXPECT(walker.Down()); 1655 EXPECT(walker.Down());
1657 EXPECT_STREQ("main", walker.CurrentName()); 1656 EXPECT_STREQ("main", walker.CurrentName());
1658 EXPECT(!walker.Down()); 1657 EXPECT(!walker.Down());
1659 } 1658 }
1660 } 1659 }
1661 1660
1662 #endif // !PRODUCT 1661 #endif // !PRODUCT
1663 1662
1664 } // namespace dart 1663 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/precompiler.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698