OLD | NEW |
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 #ifndef VM_COVERAGE_H_ | 5 #ifndef VM_COVERAGE_H_ |
6 #define VM_COVERAGE_H_ | 6 #define VM_COVERAGE_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 #include "vm/flags.h" | 9 #include "vm/flags.h" |
10 | 10 |
11 namespace dart { | 11 namespace dart { |
12 | 12 |
13 DECLARE_FLAG(bool, print_coverage); | 13 DECLARE_FLAG(charp, coverage_dir); |
14 | 14 |
15 // Forward declarations. | 15 // Forward declarations. |
16 class Class; | 16 class Class; |
17 class Isolate; | 17 class Isolate; |
18 class JSONArray; | 18 class JSONArray; |
19 | 19 |
20 class CodeCoverage : public AllStatic { | 20 class CodeCoverage : public AllStatic { |
21 public: | 21 public: |
22 static void Print(Isolate* isolate); | 22 static void Write(Isolate* isolate); |
23 | 23 |
24 private: | 24 private: |
25 static void PrintClass(const Class& cls, const JSONArray& arr); | 25 static void PrintClass(const Class& cls, const JSONArray& arr); |
26 }; | 26 }; |
27 | 27 |
28 } // namespace dart | 28 } // namespace dart |
29 | 29 |
30 #endif // VM_COVERAGE_H_ | 30 #endif // VM_COVERAGE_H_ |
OLD | NEW |