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

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

Issue 1660063002: Remove many features when building product mode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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/profiler_service.cc ('k') | runtime/vm/report.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
17
16 DECLARE_FLAG(bool, background_compilation); 18 DECLARE_FLAG(bool, background_compilation);
17 DECLARE_FLAG(bool, profile_vm); 19 DECLARE_FLAG(bool, profile_vm);
18 DECLARE_FLAG(int, max_profile_depth); 20 DECLARE_FLAG(int, max_profile_depth);
19 21
20 // Some tests are written assuming native stack trace profiling is disabled. 22 // Some tests are written assuming native stack trace profiling is disabled.
21 class DisableNativeProfileScope : public ValueObject { 23 class DisableNativeProfileScope : public ValueObject {
22 public: 24 public:
23 DisableNativeProfileScope() 25 DisableNativeProfileScope()
24 : FLAG_profile_vm_(FLAG_profile_vm) { 26 : FLAG_profile_vm_(FLAG_profile_vm) {
25 FLAG_profile_vm = false; 27 FLAG_profile_vm = false;
(...skipping 1624 matching lines...) Expand 10 before | Expand all | Expand 10 after
1650 EXPECT(walker.Down()); 1652 EXPECT(walker.Down());
1651 EXPECT_STREQ("init", walker.CurrentName()); 1653 EXPECT_STREQ("init", walker.CurrentName());
1652 EXPECT(walker.Down()); 1654 EXPECT(walker.Down());
1653 EXPECT_STREQ("go", walker.CurrentName()); 1655 EXPECT_STREQ("go", walker.CurrentName());
1654 EXPECT(walker.Down()); 1656 EXPECT(walker.Down());
1655 EXPECT_STREQ("main", walker.CurrentName()); 1657 EXPECT_STREQ("main", walker.CurrentName());
1656 EXPECT(!walker.Down()); 1658 EXPECT(!walker.Down());
1657 } 1659 }
1658 } 1660 }
1659 1661
1662 #endif // !PRODUCT
1663
1660 } // namespace dart 1664 } // namespace dart
1661
OLDNEW
« no previous file with comments | « runtime/vm/profiler_service.cc ('k') | runtime/vm/report.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698