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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 14249008: Enable profiling IDLs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index b18f079a9551b67d0572c1fbb6eb32ffe25da48a..361d28e59df8f5c2e7eb45bfc12621509e0d1db1 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -1709,11 +1709,9 @@ class Console {
MemoryInfo get memory => _isConsoleDefined ?
JS('MemoryInfo', 'console.memory') : null;
- /*
@DomName('Console.profiles')
List<ScriptProfile> get profiles => _isConsoleDefined ?
JS('List<ScriptProfile>', 'console.profiles') : null;
- */
@DomName('Console.assertCondition')
void assertCondition(bool condition, Object arg) => _isConsoleDefined ?
@@ -19919,6 +19917,77 @@ class ScriptElement extends Element native "*HTMLScriptElement" {
@DocsEditable
+@DomName('ScriptProfile')
+class ScriptProfile native "*ScriptProfile" {
+
+ @DomName('ScriptProfile.head')
+ @DocsEditable
+ final ScriptProfileNode head;
+
+ @DomName('ScriptProfile.idleTime')
+ @DocsEditable
+ final num idleTime;
+
+ @DomName('ScriptProfile.title')
+ @DocsEditable
+ final String title;
+
+ @DomName('ScriptProfile.uid')
+ @DocsEditable
+ final int uid;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+
+@DocsEditable
+@DomName('ScriptProfileNode')
+class ScriptProfileNode native "*ScriptProfileNode" {
+
+ @JSName('callUID')
+ @DomName('ScriptProfileNode.callUID')
+ @DocsEditable
+ final int callUid;
+
+ @DomName('ScriptProfileNode.functionName')
+ @DocsEditable
+ final String functionName;
+
+ @DomName('ScriptProfileNode.lineNumber')
+ @DocsEditable
+ final int lineNumber;
+
+ @DomName('ScriptProfileNode.numberOfCalls')
+ @DocsEditable
+ final int numberOfCalls;
+
+ @DomName('ScriptProfileNode.selfTime')
+ @DocsEditable
+ final num selfTime;
+
+ @DomName('ScriptProfileNode.totalTime')
+ @DocsEditable
+ final num totalTime;
+
+ @DomName('ScriptProfileNode.url')
+ @DocsEditable
+ final String url;
+
+ @DomName('ScriptProfileNode.visible')
+ @DocsEditable
+ final bool visible;
+
+ @DomName('ScriptProfileNode.children')
+ @DocsEditable
+ List<ScriptProfileNode> children() native;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+
+@DocsEditable
@DomName('SecurityPolicyViolationEvent')
class SecurityPolicyViolationEvent extends Event native "*SecurityPolicyViolationEvent" {
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698