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

Unified Diff: runtime/observatory/lib/src/elements/helpers/uris.dart

Issue 2204563003: Converted Observatory cpu-profile element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged with master 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 side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/lib/src/elements/helpers/uris.dart
diff --git a/runtime/observatory/lib/src/elements/helpers/uris.dart b/runtime/observatory/lib/src/elements/helpers/uris.dart
index a099bbffa6c21fdaee96ede10eb9fd800533cc0d..b243f780e37832b30e725d544286ebca7ecf634d 100644
--- a/runtime/observatory/lib/src/elements/helpers/uris.dart
+++ b/runtime/observatory/lib/src/elements/helpers/uris.dart
@@ -13,35 +13,37 @@ abstract class Uris {
return '#' + new Uri(path: path, queryParameters: parameters).toString();
}
- static String inspect(M.IsolateRef isolate, {M.ObjectRef object, int pos}) {
- if (pos == null) {
- return _isolatePage('/inspect', isolate, object: object);
- }
- return _isolatePage('/inspect', isolate, object: object) + '---pos=${pos}';
- }
- static String debugger(M.IsolateRef isolate)
- => _isolatePage('/debugger', isolate);
+ static String allocationProfiler(M.IsolateRef isolate)
+ => _isolatePage('/allocation-profiler', isolate);
static String classTree(M.IsolateRef isolate)
=> _isolatePage('/class-tree', isolate);
static String cpuProfiler(M.IsolateRef isolate)
=> _isolatePage('/profiler', isolate);
static String cpuProfilerTable(M.IsolateRef isolate)
=> _isolatePage('/profiler-table', isolate);
- static String allocationProfiler(M.IsolateRef isolate)
- => _isolatePage('/allocation-profiler', isolate);
+ static String debugger(M.IsolateRef isolate)
+ => _isolatePage('/debugger', isolate);
+ static String flags() => '#/flags';
static String heapMap(M.IsolateRef isolate)
=> _isolatePage('/heap-map', isolate);
- static String metrics(M.IsolateRef isolate)
- => _isolatePage('/metrics', isolate);
static String heapSnapshot(M.IsolateRef isolate)
=> _isolatePage('/heap-snapshot', isolate);
+ static String inspect(M.IsolateRef isolate, {M.ObjectRef object, int pos}) {
+ if (pos == null) {
+ return _isolatePage('/inspect', isolate, object: object);
+ }
+ return _isolatePage('/inspect', isolate, object: object) + '---pos=${pos}';
+ }
+ static String logging(M.IsolateRef isolate)
+ => _isolatePage('/logging', isolate);
+ static String metrics(M.IsolateRef isolate)
+ => _isolatePage('/metrics', isolate);
static String persistentHandles(M.IsolateRef isolate)
=> _isolatePage('/persistent-handles', isolate);
static String ports(M.IsolateRef isolate)
=> _isolatePage('/ports', isolate);
- static String logging(M.IsolateRef isolate)
- => _isolatePage('/logging', isolate);
+ static String profiler(M.IsolateRef isolate)
+ => _isolatePage('/profiler', isolate);
static String vm() => '#/vm';
static String vmConnect() => '#/vm-connect';
- static String flags() => '#/flags';
}

Powered by Google App Engine
This is Rietveld 408576698