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

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

Issue 324843004: Significantly improve performance of code coverage tool by precomputing a map token_pos->line numbe… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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') | 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 #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(charp, coverage_dir); 13 DECLARE_FLAG(charp, coverage_dir);
14 14
15 // Forward declarations. 15 // Forward declarations.
16 class Class; 16 class Class;
17 class Function; 17 class Function;
18 template <typename T> class GrowableArray;
18 class Isolate; 19 class Isolate;
19 class JSONArray; 20 class JSONArray;
20 class JSONStream; 21 class JSONStream;
21 22
22 class CodeCoverage : public AllStatic { 23 class CodeCoverage : public AllStatic {
23 public: 24 public:
24 static void Write(Isolate* isolate); 25 static void Write(Isolate* isolate);
25 static void PrintJSON(Isolate* isolate, JSONStream* stream); 26 static void PrintJSON(Isolate* isolate, JSONStream* stream);
26 27
27 private: 28 private:
28 static void PrintClass(const Class& cls, const JSONArray& arr); 29 static void PrintClass(const Class& cls, const JSONArray& arr);
29 static void CompileAndAdd(const Function& function, 30 static void CompileAndAdd(const Function& function,
30 const JSONArray& hits_arr); 31 const JSONArray& hits_arr,
32 const GrowableArray<intptr_t>& pos_to_line);
31 }; 33 };
32 34
33 } // namespace dart 35 } // namespace dart
34 36
35 #endif // VM_COVERAGE_H_ 37 #endif // VM_COVERAGE_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/coverage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698