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

Unified Diff: runtime/vm/service.cc

Issue 1779333004: Add profile data to getSourceReport (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/service.cc
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
index aca3a5b713494324f3422d90d58114bc74e91dee..5f174277c02e86f3bc99b7a8acc594c3612df15e 100644
--- a/runtime/vm/service.cc
+++ b/runtime/vm/service.cc
@@ -2403,7 +2403,7 @@ static bool GetCoverage(Thread* thread, JSONStream* js) {
static const char* kCallSitesStr = "_CallSites";
static const char* kCoverageStr = "Coverage";
static const char* kPossibleBreakpointsStr = "PossibleBreakpoints";
-
+static const char* kProfile = "Profile";
static const char* const report_enum_names[] = {
kCallSitesStr,
@@ -2442,6 +2442,8 @@ static bool GetSourceReport(Thread* thread, JSONStream* js) {
report_set |= SourceReport::kCoverage;
} else if (strcmp(*reports, kPossibleBreakpointsStr) == 0) {
report_set |= SourceReport::kPossibleBreakpoints;
+ } else if (strcmp(*reports, kProfile) == 0) {
+ report_set |= SourceReport::kProfile;
}
reports++;
}

Powered by Google App Engine
This is Rietveld 408576698