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

Unified Diff: runtime/vm/service.h

Issue 1241683005: Support piping log data over the service protocol (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service.h
diff --git a/runtime/vm/service.h b/runtime/vm/service.h
index 9e25340389b6941a1fc7fe9787163c4024211274..3b23f6d553bd7c0902311de5a7f3bc4d0733ec1e 100644
--- a/runtime/vm/service.h
+++ b/runtime/vm/service.h
@@ -108,12 +108,23 @@ class Service : public AllStatic {
const uint8_t* bytes,
intptr_t bytes_len);
+ static void SendLogEvent(Isolate* isolate,
+ int64_t sequence_number,
+ int64_t timestamp,
+ intptr_t level,
+ const String& name,
+ const String& message,
+ const Instance& zone,
+ const Object& error,
+ const Instance& stack_trace);
+
// Well-known streams.
static StreamInfo isolate_stream;
static StreamInfo debug_stream;
static StreamInfo gc_stream;
static StreamInfo echo_stream;
static StreamInfo graph_stream;
+ static StreamInfo logging_stream;
static bool ListenStream(const char* stream_id);
static void CancelStream(const char* stream_id);
@@ -137,6 +148,7 @@ class Service : public AllStatic {
static void SendEvent(const char* stream_id,
const char* event_type,
const Object& eventMessage);
+
// Does not take ownership of 'data'.
static void SendEventWithData(const char* stream_id,
const char* event_type,
@@ -144,6 +156,10 @@ class Service : public AllStatic {
const uint8_t* data,
intptr_t size);
+ static void PostEvent(const char* stream_id,
+ const char* kind,
+ JSONStream* event);
+
static EmbedderServiceHandler* isolate_service_handler_head_;
static EmbedderServiceHandler* root_service_handler_head_;
static Dart_ServiceStreamListenCallback stream_listen_callback_;
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698