6c31582031
Change-Id: If47aa98918b0166dba781a0008c23b991d46fe1c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/165420 Reviewed-by: Ben Konyi <bkonyi@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
26 lines
913 B
Dart
26 lines
913 B
Dart
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import 'package:observatory_2/service_io.dart';
|
|
import 'package:test/test.dart';
|
|
import 'test_helper.dart';
|
|
|
|
var tests = <IsolateTest>[
|
|
(Isolate isolate) {
|
|
VM vm = isolate.owner;
|
|
expect(vm.targetCPU, isNotNull);
|
|
expect(vm.architectureBits == 32 || vm.architectureBits == 64, isTrue);
|
|
expect(vm.embedder, equals("Dart VM"));
|
|
expect(vm.currentMemory, isNotNull);
|
|
expect(vm.currentMemory, greaterThan(0));
|
|
expect(vm.currentRSS, isNotNull);
|
|
expect(vm.currentRSS, greaterThan(0));
|
|
expect(vm.maxRSS, isNotNull);
|
|
expect(vm.maxRSS, greaterThan(0));
|
|
expect(vm.maxRSS, greaterThanOrEqualTo(vm.currentRSS));
|
|
},
|
|
];
|
|
|
|
main(args) => runIsolateTests(args, tests);
|