| 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 #include "vm/log.h" | 5 #include "vm/log.h" |
| 6 | 6 |
| 7 #include "vm/flags.h" | 7 #include "vm/flags.h" |
| 8 #include "vm/isolate.h" |
| 8 #include "vm/thread.h" | 9 #include "vm/thread.h" |
| 9 | 10 |
| 10 namespace dart { | 11 namespace dart { |
| 11 | 12 |
| 12 DEFINE_FLAG(bool, force_log_flush, false, "Always flush log messages."); | 13 DEFINE_FLAG(bool, force_log_flush, false, "Always flush log messages."); |
| 13 | 14 |
| 14 DEFINE_FLAG(charp, | 15 DEFINE_FLAG(charp, |
| 15 isolate_log_filter, | 16 isolate_log_filter, |
| 16 NULL, | 17 NULL, |
| 17 "Log isolates whose name include the filter. " | 18 "Log isolates whose name include the filter. " |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 log_->EnableManualFlush(); | 178 log_->EnableManualFlush(); |
| 178 } | 179 } |
| 179 | 180 |
| 180 | 181 |
| 181 LogBlock::~LogBlock() { | 182 LogBlock::~LogBlock() { |
| 182 log_->Flush(cursor_); | 183 log_->Flush(cursor_); |
| 183 log_->DisableManualFlush(); | 184 log_->DisableManualFlush(); |
| 184 } | 185 } |
| 185 | 186 |
| 186 } // namespace dart | 187 } // namespace dart |
| OLD | NEW |