#include <log.h>
Definition at line 27 of file log.h.
◆ Log()
Definition at line 60 of file log.cc.
60 : printer_(printer), manual_flush_(0), buffer_(0) {
61 if (printer_ == nullptr) {
62 if (FLAG_redirect_isolate_log_to == nullptr) {
64 } else {
65 printer_ = &LogFile::Print;
66 }
67 }
68}
static void static void PrintErr(const char *format,...) PRINTF_ATTRIBUTE(1
static int8_t data[kExtLength]
◆ ~Log()
◆ Clear()
void dart::Log::Clear |
( |
| ) |
|
Definition at line 151 of file log.cc.
151 {
153 return;
154 }
156}
void TruncateTo(intptr_t length)
◆ Current()
Log * dart::Log::Current |
( |
| ) |
|
|
static |
Definition at line 75 of file log.cc.
75 {
77 if (thread == nullptr) {
79 ASSERT(os_thread !=
nullptr);
80 return os_thread->log();
81 }
82 IsolateGroup* isolate_group = thread->isolate_group();
83 if ((isolate_group != nullptr) &&
84 Log::ShouldLogForIsolateGroup(isolate_group)) {
85 OSThread* os_thread = thread->os_thread();
86 ASSERT(os_thread !=
nullptr);
87 return os_thread->log();
88 } else {
90 }
91}
static OSThread * Current()
static Thread * Current()
◆ cursor()
intptr_t dart::Log::cursor |
( |
| ) |
const |
◆ Flush()
void dart::Log::Flush |
( |
const intptr_t |
cursor = 0 | ) |
|
Definition at line 134 of file log.cc.
134 {
136 return;
137 }
139 return;
140 }
142 return;
143 }
144 TerminateString();
145 const char* str = &buffer_[
cursor];
147 printer_(str);
149}
◆ NoOpLog()
Log * dart::Log::NoOpLog |
( |
| ) |
|
|
static |
Definition at line 183 of file log.cc.
183 {
184 return &noop_log_;
185}
◆ Print()
void dart::Log::Print |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
Definition at line 93 of file log.cc.
93 {
95 return;
96 }
97
102}
void void VPrint(const char *format, va_list args)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
uint32_t uint32_t * format
◆ VPrint()
void dart::Log::VPrint |
( |
const char * |
format, |
|
|
va_list |
args |
|
) |
| |
Definition at line 104 of file log.cc.
104 {
106 return;
107 }
108
109
110 va_list measure_args;
111 va_copy(measure_args,
args);
114
115
117 va_list print_args;
118 va_copy(print_args,
args);
121
122
123
124 for (intptr_t
i = 0;
i <
len;
i++) {
126 }
128
129 if (ShouldFlush()) {
131 }
132}
void Flush(const intptr_t cursor=0)
static int static int VSNPrint(char *str, size_t size, const char *format, va_list args)
void * malloc(size_t size)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
◆ LogBlock
Definition at line 68 of file log.h.
◆ LogTestHelper
Definition at line 69 of file log.h.
The documentation for this class was generated from the following files:
- third_party/dart-lang/sdk/runtime/vm/log.h
- third_party/dart-lang/sdk/runtime/vm/log.cc