Skip to content

Commit

Permalink
Add transmission/delay budgets to XProf MXLA trace/graph viewer.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 675340215
  • Loading branch information
Google-ML-Automation committed Sep 16, 2024
1 parent 0cc9959 commit 90300c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions third_party/tsl/tsl/profiler/utils/xplane_schema.cc
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ const MegaScaleStatTypeMap& GetMegaScaleStatTypeMap() {
{"chunk", kMegaScaleChunk},
{"launch_id", kMegaScaleLaunchId},
{"loop_iteration", kMegaScaleLoopIteration},
{"transmission_budget_us", kMegaScaleTransmissionBudgetUs},
{"delay_budget_us", kMegaScaleDelayBudgetUs},
{"graph_protos", kMegaScaleGraphProtos},
{"network_transport_latency_us", kMegaScaleNetworkTransportLatency},
});
Expand Down
4 changes: 3 additions & 1 deletion third_party/tsl/tsl/profiler/utils/xplane_schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,9 @@ enum MegaScaleStatType : uint8_t {
kMegaScaleLoopIteration,
kMegaScaleGraphProtos,
kMegaScaleNetworkTransportLatency,
kLastMegaScaleStatType = kMegaScaleNetworkTransportLatency,
kMegaScaleTransmissionBudgetUs,
kMegaScaleDelayBudgetUs,
kLastMegaScaleStatType = kMegaScaleDelayBudgetUs,
};

enum TaskEnvStatType {
Expand Down

0 comments on commit 90300c7

Please sign in to comment.