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

Side by Side Diff: runtime/bin/vmservice/observatory/test/gc_test.dart

Issue 474633002: Optional binary payloads in VM service events. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
1 import 'package:observatory/service_io.dart'; 5 import 'package:observatory/service_io.dart';
2 import 'test_helper.dart'; 6 import 'test_helper.dart';
3 7
4 import 'dart:async'; 8 import 'dart:async';
5 9
6 void script() { 10 void script() {
7 List<int> data; 11 List<int> data;
8 var grow; 12 var grow;
9 grow = (int iterations, int size, Duration duration) { 13 grow = (int iterations, int size, Duration duration) {
10 if (iterations <= 0) { 14 if (iterations <= 0) {
(...skipping 15 matching lines...) Expand all
26 if (event.eventType == 'GC' && --gcCountdown == 0) { 30 if (event.eventType == 'GC' && --gcCountdown == 0) {
27 completer.complete(); 31 completer.complete();
28 } 32 }
29 }); 33 });
30 return completer.future; 34 return completer.future;
31 }, 35 },
32 36
33 ]; 37 ];
34 38
35 main(args) => runIsolateTests(args, tests, testeeConcurrent: script); 39 main(args) => runIsolateTests(args, tests, testeeConcurrent: script);
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/observatory/test/echo_test.dart ('k') | runtime/bin/vmservice/observatory/test/metrics_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698