|
16 | 16 | // Invoked by contrib/rust-sdk/tools/gen_rust_protos |
17 | 17 | // DO NOT EDIT. |
18 | 18 |
|
| 19 | +use crate::pb_enum; |
19 | 20 | use crate::pb_msg; |
20 | 21 |
|
| 22 | +pb_enum!(ActivityNameFilterNameBase { |
| 23 | + MANGLED_KERNEL_NAME: 0, |
| 24 | + DEMANGLED_KERNEL_NAME: 1, |
| 25 | +}); |
| 26 | + |
21 | 27 | pb_msg!(GpuCounterConfig { |
22 | 28 | counter_period_ns: u64, primitive, 1, |
23 | 29 | counter_ids: u32, primitive, 2, |
| 30 | + counter_names: String, primitive, 6, |
24 | 31 | instrumented_sampling: bool, primitive, 3, |
| 32 | + instrumented_sampling_config: GpuCounterConfigInstrumentedSamplingConfig, msg, 5, |
25 | 33 | fix_gpu_clock: bool, primitive, 4, |
26 | 34 | }); |
| 35 | + |
| 36 | +pb_msg!(GpuCounterConfigInstrumentedSamplingConfig { |
| 37 | + activity_name_filters: GpuCounterConfigInstrumentedSamplingConfigActivityNameFilter, msg, 3, |
| 38 | + activity_tx_include_globs: String, primitive, 6, |
| 39 | + activity_tx_exclude_globs: String, primitive, 7, |
| 40 | + activity_ranges: GpuCounterConfigInstrumentedSamplingConfigActivityRange, msg, 5, |
| 41 | +}); |
| 42 | + |
| 43 | +pb_msg!(GpuCounterConfigInstrumentedSamplingConfigActivityRange { |
| 44 | + skip: u32, primitive, 1, |
| 45 | + count: u32, primitive, 2, |
| 46 | +}); |
| 47 | + |
| 48 | +pb_msg!(GpuCounterConfigInstrumentedSamplingConfigActivityNameFilter { |
| 49 | + name_glob: String, primitive, 1, |
| 50 | + name_base: ActivityNameFilterNameBase, enum, 2, |
| 51 | +}); |
0 commit comments