| Index: runtime/observatory/tests/service/get_allocation_samples_test.dart
|
| diff --git a/runtime/observatory/tests/service/get_allocation_samples_test.dart b/runtime/observatory/tests/service/get_allocation_samples_test.dart
|
| index 85626ee47a9c8383ef1558c22d2e4d47b383263f..d26c75f4d135085bf15af323eb27cf30e51924c4 100644
|
| --- a/runtime/observatory/tests/service/get_allocation_samples_test.dart
|
| +++ b/runtime/observatory/tests/service/get_allocation_samples_test.dart
|
| @@ -4,6 +4,7 @@
|
| // VMOptions=--error_on_bad_type --error_on_bad_override
|
|
|
| import 'dart:developer';
|
| +import 'package:observatory/models.dart' as M;
|
| import 'package:observatory/service_io.dart';
|
| import 'package:observatory/cpu_profile.dart';
|
| import 'package:unittest/unittest.dart';
|
| @@ -61,10 +62,10 @@ var tests = [
|
| await fooClass.reload();
|
| expect(fooClass.traceAllocations, isFalse);
|
| CpuProfile cpuProfile = new CpuProfile();
|
| - cpuProfile.load(isolate, profileResponse);
|
| + await cpuProfile.load(isolate, profileResponse);
|
| cpuProfile.buildCodeCallerAndCallees();
|
| cpuProfile.buildFunctionCallerAndCallees();
|
| - var tree = cpuProfile.loadCodeTree('exclusive');
|
| + var tree = cpuProfile.loadCodeTree(M.ProfileTreeDirection.exclusive);
|
| var node = tree.root;
|
| var expected =
|
| ['Root', 'DRT_AllocateObject', 'test', 'test', '_Closure.call'];
|
|
|