Rename profiler_utils to profiler_lock.

PiperOrigin-RevId: 331880078
Change-Id: I61b0be9baec6e167bc0b04085af63567abb3205a
This commit is contained in:
Yi Situ 2020-09-15 16:20:54 -07:00 committed by TensorFlower Gardener
parent 71b0a01408
commit 1b9addc305
4 changed files with 9 additions and 9 deletions

View File

@ -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"],
)

View File

@ -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>

View File

@ -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_

View File

@ -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"