/*
 * 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;

message PerfettoCmdState {
  // These are fixed size so that the file is always a constant length.
  optional fixed64 first_trace_timestamp = 1;
  optional fixed64 last_trace_timestamp = 2;
  // Total of bytes uploaded since first_trace_timestamp.
  optional fixed64 total_bytes_uploaded = 3;
}
