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

Side by Side Diff: runtime/vm/service.cc

Issue 2250793004: Observatory: Report peak process memory usage. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 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
« no previous file with comments | « runtime/vm/os_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #include "vm/service.h" 5 #include "vm/service.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "include/dart_native_api.h" 8 #include "include/dart_native_api.h"
9 #include "platform/globals.h" 9 #include "platform/globals.h"
10 10
(...skipping 3784 matching lines...) Expand 10 before | Expand all | Expand 10 after
3795 if (ref) { 3795 if (ref) {
3796 return; 3796 return;
3797 } 3797 }
3798 Isolate* vm_isolate = Dart::vm_isolate(); 3798 Isolate* vm_isolate = Dart::vm_isolate();
3799 jsobj.AddProperty("architectureBits", static_cast<intptr_t>(kBitsPerWord)); 3799 jsobj.AddProperty("architectureBits", static_cast<intptr_t>(kBitsPerWord));
3800 jsobj.AddProperty("targetCPU", CPU::Id()); 3800 jsobj.AddProperty("targetCPU", CPU::Id());
3801 jsobj.AddProperty("hostCPU", HostCPUFeatures::hardware()); 3801 jsobj.AddProperty("hostCPU", HostCPUFeatures::hardware());
3802 jsobj.AddProperty("version", Version::String()); 3802 jsobj.AddProperty("version", Version::String());
3803 jsobj.AddProperty("_profilerMode", FLAG_profile_vm ? "VM" : "Dart"); 3803 jsobj.AddProperty("_profilerMode", FLAG_profile_vm ? "VM" : "Dart");
3804 jsobj.AddProperty64("pid", OS::ProcessId()); 3804 jsobj.AddProperty64("pid", OS::ProcessId());
3805 jsobj.AddProperty64("_maxRSS", OS::MaxRSS());
3805 int64_t start_time_millis = (vm_isolate->start_time() / 3806 int64_t start_time_millis = (vm_isolate->start_time() /
3806 kMicrosecondsPerMillisecond); 3807 kMicrosecondsPerMillisecond);
3807 jsobj.AddPropertyTimeMillis("startTime", start_time_millis); 3808 jsobj.AddPropertyTimeMillis("startTime", start_time_millis);
3808 // Construct the isolate list. 3809 // Construct the isolate list.
3809 { 3810 {
3810 JSONArray jsarr(&jsobj, "isolates"); 3811 JSONArray jsarr(&jsobj, "isolates");
3811 ServiceIsolateVisitor visitor(&jsarr); 3812 ServiceIsolateVisitor visitor(&jsarr);
3812 Isolate::VisitIsolates(&visitor); 3813 Isolate::VisitIsolates(&visitor);
3813 } 3814 }
3814 } 3815 }
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
4140 if (strcmp(method_name, method.name) == 0) { 4141 if (strcmp(method_name, method.name) == 0) {
4141 return &method; 4142 return &method;
4142 } 4143 }
4143 } 4144 }
4144 return NULL; 4145 return NULL;
4145 } 4146 }
4146 4147
4147 #endif // !PRODUCT 4148 #endif // !PRODUCT
4148 4149
4149 } // namespace dart 4150 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/os_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698