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

Side by Side Diff: runtime/observatory/lib/src/models/objects/vm.dart

Issue 2996803002: Add current rss and embedder name to Observatory (Closed)
Patch Set: Rebase and Merge Created 3 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
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of models; 5 part of models;
6 6
7 abstract class VMRef { 7 abstract class VMRef {
8 /// A name identifying this vm. Not guaranteed to be unique. 8 /// A name identifying this vm. Not guaranteed to be unique.
9 String get name; 9 String get name;
10 10
11 /// [Not actually from the apis] 11 /// [Not actually from the apis]
12 /// A name used to identify the VM in the UI. 12 /// A name used to identify the VM in the UI.
13 String get displayName; 13 String get displayName;
14 } 14 }
15 15
16 abstract class VM implements VMRef { 16 abstract class VM implements VMRef {
17 /// Word length on target architecture (e.g. 32, 64). 17 /// Word length on target architecture (e.g. 32, 64).
18 int get architectureBits; 18 int get architectureBits;
19 19
20 /// The CPU we are generating code for. 20 /// The CPU we are generating code for.
21 String get targetCPU; 21 String get targetCPU;
22 22
23 /// The CPU we are actually running on. 23 /// The CPU we are actually running on.
24 String get hostCPU; 24 String get hostCPU;
25 25
26 /// The Dart VM version string. 26 /// The Dart VM version string.
27 String get version; 27 String get version;
28 28
29 String get embedder;
30
29 /// The amount of memory currently allocated by native code in zones. 31 /// The amount of memory currently allocated by native code in zones.
30 int get nativeZoneMemoryUsage; 32 int get nativeZoneMemoryUsage;
31 33
32 /// The process id for the VM. 34 /// The process id for the VM.
33 int get pid; 35 int get pid;
34 36
35 /// The current amount of native heap allocated memory within the VM. 37 /// The current amount of native heap allocated memory within the VM.
36 int get heapAllocatedMemoryUsage; 38 int get heapAllocatedMemoryUsage;
37 39
38 /// The current number of allocations on the native heap within the VM. 40 /// The current number of allocations on the native heap within the VM.
39 int get heapAllocationCount; 41 int get heapAllocationCount;
40 42
41 int get maxRSS; 43 int get maxRSS;
44 int get currentRSS;
42 45
43 /// The time that the VM started in milliseconds since the epoch. 46 /// The time that the VM started in milliseconds since the epoch.
44 /// 47 ///
45 /// Suitable to pass to DateTime.fromMillisecondsSinceEpoch. 48 /// Suitable to pass to DateTime.fromMillisecondsSinceEpoch.
46 DateTime get startTime; 49 DateTime get startTime;
47 50
48 // A list of isolates running in the VM. 51 // A list of isolates running in the VM.
49 Iterable<IsolateRef> get isolates; 52 Iterable<IsolateRef> get isolates;
50 53
51 /// Enable the sampling profiler. 54 /// Enable the sampling profiler.
52 Future enableProfiler(); 55 Future enableProfiler();
53 } 56 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/vm_view.dart ('k') | runtime/observatory/lib/src/models/repositories/vm.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698