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

Unified Diff: runtime/vm/coverage.h

Issue 346003003: vmservice: Add /coverage collection to scripts, classes and libraries. (Closed) Base URL: https://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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/coverage.cc » ('j') | runtime/vm/coverage.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/coverage.h
diff --git a/runtime/vm/coverage.h b/runtime/vm/coverage.h
index 7cc82228111c2bae0cd59a0ece03d03817f2023a..a316a68fa14c243e59af97fc6a2137f7e02f273f 100644
--- a/runtime/vm/coverage.h
+++ b/runtime/vm/coverage.h
@@ -19,14 +19,23 @@ template <typename T> class GrowableArray;
class Isolate;
class JSONArray;
class JSONStream;
+class Library;
+class Script;
+class String;
class CodeCoverage : public AllStatic {
public:
static void Write(Isolate* isolate);
static void PrintJSON(Isolate* isolate, JSONStream* stream);
+ static void PrintJSONForScript(const String& script_name, JSONStream* stream);
+ static void PrintJSONForLibrary(const Library& lib, JSONStream* stream);
+ static void PrintJSONForClass(const Class& lib, JSONStream* stream);
+
private:
- static void PrintClass(const Class& cls, const JSONArray& arr);
+ static void PrintClass(const Class& cls,
+ const JSONArray& arr,
+ const Script& script_filter);
static void CompileAndAdd(const Function& function,
const JSONArray& hits_arr,
const GrowableArray<intptr_t>& pos_to_line);
« 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