| 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);
|
|
|