diff options
Diffstat (limited to 'protos/perfetto/trace_processor/raw_query.proto')
-rw-r--r-- | protos/perfetto/trace_processor/raw_query.proto | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/protos/perfetto/trace_processor/raw_query.proto b/protos/perfetto/trace_processor/raw_query.proto new file mode 100644 index 000000000..904b9029d --- /dev/null +++ b/protos/perfetto/trace_processor/raw_query.proto @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2018 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +syntax = "proto2"; +option optimize_for = LITE_RUNTIME; + +package perfetto.protos; + +message RawQueryArgs { + optional string sql_query = 1; + + // Wall time when the query was queued. Used only for query stats. + optional uint64 time_queued_ns = 2; +} + +message RawQueryResult { + message ColumnDesc { + optional string name = 1; + enum Type { + UNKNOWN = 0; + LONG = 1; + DOUBLE = 2; + STRING = 3; + } + optional Type type = 2; + } + message ColumnValues { + // Only one of this field will be filled for each column (according to the + // corresponding descriptor) and that one will have precisely |num_records| + // elements. + repeated int64 long_values = 1; + repeated double double_values = 2; + repeated string string_values = 3; + + // This will be set to true or false depending on whether the data at the + // given index is NULL. + repeated bool is_nulls = 4; + } + repeated ColumnDesc column_descriptors = 1; + optional uint64 num_records = 2; + repeated ColumnValues columns = 3; + optional string error = 4; + optional uint64 execution_time_ns = 5; +} |