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

Unified Diff: runtime/vm/service/service.idl

Issue 886353006: Port metrics to RPC (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/service.cc ('k') | sdk/lib/profiler/profiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service/service.idl
diff --git a/runtime/vm/service/service.idl b/runtime/vm/service/service.idl
index f10ccc796165dce21156b0bdb2edc969c6afb783..e91537814e81502cf4a3fe2f00271f86ae4e3ccb 100644
--- a/runtime/vm/service/service.idl
+++ b/runtime/vm/service/service.idl
@@ -82,6 +82,16 @@ interface Service {
getTypeArgumentsList(isolateId string,
onlyWithInstantiations bool) TypeArgumentsList
+ getIsolateMetricList(isolateId string,
+ type MetricSelector) MetricList
+
+ getIsolateMetric(isolateId string,
+ metricId string) Metric
+
+ getVMMetricList() MetricList
+
+ getVMMetric(metricId string) Metric
+
_echo(isolateId string,
text string) _EchoResponse
@@ -320,18 +330,41 @@ struct InboundReference {
}
-struct ClassList {
+struct ClassList extends Response {
classes []ClassRef
}
-struct TypeArgumentsList {
+struct TypeArgumentsList extends Response {
tableSize int
tableUsed int
typeArguments []TypeArgumentsRef
}
+struct MetricList extends Response {
+ metrics []Metric
+}
+
+
+struct Metric extends Response {
+ name string
+ description string
+}
+
+
+struct Gauge extends Metric {
+ value double
+ min double
+ max double
+}
+
+
+struct Counter extends Metric {
+ value double
+}
+
+
// A <code>GCOption</code> is used to indicate which form of garbage
// collection is requested.
enum GCOption {
@@ -356,3 +389,9 @@ enum TagSelector {
None
}
+// A <code>MetricSelector</code> is used to indicate which list of metrics
+// should be retrieved from an isolate.
+enum MetricSelector {
+ Dart,
+ Native,
+}
« no previous file with comments | « runtime/vm/service.cc ('k') | sdk/lib/profiler/profiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698