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

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

Issue 24654003: Improve code coverage generation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | runtime/vm/coverage.cc » ('j') | runtime/vm/coverage.cc » ('J')
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 #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 #include "vm/object.h"
Ivan Posva 2013/09/27 20:19:54 Why don't you forward declare class Array below?
Michael Lippautz (Google) 2013/09/27 21:46:50 Done.
10 11
11 namespace dart { 12 namespace dart {
12 13
13 DECLARE_FLAG(charp, coverage_dir); 14 DECLARE_FLAG(charp, coverage_dir);
14 15
15 // Forward declarations. 16 // Forward declarations.
16 class Class; 17 class Class;
17 class Isolate; 18 class Isolate;
18 class JSONArray; 19 class JSONArray;
19 20
20 class CodeCoverage : public AllStatic { 21 class CodeCoverage : public AllStatic {
21 public: 22 public:
22 static void Write(Isolate* isolate); 23 static void Write(Isolate* isolate);
23 24
24 private: 25 private:
25 static void PrintClass(const Class& cls, const JSONArray& arr); 26 static void PrintClass(const Class& cls, const JSONArray& arr);
27 static int PrintFunctionsInSource(const String& source,
28 const Array& functions,
29 int index,
30 const JSONArray& hits_arr);
26 }; 31 };
27 32
28 } // namespace dart 33 } // namespace dart
29 34
30 #endif // VM_COVERAGE_H_ 35 #endif // VM_COVERAGE_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/coverage.cc » ('j') | runtime/vm/coverage.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698