| package( |
| default_visibility = ["//tensorflow/core/profiler:internal"], |
| licenses = ["notice"], # Apache 2.0 |
| ) |
| |
| cc_library( |
| name = "host_threads_xplane_to_tf_metrics_db", |
| srcs = ["host_threads_xplane_to_tf_metrics_db.cc"], |
| hdrs = ["host_threads_xplane_to_tf_metrics_db.h"], |
| deps = [ |
| ":op_metrics_db_combiner", |
| ":op_stack", |
| "//tensorflow/core:lib", |
| "//tensorflow/core:lib_internal", |
| "//tensorflow/core/profiler/protobuf:op_metrics_proto_cc", |
| "//tensorflow/core/profiler/protobuf:xplane_proto_cc", |
| "//tensorflow/core/profiler/utils:event_span", |
| "//tensorflow/core/profiler/utils:op_utils", |
| "//tensorflow/core/profiler/utils:tf_op_utils", |
| "//tensorflow/core/profiler/utils:timespan", |
| "//tensorflow/core/profiler/utils:xplane_visitor", |
| "@com_google_absl//absl/algorithm:container", |
| "@com_google_absl//absl/container:flat_hash_map", |
| ], |
| ) |
| |
| cc_library( |
| name = "run_metadata_to_trace_events", |
| srcs = ["run_metadata_to_trace_events.cc"], |
| hdrs = ["run_metadata_to_trace_events.h"], |
| deps = [ |
| "//tensorflow/core:lib", |
| "//tensorflow/core:protos_all_cc", |
| "@com_google_absl//absl/strings", |
| ], |
| ) |
| |
| cc_library( |
| name = "op_metrics_db_combiner", |
| srcs = ["op_metrics_db_combiner.cc"], |
| hdrs = ["op_metrics_db_combiner.h"], |
| deps = [ |
| "//tensorflow/core:lib", |
| "//tensorflow/core/profiler/protobuf:op_metrics_proto_cc", |
| "//tensorflow/core/profiler/utils:op_metrics_db_utils", |
| ], |
| ) |
| |
| cc_library( |
| name = "op_metrics_to_record", |
| srcs = ["op_metrics_to_record.cc"], |
| hdrs = ["op_metrics_to_record.h"], |
| deps = [ |
| "//tensorflow/core/profiler/protobuf:op_metrics_proto_cc", |
| "//tensorflow/core/profiler/utils:math_utils", |
| "//tensorflow/core/profiler/utils:time_utils", |
| "@com_google_absl//absl/algorithm:container", |
| ], |
| ) |
| |
| cc_library( |
| name = "op_stack", |
| hdrs = ["op_stack.h"], |
| deps = [ |
| "//tensorflow/core:lib", |
| ], |
| ) |
| |
| cc_library( |
| name = "op_stats_to_input_pipeline_analysis", |
| srcs = ["op_stats_to_input_pipeline_analysis.cc"], |
| hdrs = ["op_stats_to_input_pipeline_analysis.h"], |
| deps = [ |
| ":op_metrics_to_record", |
| "//tensorflow/core:lib", |
| "//tensorflow/core:lib_internal", |
| "//tensorflow/core/platform:logging", |
| "//tensorflow/core/profiler/protobuf:hardware_types_proto_cc", |
| "//tensorflow/core/profiler/protobuf:input_pipeline_proto_cc", |
| "//tensorflow/core/profiler/protobuf:op_metrics_proto_cc", |
| "//tensorflow/core/profiler/protobuf:op_stats_proto_cc", |
| "//tensorflow/core/profiler/protobuf:steps_db_proto_cc", |
| "//tensorflow/core/profiler/utils:event_span", |
| "//tensorflow/core/profiler/utils:math_utils", |
| "//tensorflow/core/profiler/utils:tf_op_utils", |
| "//tensorflow/core/profiler/utils:time_utils", |
| "//tensorflow/core/util:stats_calculator_portable", |
| "@com_google_absl//absl/algorithm:container", |
| "@com_google_absl//absl/container:flat_hash_map", |
| "@com_google_absl//absl/strings", |
| ], |
| ) |
| |
| cc_library( |
| name = "op_stats_to_tf_stats", |
| srcs = ["op_stats_to_tf_stats.cc"], |
| hdrs = ["op_stats_to_tf_stats.h"], |
| deps = [ |
| ":op_metrics_to_record", |
| "//tensorflow/core/profiler/protobuf:op_metrics_proto_cc", |
| "//tensorflow/core/profiler/protobuf:op_stats_proto_cc", |
| "//tensorflow/core/profiler/protobuf:tf_stats_proto_cc", |
| "//tensorflow/core/profiler/utils:op_metrics_db_utils", |
| "//tensorflow/core/profiler/utils:tf_op_utils", |
| "//tensorflow/core/profiler/utils:time_utils", |
| "@com_google_absl//absl/container:flat_hash_set", |
| ], |
| ) |
| |
| cc_library( |
| name = "step_events_to_steps_db", |
| srcs = ["step_events_to_steps_db.cc"], |
| hdrs = ["step_events_to_steps_db.h"], |
| deps = [ |
| "//tensorflow/core:lib", |
| "//tensorflow/core:lib_internal", |
| "//tensorflow/core/profiler/protobuf:steps_db_proto_cc", |
| "//tensorflow/core/profiler/utils:event_span", |
| ], |
| ) |
| |
| cc_library( |
| name = "xplane_to_op_stats", |
| srcs = ["xplane_to_op_stats.cc"], |
| hdrs = ["xplane_to_op_stats.h"], |
| deps = [ |
| ":host_threads_xplane_to_tf_metrics_db", |
| "//tensorflow/core/profiler/protobuf:op_stats_proto_cc", |
| "//tensorflow/core/profiler/protobuf:xplane_proto_cc", |
| "//tensorflow/core/profiler/utils:xplane_schema", |
| "//tensorflow/core/profiler/utils:xplane_utils", |
| ], |
| ) |
| |
| cc_library( |
| name = "xplane_to_step_events", |
| srcs = ["xplane_to_step_events.cc"], |
| hdrs = ["xplane_to_step_events.h"], |
| deps = [ |
| "//tensorflow/core:lib", |
| "//tensorflow/core/profiler/protobuf:steps_db_proto_cc", |
| "//tensorflow/core/profiler/protobuf:xplane_proto_cc", |
| "//tensorflow/core/profiler/utils:event_span", |
| "//tensorflow/core/profiler/utils:metadata_matcher", |
| "//tensorflow/core/profiler/utils:trace_utils", |
| "//tensorflow/core/profiler/utils:xplane_schema", |
| "//tensorflow/core/profiler/utils:xplane_visitor", |
| ], |
| ) |