Skip to content

Commit 37b580d

Browse files
SiqiaoWu1993Google-ML-Automation
authored andcommitted
Add a trace type for Jax serving
PiperOrigin-RevId: 758303660
1 parent e881b3a commit 37b580d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

third_party/tsl/tsl/profiler/lib/context_types.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ const char* GetContextTypeString(ContextType context_type) {
5050
return "pjrt_library_call";
5151
case ContextType::kThreadpoolEvent:
5252
return "threadpool_event";
53+
case ContextType::kJaxServingExecutor:
54+
return "jax_serving";
5355
}
5456
}
5557

third_party/tsl/tsl/profiler/lib/context_types.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ enum class ContextType : int {
3838
kPathwaysExecutor,
3939
kPjrtLibraryCall,
4040
kThreadpoolEvent,
41-
kLastContextType = ContextType::kTpuLaunch,
41+
kJaxServingExecutor,
42+
kLastContextType = ContextType::kJaxServingExecutor,
4243
};
4344

4445
// In XFlow we encode context type as flow category as 6 bits.

0 commit comments

Comments
 (0)