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

Side by Side Diff: mojo/services/flog/interfaces/flog.mojom

Issue 2084083003: FLOG: Add examples/flog_viewer and always show MOJO_DLOG messages (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « examples/flog_viewer/flog_viewer.cc ('k') | services/flog/flog_logger_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [DartPackage="mojo_services"] 5 [DartPackage="mojo_services"]
6 module mojo.flog; 6 module mojo.flog;
7 7
8 // Exposed by the log service to enable creation and consumption of logs. 8 // Exposed by the log service to enable creation and consumption of logs.
9 [ServiceName="mojo::flog::FlogService"] 9 [ServiceName="mojo::flog::FlogService"]
10 interface FlogService { 10 interface FlogService {
(...skipping 18 matching lines...) Expand all
29 uint32 source_line); 29 uint32 source_line);
30 30
31 // Logs the creation of a channel. 31 // Logs the creation of a channel.
32 LogChannelCreation(int64 time_us, uint32 channel_id, string type_name); 32 LogChannelCreation(int64 time_us, uint32 channel_id, string type_name);
33 33
34 // Logs a message sent to an existing channel. 34 // Logs a message sent to an existing channel.
35 LogChannelMessage(int64 time_us, uint32 channel_id, array<uint8> data); 35 LogChannelMessage(int64 time_us, uint32 channel_id, array<uint8> data);
36 36
37 // Logs the deletion of a channel. 37 // Logs the deletion of a channel.
38 LogChannelDeletion(int64 time_us, uint32 channel_id); 38 LogChannelDeletion(int64 time_us, uint32 channel_id);
39
40 // TODO(dalesat): Add a method for logging text/file/line
41 }; 39 };
42 40
43 // A reader that reads messages from one or more logs. 41 // A reader that reads messages from one or more logs.
44 interface FlogReader { 42 interface FlogReader {
45 // Gets entries from the log starting and the specified index (entries are 43 // Gets entries from the log starting and the specified index (entries are
46 // indexed starting at 0). If the log is open, the callback will be called 44 // indexed starting at 0). If the log is open, the callback will be called
47 // when max_count entries are avaiable starting at start_index. If the log 45 // when max_count entries are avaiable starting at start_index. If the log
48 // is closed, the callback will be called immediately with as many entries 46 // is closed, the callback will be called immediately with as many entries
49 // as are available starting at start_index and not exceeding max_count 47 // as are available starting at start_index and not exceeding max_count
50 // entries. 48 // entries.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 struct FlogChannelCreationEntryDetails { 86 struct FlogChannelCreationEntryDetails {
89 string type_name; 87 string type_name;
90 }; 88 };
91 89
92 struct FlogChannelMessageEntryDetails { 90 struct FlogChannelMessageEntryDetails {
93 array<uint8> data; 91 array<uint8> data;
94 }; 92 };
95 93
96 struct FlogChannelDeletionEntryDetails { 94 struct FlogChannelDeletionEntryDetails {
97 }; 95 };
OLDNEW
« no previous file with comments | « examples/flog_viewer/flog_viewer.cc ('k') | services/flog/flog_logger_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698