OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 /// Interact with developer tools such as the debugger and inspector. | 5 /// Interact with developer tools such as the debugger and inspector. |
6 /// | 6 /// |
7 /// The dart:developer library is _unstable_ and its API might change slightly | 7 /// The dart:developer library is _unstable_ and its API might change slightly |
8 /// as a result of developer feedback. This library is platform dependent and | 8 /// as a result of developer feedback. This library is platform dependent and |
9 /// therefore it has implementations for both dart2js and the Dart VM. Both are | 9 /// therefore it has implementations for both dart2js and the Dart VM. Both are |
10 /// under development and may not support all operations yet. | 10 /// under development and may not support all operations yet. |
11 /// | 11 /// |
12 library dart.developer; | 12 library dart.developer; |
13 | 13 |
14 import 'dart:async'; | 14 import 'dart:async'; |
15 import 'dart:convert'; | 15 import 'dart:convert'; |
16 | 16 |
| 17 part 'extension.dart'; |
17 part 'profiler.dart'; | 18 part 'profiler.dart'; |
18 | 19 |
19 /// If [when] is true, stop the program as if a breakpoint were hit at the | 20 /// If [when] is true, stop the program as if a breakpoint were hit at the |
20 /// following statement. | 21 /// following statement. |
21 /// | 22 /// |
22 /// Returns the value of [when]. Some debuggers may | 23 /// Returns the value of [when]. Some debuggers may |
23 /// display [msg]. | 24 /// display [msg]. |
24 /// | 25 /// |
25 /// NOTE: When invoked, the isolate will not return until a debugger | 26 /// NOTE: When invoked, the isolate will not return until a debugger |
26 /// continues execution. When running in the Dart VM the behaviour is the same | 27 /// continues execution. When running in the Dart VM the behaviour is the same |
(...skipping 17 matching lines...) Expand all Loading... |
44 /// [error] (optional) an error object associated with this log event. | 45 /// [error] (optional) an error object associated with this log event. |
45 /// [stackTrace] (optional) a stack trace associated with this log event. | 46 /// [stackTrace] (optional) a stack trace associated with this log event. |
46 external log({int sequenceNumber, | 47 external log({int sequenceNumber, |
47 int millisecondsSinceEpoch, | 48 int millisecondsSinceEpoch, |
48 int level, | 49 int level, |
49 String name, | 50 String name, |
50 String message, | 51 String message, |
51 Zone zone, | 52 Zone zone, |
52 Object error, | 53 Object error, |
53 StackTrace stackTrace}); | 54 StackTrace stackTrace}); |
OLD | NEW |