OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 // |
| 5 // Protocol buffers for creating performance traces on requests. |
| 6 |
| 7 syntax = "proto2"; |
| 8 |
| 9 option optimize_for = LITE_RUNTIME; |
| 10 |
| 11 package remoting; |
| 12 |
| 13 // Represents one entry in the TraceBuffer below. Collates information that |
| 14 // would be useful for analyzing the performance in a program trace. |
| 15 message TraceRecord { |
| 16 required string annotation = 1; |
| 17 required int64 timestamp = 2; // In micros from epoch. |
| 18 |
| 19 // -- Information for constructing a distributed trace. -- |
| 20 // TODO(ajwong): Decide which of these are useful, and remove rest. |
| 21 |
| 22 // Identifies the machine. |
| 23 optional int64 source_id = 3 [ default = -1 ]; |
| 24 |
| 25 // Identifies the thread on the machine. |
| 26 optional fixed64 thread_id = 4; |
| 27 |
| 28 // Estimated skew from master clock. |
| 29 optional int64 clock_skew = 5 [ default = 0 ]; |
| 30 } |
| 31 |
| 32 // Protocol buffer used for collecting stats, and performance data. |
| 33 message TraceBuffer { |
| 34 required string name = 1; // Name of this trace. |
| 35 repeated TraceRecord record = 2; |
| 36 } |
| 37 |
OLD | NEW |