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

Side by Side Diff: runtime/vm/coverage.h

Issue 24255013: - Write the coverage data to a file instead of printing to stdout. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
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 #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_
OLDNEW
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/coverage.cc » ('j') | runtime/vm/coverage.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698