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

Unified Diff: runtime/bin/vmservice/client/lib/src/service/object.dart

Issue 346763007: Fix code coverage (again!) (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/client/lib/src/service/object.dart
diff --git a/runtime/bin/vmservice/client/lib/src/service/object.dart b/runtime/bin/vmservice/client/lib/src/service/object.dart
index 4755974efecc342b56b27adc0f71d112f1423588..d63afa36846e2714e1f809e749e331ae2d9a5552 100644
--- a/runtime/bin/vmservice/client/lib/src/service/object.dart
+++ b/runtime/bin/vmservice/client/lib/src/service/object.dart
@@ -1109,7 +1109,7 @@ class Class extends ServiceObject {
superClass._addToChildren(this);
}
error = map['error'];
-
+
var allocationStats = map['allocationStats'];
if (allocationStats != null) {
newSpace.update(allocationStats['new']);
@@ -1123,7 +1123,7 @@ class Class extends ServiceObject {
}
children.add(cls);
}
-
+
Future<ServiceObject> get(String command) {
return isolate.get(id + "/$command");
}
@@ -1207,11 +1207,14 @@ class Script extends ServiceObject {
void _processHits(List scriptHits) {
// Update hits table.
- _hits.clear();
for (var i = 0; i < scriptHits.length; i += 2) {
var line = scriptHits[i];
var hit = scriptHits[i + 1]; // hit status.
assert(line >= 1); // Lines start at 1.
+ var oldHits = _hits[line];
+ if (oldHits != null) {
+ hit += oldHits;
+ }
_hits[line] = hit;
}
_applyHitsToLines();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698