diff --git a/tensorflow/core/profiler/lib/BUILD b/tensorflow/core/profiler/lib/BUILD index 57a3fa8a586..d791106dc18 100644 --- a/tensorflow/core/profiler/lib/BUILD +++ b/tensorflow/core/profiler/lib/BUILD @@ -53,7 +53,7 @@ cc_library( "@com_google_absl//absl/memory", "//tensorflow/core:protos_all_cc", ] + if_not_android([ - ":profiler_utils", + ":profiler_lock", "//tensorflow/core/profiler/internal:profiler_factory", "//tensorflow/core/profiler/utils:derived_timeline", "//tensorflow/core/profiler/utils:group_events", @@ -164,9 +164,9 @@ cc_library( ) cc_library( - name = "profiler_utils", - srcs = ["profiler_utils.cc"], - hdrs = ["profiler_utils.h"], + name = "profiler_lock", + srcs = ["profiler_lock.cc"], + hdrs = ["profiler_lock.h"], visibility = ["//tensorflow/core/profiler:internal"], ) diff --git a/tensorflow/core/profiler/lib/profiler_utils.cc b/tensorflow/core/profiler/lib/profiler_lock.cc similarity index 95% rename from tensorflow/core/profiler/lib/profiler_utils.cc rename to tensorflow/core/profiler/lib/profiler_lock.cc index ce3278f4519..b276b00e766 100644 --- a/tensorflow/core/profiler/lib/profiler_utils.cc +++ b/tensorflow/core/profiler/lib/profiler_lock.cc @@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/core/profiler/lib/profiler_utils.h" +#include "tensorflow/core/profiler/lib/profiler_lock.h" #include <atomic> diff --git a/tensorflow/core/profiler/lib/profiler_utils.h b/tensorflow/core/profiler/lib/profiler_lock.h similarity index 85% rename from tensorflow/core/profiler/lib/profiler_utils.h rename to tensorflow/core/profiler/lib/profiler_lock.h index 140f12776db..75c49f77d54 100644 --- a/tensorflow/core/profiler/lib/profiler_utils.h +++ b/tensorflow/core/profiler/lib/profiler_lock.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CORE_PROFILER_LIB_PROFILER_UTILS_H_ -#define TENSORFLOW_CORE_PROFILER_LIB_PROFILER_UTILS_H_ +#ifndef TENSORFLOW_CORE_PROFILER_LIB_PROFILER_LOCK_H_ +#define TENSORFLOW_CORE_PROFILER_LIB_PROFILER_LOCK_H_ namespace tensorflow { namespace profiler { @@ -28,4 +28,4 @@ void ReleaseProfilerLock(); } // namespace profiler } // namespace tensorflow -#endif // TENSORFLOW_CORE_PROFILER_LIB_PROFILER_UTILS_H_ +#endif // TENSORFLOW_CORE_PROFILER_LIB_PROFILER_LOCK_H_ diff --git a/tensorflow/core/profiler/lib/profiler_session.cc b/tensorflow/core/profiler/lib/profiler_session.cc index 8a20ef1dec9..b93725fe331 100644 --- a/tensorflow/core/profiler/lib/profiler_session.cc +++ b/tensorflow/core/profiler/lib/profiler_session.cc @@ -32,7 +32,7 @@ limitations under the License. #if !defined(IS_MOBILE_PLATFORM) #include "tensorflow/core/profiler/internal/profiler_factory.h" -#include "tensorflow/core/profiler/lib/profiler_utils.h" +#include "tensorflow/core/profiler/lib/profiler_lock.h" #include "tensorflow/core/profiler/utils/derived_timeline.h" #include "tensorflow/core/profiler/utils/group_events.h" #include "tensorflow/core/profiler/utils/xplane_schema.h"