Skip to content

Commit

Permalink
[XLA:GPU] Add option to return FDO profile as textproto.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 619105468
  • Loading branch information
cheshire authored and jax authors committed Mar 26, 2024
1 parent 86a7086 commit 33cf53c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jax/_src/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
import os
import socketserver
import threading

from typing import Callable
from typing import Callable, Union

from jax._src import traceback_util
traceback_util.register_exclusion(__file__)
Expand Down Expand Up @@ -211,7 +210,7 @@ def stop_trace():
_profile_state.reset()


def stop_and_get_fdo_profile() -> bytes:
def stop_and_get_fdo_profile() -> Union[bytes, str]:
"""Stops the currently-running profiler trace and export fdo_profile.
Currently, this is only supported for GPU.
Expand Down

0 comments on commit 33cf53c

Please sign in to comment.