From 5860113dacf449f05c5f824d26d88c5b143cab67 Mon Sep 17 00:00:00 2001 From: Sannidhya Chauhan Date: Thu, 23 Apr 2026 06:59:40 -0700 Subject: [PATCH] Add perf_counters option to ProfilerOptions PiperOrigin-RevId: 904434657 --- tsl/profiler/protobuf/profiler_options.proto | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tsl/profiler/protobuf/profiler_options.proto b/tsl/profiler/protobuf/profiler_options.proto index 04c46af2d..413630b2b 100644 --- a/tsl/profiler/protobuf/profiler_options.proto +++ b/tsl/profiler/protobuf/profiler_options.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package tensorflow; -// Next ID: 16 +// Next ID: 17 message ProfileOptions { // Some default value of option are not proto3 default value. Use this version // to determine if we should use default option value instead of proto3 @@ -103,6 +103,9 @@ message ProfileOptions { // If set, this hostname will be used to name the profile file. string override_hostname = 15; + + // Also enable and collect default performance counters. + optional bool perf_counters = 16; } // Options for remote profiler session manager.