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

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: exclude service_classescoverage from simmips tests 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
Index: runtime/vm/coverage.h
diff --git a/runtime/vm/coverage.h b/runtime/vm/coverage.h
index 7cc82228111c2bae0cd59a0ece03d03817f2023a..72c639ae01844c7b531516fc877034e66619e72c 100644
--- a/runtime/vm/coverage.h
+++ b/runtime/vm/coverage.h
@@ -19,14 +19,24 @@ 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 Script& script, JSONStream* stream);
+ static void PrintJSONForLibrary(
+ const Library& lib, const Script& script_filter, 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 | « runtime/tests/vm/vm.status ('k') | runtime/vm/coverage.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698