• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2016 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto2";
16
17package android.vts;
18
19import "test/vts/proto/ComponentSpecificationMessage.proto";
20
21// Type of an instrumentation event.
22enum InstrumentationEventType {
23  // Entry event on the server side of a binderized HAL.
24  SERVER_API_ENTRY = 0;
25  // Exit event on the server side of a binderized HAL.
26  SERVER_API_EXIT = 1;
27  // Entry event on the client side of a binderized HAL.
28  CLIENT_API_ENTRY = 2;
29  // Exit event on the client side of a binderized HAL.
30  CLIENT_API_EXIT = 3;
31  // Entry event of a synchronize callback.
32  SYNC_CALLBACK_ENTRY = 4;
33  // Exit event of a synchronize callback.
34  SYNC_CALLBACK_EXIT = 5;
35  // Entry event of a asynchronize callback.
36  ASYNC_CALLBACK_ENTRY = 6;
37  // Exit event of a asynchronize callback.
38  ASYNC_CALLBACK_EXIT = 7;
39  // Entry event of a passthrough HAL.
40  PASSTHROUGH_ENTRY = 8;
41  // Exit event of a passthrough HAL.
42  PASSTHROUGH_EXIT = 9;
43}
44
45// To specify a VTS profiling record.
46message VtsProfilingRecord {
47  // The timestamp of the profiling record.
48  optional int64 timestamp = 1;
49  // Type of the profiling event.
50  optional InstrumentationEventType event = 2;
51  // Package name of the profiling HAL.
52  optional bytes package = 3;
53  // Version of the profiling HAL.
54  optional float version = 4;
55  // Interface name of the profiling HAL.
56  optional bytes interface = 5;
57  // Message of the called function.
58  optional FunctionSpecificationMessage func_msg = 6;
59}
60
61message VtsProfilingMessage {
62  repeated VtsProfilingRecord records = 1;
63}
64