diff --git a/xprof/utils/performance_info_wrapper.cc b/xprof/utils/performance_info_wrapper.cc index 610315e1..7cf9f5e3 100644 --- a/xprof/utils/performance_info_wrapper.cc +++ b/xprof/utils/performance_info_wrapper.cc @@ -32,8 +32,7 @@ limitations under the License. namespace tensorflow { namespace profiler { -MemoryAccessBreakdown PerformanceInfoWrapper::GetMemmoryAccessBreakdown() - const { +MemoryAccessBreakdown PerformanceInfoWrapper::GetMemoryAccessBreakdown() const { MemoryAccessBreakdown breakdown; for (const auto& m : performance_info_->memory_accessed_breakdown()) { auto* memory_access = breakdown.add_memory_accessed(); diff --git a/xprof/utils/performance_info_wrapper.h b/xprof/utils/performance_info_wrapper.h index fc855798..f1e0d87c 100644 --- a/xprof/utils/performance_info_wrapper.h +++ b/xprof/utils/performance_info_wrapper.h @@ -71,7 +71,7 @@ class PerformanceInfoWrapper { // Convert XLA's memory access breakdown into TF's counterpart. // TODO(b/408280338) code cleanup. - tensorflow::profiler::MemoryAccessBreakdown GetMemmoryAccessBreakdown() const; + tensorflow::profiler::MemoryAccessBreakdown GetMemoryAccessBreakdown() const; private: PerformanceInfoWrapper(std::unique_ptr performance_info, diff --git a/xprof/utils/performance_info_wrapper_test.cc b/xprof/utils/performance_info_wrapper_test.cc index 1149af23..3f8c1e1c 100644 --- a/xprof/utils/performance_info_wrapper_test.cc +++ b/xprof/utils/performance_info_wrapper_test.cc @@ -130,7 +130,7 @@ TEST(PerformanceInfoWrapper, TestMemoryAccessed) { std::unique_ptr performance_info_wrapper = PerformanceInfoWrapper::Create(std::move(performance_info)); #if defined(PLATFORM_GOOGLE) - EXPECT_THAT(performance_info_wrapper->GetMemmoryAccessBreakdown(), + EXPECT_THAT(performance_info_wrapper->GetMemoryAccessBreakdown(), IgnoringRepeatedFieldOrdering(EqualsProto(R"pb( memory_accessed { operation_type: READ