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

Unified Diff: packages/analyzer/lib/instrumentation/instrumentation.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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: packages/analyzer/lib/instrumentation/instrumentation.dart
diff --git a/analyzer/lib/instrumentation/instrumentation.dart b/packages/analyzer/lib/instrumentation/instrumentation.dart
similarity index 96%
rename from analyzer/lib/instrumentation/instrumentation.dart
rename to packages/analyzer/lib/instrumentation/instrumentation.dart
index ee3c74729ea2474cef10fafe2f742dc9eea56fb0..18772dead39c27916fae1781d78bec6c61f2ca1c 100644
--- a/analyzer/lib/instrumentation/instrumentation.dart
+++ b/packages/analyzer/lib/instrumentation/instrumentation.dart
@@ -150,12 +150,21 @@ class InstrumentationService {
* entry has the given [level] and [message], and was created at the given
* [time].
*/
- void logLogEntry(String level, DateTime time, String message) {
+ void logLogEntry(String level, DateTime time, String message,
+ Object exception, StackTrace stackTrace) {
if (_instrumentationServer != null) {
String timeStamp =
time == null ? 'null' : time.millisecondsSinceEpoch.toString();
- _instrumentationServer
- .log(_join([TAG_LOG_ENTRY, level, timeStamp, message]));
+ String exceptionText = exception.toString();
+ String stackTraceText = stackTrace.toString();
+ _instrumentationServer.log(_join([
+ TAG_LOG_ENTRY,
+ level,
+ timeStamp,
+ message,
+ exceptionText,
+ stackTraceText
+ ]));
}
}
« no previous file with comments | « packages/analyzer/lib/instrumentation/file_instrumentation.dart ('k') | packages/analyzer/lib/plugin/command_line.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698