Skip to content

Commit

Permalink
This CL adds a filter mask to BFCAllocator::AddTraceMe so we can coll…
Browse files Browse the repository at this point in the history
…ect only memory TraceMe events.

PiperOrigin-RevId: 700477323
  • Loading branch information
tensorflower-gardener authored and copybara-github committed Nov 26, 2024
1 parent a5a0523 commit a0c5fb9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tsl/profiler/protobuf/profiler_options.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package tensorflow;

// Next ID: 11
// Next ID: 12
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
Expand Down Expand Up @@ -63,6 +63,16 @@ message ProfileOptions {

// Directory to save profile data to. No-op when empty.
string repository_path = 10;

message TraceOptions {
// Filter mask for TraceMe events. If the traceme_filter_mask is set, a
// TraceMe event will be recorded if it passes the filter.
// Only lowest 32 bits of the mask are used. The higher 32 bits are reserved
// and won't be applied if set.
uint64 host_traceme_filter_mask = 1;
}

TraceOptions trace_options = 11;
}

// Options for remote profiler session manager.
Expand Down

0 comments on commit a0c5fb9

Please sign in to comment.