xprof-nightly 2.22.3a20251208__cp311-none-manylinux2014_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- xprof/__init__.py +22 -0
- xprof/convert/_pywrap_profiler_plugin.so +0 -0
- xprof/convert/csv_writer.py +87 -0
- xprof/convert/raw_to_tool_data.py +232 -0
- xprof/convert/trace_events_json.py +105 -0
- xprof/integration_tests/tf_mnist.py +100 -0
- xprof/integration_tests/tf_profiler_session.py +40 -0
- xprof/integration_tests/tpu/tensorflow/tpu_tf2_keras_test.py +183 -0
- xprof/profile_plugin.py +1521 -0
- xprof/profile_plugin_loader.py +82 -0
- xprof/protobuf/dcn_collective_info_pb2.py +44 -0
- xprof/protobuf/dcn_slack_analysis_pb2.py +42 -0
- xprof/protobuf/diagnostics_pb2.py +36 -0
- xprof/protobuf/event_time_fraction_analyzer_pb2.py +42 -0
- xprof/protobuf/hardware_types_pb2.py +40 -0
- xprof/protobuf/hlo_stats_pb2.py +39 -0
- xprof/protobuf/inference_stats_pb2.py +86 -0
- xprof/protobuf/input_pipeline_pb2.py +52 -0
- xprof/protobuf/kernel_stats_pb2.py +38 -0
- xprof/protobuf/memory_profile_pb2.py +54 -0
- xprof/protobuf/memory_viewer_preprocess_pb2.py +49 -0
- xprof/protobuf/op_metrics_pb2.py +65 -0
- xprof/protobuf/op_profile_pb2.py +49 -0
- xprof/protobuf/op_stats_pb2.py +71 -0
- xprof/protobuf/overview_page_pb2.py +64 -0
- xprof/protobuf/pod_stats_pb2.py +45 -0
- xprof/protobuf/pod_viewer_pb2.py +61 -0
- xprof/protobuf/power_metrics_pb2.py +38 -0
- xprof/protobuf/roofline_model_pb2.py +42 -0
- xprof/protobuf/smart_suggestion_pb2.py +38 -0
- xprof/protobuf/source_info_pb2.py +36 -0
- xprof/protobuf/source_stats_pb2.py +48 -0
- xprof/protobuf/steps_db_pb2.py +76 -0
- xprof/protobuf/task_pb2.py +37 -0
- xprof/protobuf/tf_data_stats_pb2.py +72 -0
- xprof/protobuf/tf_function_pb2.py +52 -0
- xprof/protobuf/tf_stats_pb2.py +40 -0
- xprof/protobuf/tfstreamz_pb2.py +40 -0
- xprof/protobuf/topology_pb2.py +50 -0
- xprof/protobuf/tpu_input_pipeline_pb2.py +43 -0
- xprof/protobuf/trace_events_old_pb2.py +54 -0
- xprof/protobuf/trace_events_pb2.py +64 -0
- xprof/protobuf/trace_events_raw_pb2.py +45 -0
- xprof/protobuf/trace_filter_config_pb2.py +40 -0
- xprof/server.py +319 -0
- xprof/standalone/base_plugin.py +52 -0
- xprof/standalone/context.py +22 -0
- xprof/standalone/data_provider.py +32 -0
- xprof/standalone/plugin_asset_util.py +131 -0
- xprof/standalone/plugin_event_multiplexer.py +185 -0
- xprof/standalone/tensorboard_shim.py +31 -0
- xprof/static/bundle.js +130500 -0
- xprof/static/index.html +64 -0
- xprof/static/index.js +3 -0
- xprof/static/materialicons.woff2 +0 -0
- xprof/static/styles.css +1 -0
- xprof/static/trace_viewer_index.html +3929 -0
- xprof/static/trace_viewer_index.js +15906 -0
- xprof/static/zone.js +3558 -0
- xprof/version.py +17 -0
- xprof_nightly-2.22.3a20251208.dist-info/METADATA +301 -0
- xprof_nightly-2.22.3a20251208.dist-info/RECORD +65 -0
- xprof_nightly-2.22.3a20251208.dist-info/WHEEL +5 -0
- xprof_nightly-2.22.3a20251208.dist-info/entry_points.txt +5 -0
- xprof_nightly-2.22.3a20251208.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: plugin/xprof/protobuf/source_stats.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'plugin/xprof/protobuf/source_stats.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(plugin/xprof/protobuf/source_stats.proto\x12\x13tensorflow.profiler\"\x95\x04\n\x0bSourceStats\x12U\n\x14\x66ile_name_to_metrics\x18\x01 \x03(\x0b\x32\x37.tensorflow.profiler.SourceStats.FileNameToMetricsEntry\x1an\n\x06Metric\x12\x13\n\x0boccurrences\x18\x01 \x01(\x04\x12\x14\n\x0cself_time_ps\x18\x02 \x01(\x04\x12\x0f\n\x07time_ps\x18\x03 \x01(\x04\x12\r\n\x05\x66lops\x18\x04 \x01(\x04\x12\x19\n\x11\x66lops_utilization\x18\x05 \x01(\x01\x1a\xd6\x01\n\x0b\x46ileMetrics\x12\x63\n\x15line_number_to_metric\x18\x01 \x03(\x0b\x32\x44.tensorflow.profiler.SourceStats.FileMetrics.LineNumberToMetricEntry\x1a\x62\n\x17LineNumberToMetricEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.tensorflow.profiler.SourceStats.Metric:\x02\x38\x01\x1a\x66\n\x16\x46ileNameToMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.tensorflow.profiler.SourceStats.FileMetrics:\x02\x38\x01\x62\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'plugin.xprof.protobuf.source_stats_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
DESCRIPTOR._loaded_options = None
|
|
34
|
+
_globals['_SOURCESTATS_FILEMETRICS_LINENUMBERTOMETRICENTRY']._loaded_options = None
|
|
35
|
+
_globals['_SOURCESTATS_FILEMETRICS_LINENUMBERTOMETRICENTRY']._serialized_options = b'8\001'
|
|
36
|
+
_globals['_SOURCESTATS_FILENAMETOMETRICSENTRY']._loaded_options = None
|
|
37
|
+
_globals['_SOURCESTATS_FILENAMETOMETRICSENTRY']._serialized_options = b'8\001'
|
|
38
|
+
_globals['_SOURCESTATS']._serialized_start=66
|
|
39
|
+
_globals['_SOURCESTATS']._serialized_end=599
|
|
40
|
+
_globals['_SOURCESTATS_METRIC']._serialized_start=168
|
|
41
|
+
_globals['_SOURCESTATS_METRIC']._serialized_end=278
|
|
42
|
+
_globals['_SOURCESTATS_FILEMETRICS']._serialized_start=281
|
|
43
|
+
_globals['_SOURCESTATS_FILEMETRICS']._serialized_end=495
|
|
44
|
+
_globals['_SOURCESTATS_FILEMETRICS_LINENUMBERTOMETRICENTRY']._serialized_start=397
|
|
45
|
+
_globals['_SOURCESTATS_FILEMETRICS_LINENUMBERTOMETRICENTRY']._serialized_end=495
|
|
46
|
+
_globals['_SOURCESTATS_FILENAMETOMETRICSENTRY']._serialized_start=497
|
|
47
|
+
_globals['_SOURCESTATS_FILENAMETOMETRICSENTRY']._serialized_end=599
|
|
48
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: plugin/xprof/protobuf/steps_db.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'plugin/xprof/protobuf/steps_db.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
|
26
|
+
from xprof.protobuf import op_metrics_pb2 as plugin_dot_xprof_dot_protobuf_dot_op__metrics__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$plugin/xprof/protobuf/steps_db.proto\x12\x13tensorflow.profiler\x1a\x19google/protobuf/any.proto\x1a&plugin/xprof/protobuf/op_metrics.proto\"\x90\x02\n\x14GenericStepBreakdown\x12\x46\n\x07type_ps\x18\x01 \x03(\x0b\x32\x35.tensorflow.profiler.GenericStepBreakdown.TypePsEntry\x12N\n\x0b\x63\x61tegory_ps\x18\x02 \x03(\x0b\x32\x39.tensorflow.profiler.GenericStepBreakdown.CategoryPsEntry\x1a-\n\x0bTypePsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x04:\x02\x38\x01\x1a\x31\n\x0f\x43\x61tegoryPsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x04:\x02\x38\x01\"\x9b\x04\n\x10TpuStepBreakdown\x12\x1a\n\x12infeed_duration_ps\x18\x01 \x01(\x04\x12\x17\n\x0fhost_outfeed_ps\x18\x02 \x01(\x04\x12!\n\x19wait_for_scv0_duration_ps\x18\x03 \x01(\x04\x12 \n\x18scv0_infeed_transform_ps\x18\x04 \x01(\x04\x12\x17\n\x0fscv0_outfeed_ps\x18\x05 \x01(\x04\x12\x17\n\x0f\x63rs_duration_ps\x18\x06 \x01(\x04\x12\x1b\n\x13scv0_infeed_percent\x18\x07 \x01(\x01\x12\x18\n\x10send_duration_ps\x18\x08 \x01(\x04\x12\x18\n\x10recv_duration_ps\x18\t \x01(\x04\x12\x1d\n\x15host_send_duration_ps\x18\x0f \x01(\x04\x12\x1d\n\x15host_recv_duration_ps\x18\x10 \x01(\x04\x12\x31\n)wait_for_megacore_fusion_peer_duration_ps\x18\x0e \x01(\x04\x12 \n\x18overlay_wait_duration_ps\x18\x0b \x01(\x04\x12\x1d\n\x15high_flops_compute_ps\x18\x0c \x01(\x04\x12\x12\n\ntc_idle_ps\x18\r \x01(\x04\x12\x12\n\ntc_busy_ps\x18\x11 \x01(\x04\x12\x14\n\x0cscv0_busy_ps\x18\x12 \x01(\x04\x12\x14\n\x0cscv0_step_ps\x18\x13 \x01(\x04J\x04\x08\n\x10\x0b\"\x85\x01\n\x17SparseCoreStepBreakdown\x12\x15\n\rsc_compute_ps\x18\x01 \x01(\x04\x12\x14\n\x0csc_infeed_ps\x18\x02 \x01(\x04\x12\x15\n\rsc_outfeed_ps\x18\x03 \x01(\x04\x12\x12\n\nsc_idle_ps\x18\x04 \x01(\x04\x12\x12\n\nsc_busy_ps\x18\x05 \x01(\x04\"V\n\x14\x44\x65viceMemoryTransfer\x12\x12\n\noccurrence\x18\x01 \x01(\x04\x12\x0f\n\x07time_us\x18\x02 \x01(\x01\x12\x19\n\x11\x62ytes_transferred\x18\x03 \x01(\x04\"\xca\x01\n\x0eStepInfoResult\x12\x10\n\x08step_num\x18\x01 \x01(\r\x12\x11\n\tstep_name\x18\x05 \x01(\t\x12\x13\n\x0b\x64uration_ps\x18\x02 \x01(\x04\x12\x10\n\x08\x62\x65gin_ps\x18\x03 \x01(\x04\x12,\n\x0estep_breakdown\x18\x04 \x01(\x0b\x32\x14.google.protobuf.Any\x12>\n\x0b\x63ollectives\x18\x06 \x01(\x0b\x32).tensorflow.profiler.DeviceMemoryTransfer\"\x83\x01\n\rAllReduceInfo\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x10\n\x04name\x18\x02 \x01(\tB\x02\x18\x01\x12\x15\n\rall_reduce_id\x18\x03 \x01(\x04\x12\x15\n\rstart_time_ps\x18\x04 \x01(\x04\x12\x13\n\x0b\x65nd_time_ps\x18\x05 \x01(\x04\x12\x11\n\tbyte_size\x18\x06 \x01(\x04\"P\n\x11\x41llReduceDbResult\x12;\n\x0f\x61ll_reduce_info\x18\x01 \x03(\x0b\x32\".tensorflow.profiler.AllReduceInfo\"\xc4\x05\n\x0fPerCoreStepInfo\x12\x10\n\x08step_num\x18\x01 \x01(\r\x12U\n\x12step_info_per_core\x18\x02 \x03(\x0b\x32\x39.tensorflow.profiler.PerCoreStepInfo.StepInfoPerCoreEntry\x12\x38\n\x0ehlo_metrics_db\x18\x03 \x01(\x0b\x32 .tensorflow.profiler.OpMetricsDb\x12\x61\n\x19\x63ore_id_to_replica_id_map\x18\x05 \x03(\x0b\x32>.tensorflow.profiler.PerCoreStepInfo.CoreIdToReplicaIdMapEntry\x12\\\n\x16\x61ll_reduce_db_per_core\x18\x06 \x03(\x0b\x32<.tensorflow.profiler.PerCoreStepInfo.AllReduceDbPerCoreEntry\x12J\n\x17\x64\x65vice_memory_transfers\x18\x07 \x03(\x0b\x32).tensorflow.profiler.DeviceMemoryTransfer\x1a[\n\x14StepInfoPerCoreEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32#.tensorflow.profiler.StepInfoResult:\x02\x38\x01\x1a;\n\x19\x43oreIdToReplicaIdMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12\r\n\x05value\x18\x02 \x01(\r:\x02\x38\x01\x1a\x61\n\x17\x41llReduceDbPerCoreEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.tensorflow.profiler.AllReduceDbResult:\x02\x38\x01J\x04\x08\x04\x10\x05\"\xa2\x01\n\x12StepDatabaseResult\x12;\n\rstep_sequence\x18\x01 \x03(\x0b\x32$.tensorflow.profiler.PerCoreStepInfo\x12\x1b\n\x13use_incomplete_step\x18\x02 \x01(\x08\x12\x19\n\x11num_steps_dropped\x18\x03 \x01(\r\x12\x17\n\x0f\x65mpty_intersect\x18\x04 \x01(\x08\x62\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'plugin.xprof.protobuf.steps_db_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
DESCRIPTOR._loaded_options = None
|
|
36
|
+
_globals['_GENERICSTEPBREAKDOWN_TYPEPSENTRY']._loaded_options = None
|
|
37
|
+
_globals['_GENERICSTEPBREAKDOWN_TYPEPSENTRY']._serialized_options = b'8\001'
|
|
38
|
+
_globals['_GENERICSTEPBREAKDOWN_CATEGORYPSENTRY']._loaded_options = None
|
|
39
|
+
_globals['_GENERICSTEPBREAKDOWN_CATEGORYPSENTRY']._serialized_options = b'8\001'
|
|
40
|
+
_globals['_ALLREDUCEINFO'].fields_by_name['name']._loaded_options = None
|
|
41
|
+
_globals['_ALLREDUCEINFO'].fields_by_name['name']._serialized_options = b'\030\001'
|
|
42
|
+
_globals['_PERCORESTEPINFO_STEPINFOPERCOREENTRY']._loaded_options = None
|
|
43
|
+
_globals['_PERCORESTEPINFO_STEPINFOPERCOREENTRY']._serialized_options = b'8\001'
|
|
44
|
+
_globals['_PERCORESTEPINFO_COREIDTOREPLICAIDMAPENTRY']._loaded_options = None
|
|
45
|
+
_globals['_PERCORESTEPINFO_COREIDTOREPLICAIDMAPENTRY']._serialized_options = b'8\001'
|
|
46
|
+
_globals['_PERCORESTEPINFO_ALLREDUCEDBPERCOREENTRY']._loaded_options = None
|
|
47
|
+
_globals['_PERCORESTEPINFO_ALLREDUCEDBPERCOREENTRY']._serialized_options = b'8\001'
|
|
48
|
+
_globals['_GENERICSTEPBREAKDOWN']._serialized_start=129
|
|
49
|
+
_globals['_GENERICSTEPBREAKDOWN']._serialized_end=401
|
|
50
|
+
_globals['_GENERICSTEPBREAKDOWN_TYPEPSENTRY']._serialized_start=305
|
|
51
|
+
_globals['_GENERICSTEPBREAKDOWN_TYPEPSENTRY']._serialized_end=350
|
|
52
|
+
_globals['_GENERICSTEPBREAKDOWN_CATEGORYPSENTRY']._serialized_start=352
|
|
53
|
+
_globals['_GENERICSTEPBREAKDOWN_CATEGORYPSENTRY']._serialized_end=401
|
|
54
|
+
_globals['_TPUSTEPBREAKDOWN']._serialized_start=404
|
|
55
|
+
_globals['_TPUSTEPBREAKDOWN']._serialized_end=943
|
|
56
|
+
_globals['_SPARSECORESTEPBREAKDOWN']._serialized_start=946
|
|
57
|
+
_globals['_SPARSECORESTEPBREAKDOWN']._serialized_end=1079
|
|
58
|
+
_globals['_DEVICEMEMORYTRANSFER']._serialized_start=1081
|
|
59
|
+
_globals['_DEVICEMEMORYTRANSFER']._serialized_end=1167
|
|
60
|
+
_globals['_STEPINFORESULT']._serialized_start=1170
|
|
61
|
+
_globals['_STEPINFORESULT']._serialized_end=1372
|
|
62
|
+
_globals['_ALLREDUCEINFO']._serialized_start=1375
|
|
63
|
+
_globals['_ALLREDUCEINFO']._serialized_end=1506
|
|
64
|
+
_globals['_ALLREDUCEDBRESULT']._serialized_start=1508
|
|
65
|
+
_globals['_ALLREDUCEDBRESULT']._serialized_end=1588
|
|
66
|
+
_globals['_PERCORESTEPINFO']._serialized_start=1591
|
|
67
|
+
_globals['_PERCORESTEPINFO']._serialized_end=2299
|
|
68
|
+
_globals['_PERCORESTEPINFO_STEPINFOPERCOREENTRY']._serialized_start=2042
|
|
69
|
+
_globals['_PERCORESTEPINFO_STEPINFOPERCOREENTRY']._serialized_end=2133
|
|
70
|
+
_globals['_PERCORESTEPINFO_COREIDTOREPLICAIDMAPENTRY']._serialized_start=2135
|
|
71
|
+
_globals['_PERCORESTEPINFO_COREIDTOREPLICAIDMAPENTRY']._serialized_end=2194
|
|
72
|
+
_globals['_PERCORESTEPINFO_ALLREDUCEDBPERCOREENTRY']._serialized_start=2196
|
|
73
|
+
_globals['_PERCORESTEPINFO_ALLREDUCEDBPERCOREENTRY']._serialized_end=2293
|
|
74
|
+
_globals['_STEPDATABASERESULT']._serialized_start=2302
|
|
75
|
+
_globals['_STEPDATABASERESULT']._serialized_end=2464
|
|
76
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: plugin/xprof/protobuf/task.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'plugin/xprof/protobuf/task.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n plugin/xprof/protobuf/task.proto\x12\x13tensorflow.profiler\"\xf9\x02\n\x04Task\x12\x12\n\nchangelist\x18\x01 \x01(\x03\x12\x13\n\x0b\x63lean_build\x18\x02 \x01(\x08\x12\x12\n\nbuild_time\x18\x03 \x01(\x03\x12\x14\n\x0c\x62uild_target\x18\x04 \x01(\t\x12\x14\n\x0c\x63ommand_line\x18\x05 \x01(\t\x12\x12\n\nstart_time\x18\x06 \x01(\x03\x12\x14\n\x0ctask_address\x18\x07 \x01(\t\x12\x17\n\x0fprofile_time_ns\x18\x08 \x01(\x04\x12\x1b\n\x13profile_duration_ms\x18\t \x01(\r\x12\x18\n\x10host_trace_level\x18\n \x01(\r\x12\x1b\n\x13tensor_core_freq_hz\x18\x0b \x01(\x04\x12\x1b\n\x13sparse_core_freq_hz\x18\x0c \x01(\x04\x12\x13\n\x0bgtc_freq_hz\x18\r \x01(\x04\x12\x19\n\x11peak_memory_usage\x18\x0e \x01(\x04\x12\x11\n\tcpu_limit\x18\x0f \x01(\x01\x12\x11\n\tcpu_usage\x18\x10 \x01(\x01\x42\x03\xf8\x01\x01')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'plugin.xprof.protobuf.task_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\370\001\001'
|
|
35
|
+
_globals['_TASK']._serialized_start=58
|
|
36
|
+
_globals['_TASK']._serialized_end=435
|
|
37
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: plugin/xprof/protobuf/tf_data_stats.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'plugin/xprof/protobuf/tf_data_stats.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)plugin/xprof/protobuf/tf_data_stats.proto\x12\x13tensorflow.profiler\"\x84\x01\n\x0cIteratorStat\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x15\n\rstart_time_ps\x18\x02 \x01(\x03\x12\x13\n\x0b\x64uration_ps\x18\x03 \x01(\x03\x12\x14\n\x0cself_time_ps\x18\x04 \x01(\x03\x12\x13\n\x0bis_blocking\x18\x05 \x01(\x08\x12\x11\n\tnum_calls\x18\x06 \x01(\x03\"\xd6\x01\n\x10IteratorMetadata\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tparent_id\x18\x02 \x01(\x03\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x11\n\tlong_name\x18\x06 \x01(\t\x12\x10\n\x08is_async\x18\x04 \x01(\x08\x12\x41\n\x06params\x18\x05 \x03(\x0b\x32\x31.tensorflow.profiler.IteratorMetadata.ParamsEntry\x1a-\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x87\x02\n\x11InputPipelineStat\x12\x1e\n\x16\x62ottleneck_iterator_id\x18\x02 \x01(\x03\x12&\n\x1e\x62ottleneck_iterator_latency_ps\x18\x03 \x01(\x03\x12Q\n\x0eiterator_stats\x18\x01 \x03(\x0b\x32\x39.tensorflow.profiler.InputPipelineStat.IteratorStatsEntry\x1aW\n\x12IteratorStatsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32!.tensorflow.profiler.IteratorStat:\x02\x38\x01\"\xae\x01\n\x15InputPipelineMetadata\x12\n\n\x02id\x18\x01 \x01(\x03\x12J\n\x04type\x18\x02 \x01(\x0e\x32<.tensorflow.profiler.InputPipelineMetadata.InputPipelineType\x12\x0c\n\x04name\x18\x04 \x01(\t\")\n\x11InputPipelineType\x12\x08\n\x04HOST\x10\x00\x12\n\n\x06\x44\x45VICE\x10\x01J\x04\x08\x03\x10\x04\"\xe9\x01\n\x12InputPipelineStats\x12<\n\x08metadata\x18\x01 \x01(\x0b\x32*.tensorflow.profiler.InputPipelineMetadata\x12\x16\n\x0e\x61vg_latency_ps\x18\x03 \x01(\x03\x12\x16\n\x0emin_latency_ps\x18\x04 \x01(\x03\x12\x16\n\x0emax_latency_ps\x18\x05 \x01(\x03\x12\x16\n\x0enum_slow_calls\x18\x06 \x01(\x03\x12\x35\n\x05stats\x18\x02 \x03(\x0b\x32&.tensorflow.profiler.InputPipelineStat\"\xef\x02\n\x0bTfDataStats\x12Q\n\x11iterator_metadata\x18\x02 \x03(\x0b\x32\x36.tensorflow.profiler.TfDataStats.IteratorMetadataEntry\x12M\n\x0finput_pipelines\x18\x01 \x03(\x0b\x32\x34.tensorflow.profiler.TfDataStats.InputPipelinesEntry\x1a^\n\x15IteratorMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\x34\n\x05value\x18\x02 \x01(\x0b\x32%.tensorflow.profiler.IteratorMetadata:\x02\x38\x01\x1a^\n\x13InputPipelinesEntry\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.tensorflow.profiler.InputPipelineStats:\x02\x38\x01\"\xbc\x01\n\x18TfDataBottleneckAnalysis\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x16\n\x0einput_pipeline\x18\x02 \x01(\t\x12\x16\n\x0emax_latency_ps\x18\x03 \x01(\x03\x12\x15\n\riterator_name\x18\x04 \x01(\t\x12\x1a\n\x12iterator_long_name\x18\x05 \x01(\t\x12\x1b\n\x13iterator_latency_ps\x18\x07 \x01(\x03\x12\x12\n\nsuggestion\x18\x06 \x01(\t\"\xb2\x02\n\x13\x43ombinedTfDataStats\x12\x16\n\x0eis_input_bound\x18\x03 \x01(\x08\x12\x0f\n\x07summary\x18\x04 \x01(\t\x12J\n\x13\x62ottleneck_analysis\x18\x01 \x03(\x0b\x32-.tensorflow.profiler.TfDataBottleneckAnalysis\x12P\n\rtf_data_stats\x18\x02 \x03(\x0b\x32\x39.tensorflow.profiler.CombinedTfDataStats.TfDataStatsEntry\x1aT\n\x10TfDataStatsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .tensorflow.profiler.TfDataStats:\x02\x38\x01\x62\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'plugin.xprof.protobuf.tf_data_stats_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
DESCRIPTOR._loaded_options = None
|
|
34
|
+
_globals['_ITERATORMETADATA_PARAMSENTRY']._loaded_options = None
|
|
35
|
+
_globals['_ITERATORMETADATA_PARAMSENTRY']._serialized_options = b'8\001'
|
|
36
|
+
_globals['_INPUTPIPELINESTAT_ITERATORSTATSENTRY']._loaded_options = None
|
|
37
|
+
_globals['_INPUTPIPELINESTAT_ITERATORSTATSENTRY']._serialized_options = b'8\001'
|
|
38
|
+
_globals['_TFDATASTATS_ITERATORMETADATAENTRY']._loaded_options = None
|
|
39
|
+
_globals['_TFDATASTATS_ITERATORMETADATAENTRY']._serialized_options = b'8\001'
|
|
40
|
+
_globals['_TFDATASTATS_INPUTPIPELINESENTRY']._loaded_options = None
|
|
41
|
+
_globals['_TFDATASTATS_INPUTPIPELINESENTRY']._serialized_options = b'8\001'
|
|
42
|
+
_globals['_COMBINEDTFDATASTATS_TFDATASTATSENTRY']._loaded_options = None
|
|
43
|
+
_globals['_COMBINEDTFDATASTATS_TFDATASTATSENTRY']._serialized_options = b'8\001'
|
|
44
|
+
_globals['_ITERATORSTAT']._serialized_start=67
|
|
45
|
+
_globals['_ITERATORSTAT']._serialized_end=199
|
|
46
|
+
_globals['_ITERATORMETADATA']._serialized_start=202
|
|
47
|
+
_globals['_ITERATORMETADATA']._serialized_end=416
|
|
48
|
+
_globals['_ITERATORMETADATA_PARAMSENTRY']._serialized_start=371
|
|
49
|
+
_globals['_ITERATORMETADATA_PARAMSENTRY']._serialized_end=416
|
|
50
|
+
_globals['_INPUTPIPELINESTAT']._serialized_start=419
|
|
51
|
+
_globals['_INPUTPIPELINESTAT']._serialized_end=682
|
|
52
|
+
_globals['_INPUTPIPELINESTAT_ITERATORSTATSENTRY']._serialized_start=595
|
|
53
|
+
_globals['_INPUTPIPELINESTAT_ITERATORSTATSENTRY']._serialized_end=682
|
|
54
|
+
_globals['_INPUTPIPELINEMETADATA']._serialized_start=685
|
|
55
|
+
_globals['_INPUTPIPELINEMETADATA']._serialized_end=859
|
|
56
|
+
_globals['_INPUTPIPELINEMETADATA_INPUTPIPELINETYPE']._serialized_start=812
|
|
57
|
+
_globals['_INPUTPIPELINEMETADATA_INPUTPIPELINETYPE']._serialized_end=853
|
|
58
|
+
_globals['_INPUTPIPELINESTATS']._serialized_start=862
|
|
59
|
+
_globals['_INPUTPIPELINESTATS']._serialized_end=1095
|
|
60
|
+
_globals['_TFDATASTATS']._serialized_start=1098
|
|
61
|
+
_globals['_TFDATASTATS']._serialized_end=1465
|
|
62
|
+
_globals['_TFDATASTATS_ITERATORMETADATAENTRY']._serialized_start=1275
|
|
63
|
+
_globals['_TFDATASTATS_ITERATORMETADATAENTRY']._serialized_end=1369
|
|
64
|
+
_globals['_TFDATASTATS_INPUTPIPELINESENTRY']._serialized_start=1371
|
|
65
|
+
_globals['_TFDATASTATS_INPUTPIPELINESENTRY']._serialized_end=1465
|
|
66
|
+
_globals['_TFDATABOTTLENECKANALYSIS']._serialized_start=1468
|
|
67
|
+
_globals['_TFDATABOTTLENECKANALYSIS']._serialized_end=1656
|
|
68
|
+
_globals['_COMBINEDTFDATASTATS']._serialized_start=1659
|
|
69
|
+
_globals['_COMBINEDTFDATASTATS']._serialized_end=1965
|
|
70
|
+
_globals['_COMBINEDTFDATASTATS_TFDATASTATSENTRY']._serialized_start=1881
|
|
71
|
+
_globals['_COMBINEDTFDATASTATS_TFDATASTATSENTRY']._serialized_end=1965
|
|
72
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: plugin/xprof/protobuf/tf_function.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'plugin/xprof/protobuf/tf_function.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'plugin/xprof/protobuf/tf_function.proto\x12\x13tensorflow.profiler\"8\n\x11TfFunctionMetrics\x12\r\n\x05\x63ount\x18\x01 \x01(\x04\x12\x14\n\x0cself_time_ps\x18\x02 \x01(\x04\"\x9b\x02\n\nTfFunction\x12=\n\x07metrics\x18\x01 \x03(\x0b\x32,.tensorflow.profiler.TfFunction.MetricsEntry\x12\x1b\n\x13total_tracing_count\x18\x02 \x01(\x03\x12\x39\n\x08\x63ompiler\x18\x03 \x01(\x0e\x32\'.tensorflow.profiler.TfFunctionCompiler\x12\x1e\n\x16\x65xpensive_call_percent\x18\x04 \x01(\x01\x1aV\n\x0cMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.tensorflow.profiler.TfFunctionMetrics:\x02\x38\x01\"\xad\x01\n\x0cTfFunctionDb\x12H\n\x0ctf_functions\x18\x01 \x03(\x0b\x32\x32.tensorflow.profiler.TfFunctionDb.TfFunctionsEntry\x1aS\n\x10TfFunctionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.tensorflow.profiler.TfFunction:\x02\x38\x01*t\n\x17TfFunctionExecutionMode\x12\x10\n\x0cINVALID_MODE\x10\x00\x12\x0e\n\nEAGER_MODE\x10\x01\x12\x0f\n\x0bTRACED_MODE\x10\x02\x12\x13\n\x0fNOT_TRACED_MODE\x10\x03\x12\x11\n\rCONCRETE_MODE\x10\x04*w\n\x12TfFunctionCompiler\x12\x14\n\x10INVALID_COMPILER\x10\x00\x12\x12\n\x0eOTHER_COMPILER\x10\x01\x12\x12\n\x0eMIXED_COMPILER\x10\x02\x12\x10\n\x0cXLA_COMPILER\x10\x03\x12\x11\n\rMLIR_COMPILER\x10\x04\x62\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'plugin.xprof.protobuf.tf_function_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
DESCRIPTOR._loaded_options = None
|
|
34
|
+
_globals['_TFFUNCTION_METRICSENTRY']._loaded_options = None
|
|
35
|
+
_globals['_TFFUNCTION_METRICSENTRY']._serialized_options = b'8\001'
|
|
36
|
+
_globals['_TFFUNCTIONDB_TFFUNCTIONSENTRY']._loaded_options = None
|
|
37
|
+
_globals['_TFFUNCTIONDB_TFFUNCTIONSENTRY']._serialized_options = b'8\001'
|
|
38
|
+
_globals['_TFFUNCTIONEXECUTIONMODE']._serialized_start=584
|
|
39
|
+
_globals['_TFFUNCTIONEXECUTIONMODE']._serialized_end=700
|
|
40
|
+
_globals['_TFFUNCTIONCOMPILER']._serialized_start=702
|
|
41
|
+
_globals['_TFFUNCTIONCOMPILER']._serialized_end=821
|
|
42
|
+
_globals['_TFFUNCTIONMETRICS']._serialized_start=64
|
|
43
|
+
_globals['_TFFUNCTIONMETRICS']._serialized_end=120
|
|
44
|
+
_globals['_TFFUNCTION']._serialized_start=123
|
|
45
|
+
_globals['_TFFUNCTION']._serialized_end=406
|
|
46
|
+
_globals['_TFFUNCTION_METRICSENTRY']._serialized_start=320
|
|
47
|
+
_globals['_TFFUNCTION_METRICSENTRY']._serialized_end=406
|
|
48
|
+
_globals['_TFFUNCTIONDB']._serialized_start=409
|
|
49
|
+
_globals['_TFFUNCTIONDB']._serialized_end=582
|
|
50
|
+
_globals['_TFFUNCTIONDB_TFFUNCTIONSENTRY']._serialized_start=499
|
|
51
|
+
_globals['_TFFUNCTIONDB_TFFUNCTIONSENTRY']._serialized_end=582
|
|
52
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: plugin/xprof/protobuf/tf_stats.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'plugin/xprof/protobuf/tf_stats.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$plugin/xprof/protobuf/tf_stats.proto\x12\x13tensorflow.profiler\"\xa7\x01\n\x0fTfStatsDatabase\x12\x34\n\twith_idle\x18\x04 \x01(\x0b\x32!.tensorflow.profiler.TfStatsTable\x12\x37\n\x0cwithout_idle\x18\x05 \x01(\x0b\x32!.tensorflow.profiler.TfStatsTable\x12\x13\n\x0b\x64\x65vice_type\x18\x06 \x01(\tJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04\"\x83\x01\n\x0cTfStatsTable\x12;\n\x0ftf_stats_record\x18\x01 \x03(\x0b\x32\".tensorflow.profiler.TfStatsRecord\x12\x19\n\x11host_tf_pprof_key\x18\x02 \x01(\t\x12\x1b\n\x13\x64\x65vice_tf_pprof_key\x18\x03 \x01(\t\"\xd8\x07\n\rTfStatsRecord\x12\x0c\n\x04rank\x18\x01 \x01(\x04\x12\x16\n\x0ehost_or_device\x18\x02 \x01(\t\x12\x0f\n\x07op_type\x18\x03 \x01(\t\x12\x0f\n\x07op_name\x18\x04 \x01(\t\x12\x13\n\x0boccurrences\x18\x05 \x01(\x03\x12\x18\n\x10total_time_in_us\x18\x06 \x01(\x01\x12\x16\n\x0e\x61vg_time_in_us\x18\x07 \x01(\x01\x12\x1d\n\x15total_self_time_in_us\x18\x08 \x01(\x01\x12\x1b\n\x13\x61vg_self_time_in_us\x18\t \x01(\x01\x12*\n\"device_total_self_time_as_fraction\x18\n \x01(\x01\x12\x35\n-device_cumulative_total_self_time_as_fraction\x18\x0b \x01(\x01\x12(\n host_total_self_time_as_fraction\x18\x0c \x01(\x01\x12\x33\n+host_cumulative_total_self_time_as_fraction\x18\r \x01(\x01\x12\x1a\n\x12measured_flop_rate\x18\x0e \x01(\x01\x12\x17\n\x0fmodel_flop_rate\x18\x14 \x01(\x01\x12\x1a\n\x12measured_memory_bw\x18\x0f \x01(\x01\x12\x1d\n\x15operational_intensity\x18\x10 \x01(\x01\x12\x10\n\x08\x62ound_by\x18\x11 \x01(\t\x12\x10\n\x08is_eager\x18\x12 \x01(\x08\x12\"\n\x1agpu_tensorcore_utilization\x18\x13 \x01(\x01\x12\x0e\n\x06hbm_bw\x18\x15 \x01(\x01\x12\x14\n\x0c\x63mem_read_bw\x18\x16 \x01(\x01\x12\x15\n\rcmem_write_bw\x18\x17 \x01(\x01\x12\x14\n\x0cvmem_read_bw\x18\x18 \x01(\x01\x12\x15\n\rvmem_write_bw\x18\x19 \x01(\x01\x12!\n\x19hbm_operational_intensity\x18\x1a \x01(\x01\x12\'\n\x1f\x63mem_read_operational_intensity\x18\x1b \x01(\x01\x12(\n cmem_write_operational_intensity\x18\x1c \x01(\x01\x12\'\n\x1fvmem_read_operational_intensity\x18\x1d \x01(\x01\x12(\n vmem_write_operational_intensity\x18\x1e \x01(\x01\x12(\n bottleneck_operational_intensity\x18\x1f \x01(\x01\x12\r\n\x05\x66lops\x18 \x01(\x04\x12\x16\n\x0e\x62ytes_accessed\x18! \x01(\x04\x62\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'plugin.xprof.protobuf.tf_stats_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
DESCRIPTOR._loaded_options = None
|
|
34
|
+
_globals['_TFSTATSDATABASE']._serialized_start=62
|
|
35
|
+
_globals['_TFSTATSDATABASE']._serialized_end=229
|
|
36
|
+
_globals['_TFSTATSTABLE']._serialized_start=232
|
|
37
|
+
_globals['_TFSTATSTABLE']._serialized_end=363
|
|
38
|
+
_globals['_TFSTATSRECORD']._serialized_start=366
|
|
39
|
+
_globals['_TFSTATSRECORD']._serialized_end=1350
|
|
40
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: plugin/xprof/protobuf/tfstreamz.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'plugin/xprof/protobuf/tfstreamz.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%plugin/xprof/protobuf/tfstreamz.proto\x12\x1dtensorflow.profiler.tfstreamz\"4\n\x0fPercentilePoint\x12\x12\n\npercentile\x18\x01 \x01(\x01\x12\r\n\x05value\x18\x02 \x01(\x01\"\xc3\x02\n\x0bPercentiles\x12\x45\n\x0funit_of_measure\x18\x01 \x01(\x0e\x32,.tensorflow.profiler.tfstreamz.UnitOfMeasure\x12\x14\n\x0cstart_nstime\x18\x02 \x01(\x04\x12\x12\n\nend_nstime\x18\x03 \x01(\x04\x12\x11\n\tmin_value\x18\x04 \x01(\x01\x12\x11\n\tmax_value\x18\x05 \x01(\x01\x12\x0c\n\x04mean\x18\x06 \x01(\x01\x12\x0e\n\x06stddev\x18\x07 \x01(\x01\x12\x13\n\x0bnum_samples\x18\x08 \x01(\x04\x12\x15\n\rtotal_samples\x18\t \x01(\x04\x12\x13\n\x0b\x61\x63\x63umulator\x18\n \x01(\x01\x12>\n\x06points\x18\x0b \x03(\x0b\x32..tensorflow.profiler.tfstreamz.PercentilePoint*0\n\rUnitOfMeasure\x12\n\n\x06NUMBER\x10\x00\x12\x08\n\x04TIME\x10\x01\x12\t\n\x05\x42YTES\x10\x02\x62\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'plugin.xprof.protobuf.tfstreamz_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
DESCRIPTOR._loaded_options = None
|
|
34
|
+
_globals['_UNITOFMEASURE']._serialized_start=452
|
|
35
|
+
_globals['_UNITOFMEASURE']._serialized_end=500
|
|
36
|
+
_globals['_PERCENTILEPOINT']._serialized_start=72
|
|
37
|
+
_globals['_PERCENTILEPOINT']._serialized_end=124
|
|
38
|
+
_globals['_PERCENTILES']._serialized_start=127
|
|
39
|
+
_globals['_PERCENTILES']._serialized_end=450
|
|
40
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: plugin/xprof/protobuf/topology.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'plugin/xprof/protobuf/topology.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$plugin/xprof/protobuf/topology.proto\x12\x13tensorflow.profiler\"4\n\x11TopologyDimension\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\x12\t\n\x01z\x18\x03 \x01(\x05\"\x8d\x01\n\x10TopologyLocation\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\x12\t\n\x01z\x18\x03 \x01(\x05\x12\x0e\n\x06host_x\x18\x04 \x01(\x05\x12\x0e\n\x06host_y\x18\x05 \x01(\x05\x12\x0e\n\x06host_z\x18\x06 \x01(\x05\x12\x15\n\rindex_on_host\x18\x07 \x01(\x05\x12\x11\n\tglobal_id\x18\x08 \x01(\x05\"\xcc\x01\n\x08Topology\x12\x45\n\x15\x63hips_per_host_bounds\x18\x01 \x01(\x0b\x32&.tensorflow.profiler.TopologyDimension\x12;\n\x0bhost_bounds\x18\x02 \x01(\x0b\x32&.tensorflow.profiler.TopologyDimension\x12<\n\rmesh_location\x18\x03 \x03(\x0b\x32%.tensorflow.profiler.TopologyLocation\"\x8b\x04\n\x0fLogicalTopology\x12\x41\n\x06slices\x18\x01 \x03(\x0b\x32\x31.tensorflow.profiler.LogicalTopology.LogicalSlice\x1aQ\n\rLogicalDevice\x12\x11\n\tglobal_id\x18\x01 \x01(\x05\x12\x16\n\x0eslice_local_id\x18\x02 \x01(\x05\x12\x15\n\rhost_local_id\x18\x03 \x01(\x05\x1a=\n\x12HostNetworkAddress\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\x16\n\x0einterface_name\x18\x02 \x01(\t\x1a\xbe\x01\n\x0bLogicalHost\x12\x16\n\x0eslice_local_id\x18\x01 \x01(\x05\x12R\n\x11network_addresses\x18\x02 \x03(\x0b\x32\x37.tensorflow.profiler.LogicalTopology.HostNetworkAddress\x12\x43\n\x07\x64\x65vices\x18\x03 \x03(\x0b\x32\x32.tensorflow.profiler.LogicalTopology.LogicalDevice\x1a\x62\n\x0cLogicalSlice\x12\x11\n\tglobal_id\x18\x01 \x01(\x05\x12?\n\x05hosts\x18\x02 \x03(\x0b\x32\x30.tensorflow.profiler.LogicalTopology.LogicalHostb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'plugin.xprof.protobuf.topology_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
DESCRIPTOR._loaded_options = None
|
|
34
|
+
_globals['_TOPOLOGYDIMENSION']._serialized_start=61
|
|
35
|
+
_globals['_TOPOLOGYDIMENSION']._serialized_end=113
|
|
36
|
+
_globals['_TOPOLOGYLOCATION']._serialized_start=116
|
|
37
|
+
_globals['_TOPOLOGYLOCATION']._serialized_end=257
|
|
38
|
+
_globals['_TOPOLOGY']._serialized_start=260
|
|
39
|
+
_globals['_TOPOLOGY']._serialized_end=464
|
|
40
|
+
_globals['_LOGICALTOPOLOGY']._serialized_start=467
|
|
41
|
+
_globals['_LOGICALTOPOLOGY']._serialized_end=990
|
|
42
|
+
_globals['_LOGICALTOPOLOGY_LOGICALDEVICE']._serialized_start=553
|
|
43
|
+
_globals['_LOGICALTOPOLOGY_LOGICALDEVICE']._serialized_end=634
|
|
44
|
+
_globals['_LOGICALTOPOLOGY_HOSTNETWORKADDRESS']._serialized_start=636
|
|
45
|
+
_globals['_LOGICALTOPOLOGY_HOSTNETWORKADDRESS']._serialized_end=697
|
|
46
|
+
_globals['_LOGICALTOPOLOGY_LOGICALHOST']._serialized_start=700
|
|
47
|
+
_globals['_LOGICALTOPOLOGY_LOGICALHOST']._serialized_end=890
|
|
48
|
+
_globals['_LOGICALTOPOLOGY_LOGICALSLICE']._serialized_start=892
|
|
49
|
+
_globals['_LOGICALTOPOLOGY_LOGICALSLICE']._serialized_end=990
|
|
50
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: plugin/xprof/protobuf/tpu_input_pipeline.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'plugin/xprof/protobuf/tpu_input_pipeline.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from xprof.protobuf import input_pipeline_pb2 as plugin_dot_xprof_dot_protobuf_dot_input__pipeline__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.plugin/xprof/protobuf/tpu_input_pipeline.proto\x12\x13tensorflow.profiler\x1a*plugin/xprof/protobuf/input_pipeline.proto\"\xee\x04\n\x11PerTpuStepDetails\x12\x13\n\x0bstep_number\x18\x01 \x01(\x05\x12\x1a\n\x12tc_compute_time_ms\x18\r \x01(\x01\x12\x17\n\x0ftc_idle_time_ms\x18\x0e \x01(\x01\x12\x1a\n\x12tc_outfeed_time_ms\x18\x0f \x01(\x01\x12\x19\n\x11tc_infeed_time_ms\x18\x03 \x01(\x01\x12\x1e\n\x16infeed_percent_average\x18\x04 \x01(\x01\x12\x1e\n\x16infeed_percent_minimum\x18\x05 \x01(\x01\x12\x1e\n\x16infeed_percent_maximum\x18\x06 \x01(\x01\x12\x1e\n\x16\x63oreid_max_infeed_time\x18\x07 \x01(\r\x12!\n\x19max_infeed_time_core_name\x18\x19 \x01(\t\x12\"\n\x1a\x61ll_reduce_compute_time_ms\x18\x0b \x01(\x01\x12\x1f\n\x17\x61ll_reduce_sync_time_ms\x18\x0c \x01(\x01\x12\x1c\n\x14scv0_compute_time_ms\x18\x10 \x01(\x01\x12\x1b\n\x13scv0_infeed_time_ms\x18\x11 \x01(\x01\x12\x18\n\x10host_transfer_ms\x18\x12 \x01(\x01\x12\x1a\n\x12sc_compute_time_ms\x18\x14 \x01(\x01\x12\x17\n\x0fsc_idle_time_ms\x18\x15 \x01(\x01\x12\x1a\n\x12sc_outfeed_time_ms\x18\x16 \x01(\x01\x12\x19\n\x11sc_infeed_time_ms\x18\x17 \x01(\x01\x12\x17\n\x0fsc_step_time_ms\x18\x18 \x01(\x01J\x04\x08\x02\x10\x03J\x04\x08\x08\x10\tJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0b\"\xad\x04\n\x14TpuStepTimeBreakdown\x12?\n\x15tc_compute_ms_summary\x18\x01 \x01(\x0b\x32 .tensorflow.profiler.StepSummary\x12\x41\n\x17scv0_compute_ms_summary\x18\x02 \x01(\x0b\x32 .tensorflow.profiler.StepSummary\x12>\n\x14tc_infeed_ms_summary\x18\x03 \x01(\x0b\x32 .tensorflow.profiler.StepSummary\x12?\n\x15tc_outfeed_ms_summary\x18\x06 \x01(\x0b\x32 .tensorflow.profiler.StepSummary\x12@\n\x16scv0_infeed_ms_summary\x18\x04 \x01(\x0b\x32 .tensorflow.profiler.StepSummary\x12<\n\x12tc_idle_ms_summary\x18\x05 \x01(\x0b\x32 .tensorflow.profiler.StepSummary\x12\x42\n\x18host_transfer_ms_summary\x18\x07 \x01(\x0b\x32 .tensorflow.profiler.StepSummary\x12L\n\x18sparse_core_step_summary\x18\x08 \x01(\x0b\x32*.tensorflow.profiler.SparseCoreStepSummary\"\xda\x02\n\x15SparseCoreStepSummary\x12?\n\x15sc_compute_ms_summary\x18\x01 \x01(\x0b\x32 .tensorflow.profiler.StepSummary\x12>\n\x14sc_infeed_ms_summary\x18\x02 \x01(\x0b\x32 .tensorflow.profiler.StepSummary\x12?\n\x15sc_outfeed_ms_summary\x18\x03 \x01(\x0b\x32 .tensorflow.profiler.StepSummary\x12<\n\x12sc_idle_ms_summary\x18\x04 \x01(\x0b\x32 .tensorflow.profiler.StepSummary\x12\x41\n\x17sc_step_time_ms_summary\x18\x05 \x01(\x0b\x32 .tensorflow.profiler.StepSummary\"\x99\x03\n\x15TpuBottleneckAnalysis\x12\x15\n\rinput_percent\x18\x0b \x01(\x01\x12\x1c\n\x14input_classification\x18\x01 \x01(\t\x12\x17\n\x0finput_statement\x18\x02 \x01(\t\x12\x16\n\x0eoutput_percent\x18\x0c \x01(\x01\x12\x1d\n\x15output_classification\x18\t \x01(\t\x12\x18\n\x10output_statement\x18\n \x01(\t\x12\x17\n\x0ftc_idle_percent\x18\r \x01(\x01\x12\x1e\n\x16tc_idle_classification\x18\x03 \x01(\t\x12\x19\n\x11tc_idle_statement\x18\x04 \x01(\t\x12\x1b\n\x13scv0_classification\x18\x05 \x01(\t\x12\x16\n\x0escv0_statement\x18\x06 \x01(\t\x12!\n\x19\x61ll_reduce_classification\x18\x07 \x01(\t\x12\x1c\n\x14\x61ll_reduce_statement\x18\x08 \x01(\t\x12\x17\n\x0f\x63ompute_percent\x18\x0e \x01(\x01\x62\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'plugin.xprof.protobuf.tpu_input_pipeline_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
DESCRIPTOR._loaded_options = None
|
|
35
|
+
_globals['_PERTPUSTEPDETAILS']._serialized_start=116
|
|
36
|
+
_globals['_PERTPUSTEPDETAILS']._serialized_end=738
|
|
37
|
+
_globals['_TPUSTEPTIMEBREAKDOWN']._serialized_start=741
|
|
38
|
+
_globals['_TPUSTEPTIMEBREAKDOWN']._serialized_end=1298
|
|
39
|
+
_globals['_SPARSECORESTEPSUMMARY']._serialized_start=1301
|
|
40
|
+
_globals['_SPARSECORESTEPSUMMARY']._serialized_end=1647
|
|
41
|
+
_globals['_TPUBOTTLENECKANALYSIS']._serialized_start=1650
|
|
42
|
+
_globals['_TPUBOTTLENECKANALYSIS']._serialized_end=2059
|
|
43
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: plugin/xprof/protobuf/trace_events_old.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'plugin/xprof/protobuf/trace_events_old.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,plugin/xprof/protobuf/trace_events_old.proto\x12\x05xprof\"\x9b\x01\n\x05Trace\x12*\n\x07\x64\x65vices\x18\x01 \x03(\x0b\x32\x19.xprof.Trace.DevicesEntry\x12\'\n\x0ctrace_events\x18\x04 \x03(\x0b\x32\x11.xprof.TraceEvent\x1a=\n\x0c\x44\x65vicesEntry\x12\x0b\n\x03key\x18\x01 \x01(\x04\x12\x1c\n\x05value\x18\x02 \x01(\x0b\x32\r.xprof.Device:\x02\x38\x01\"\x9d\x01\n\x06\x44\x65vice\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tdevice_id\x18\x02 \x01(\x04\x12/\n\tresources\x18\x03 \x03(\x0b\x32\x1c.xprof.Device.ResourcesEntry\x1a\x41\n\x0eResourcesEntry\x12\x0b\n\x03key\x18\x01 \x01(\x04\x12\x1e\n\x05value\x18\x02 \x01(\x0b\x32\x0f.xprof.Resource:\x02\x38\x01\"-\n\x08Resource\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0bresource_id\x18\x02 \x01(\x04\"\xc5\x01\n\nTraceEvent\x12\x11\n\tdevice_id\x18\x01 \x01(\x04\x12\x13\n\x0bresource_id\x18\x02 \x01(\x04\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x14\n\x0ctimestamp_ps\x18\t \x01(\x04\x12\x13\n\x0b\x64uration_ps\x18\n \x01(\x04\x12)\n\x04\x61rgs\x18\x0b \x03(\x0b\x32\x1b.xprof.TraceEvent.ArgsEntry\x1a+\n\tArgsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x62\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'plugin.xprof.protobuf.trace_events_old_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
DESCRIPTOR._loaded_options = None
|
|
34
|
+
_globals['_TRACE_DEVICESENTRY']._loaded_options = None
|
|
35
|
+
_globals['_TRACE_DEVICESENTRY']._serialized_options = b'8\001'
|
|
36
|
+
_globals['_DEVICE_RESOURCESENTRY']._loaded_options = None
|
|
37
|
+
_globals['_DEVICE_RESOURCESENTRY']._serialized_options = b'8\001'
|
|
38
|
+
_globals['_TRACEEVENT_ARGSENTRY']._loaded_options = None
|
|
39
|
+
_globals['_TRACEEVENT_ARGSENTRY']._serialized_options = b'8\001'
|
|
40
|
+
_globals['_TRACE']._serialized_start=56
|
|
41
|
+
_globals['_TRACE']._serialized_end=211
|
|
42
|
+
_globals['_TRACE_DEVICESENTRY']._serialized_start=150
|
|
43
|
+
_globals['_TRACE_DEVICESENTRY']._serialized_end=211
|
|
44
|
+
_globals['_DEVICE']._serialized_start=214
|
|
45
|
+
_globals['_DEVICE']._serialized_end=371
|
|
46
|
+
_globals['_DEVICE_RESOURCESENTRY']._serialized_start=306
|
|
47
|
+
_globals['_DEVICE_RESOURCESENTRY']._serialized_end=371
|
|
48
|
+
_globals['_RESOURCE']._serialized_start=373
|
|
49
|
+
_globals['_RESOURCE']._serialized_end=418
|
|
50
|
+
_globals['_TRACEEVENT']._serialized_start=421
|
|
51
|
+
_globals['_TRACEEVENT']._serialized_end=618
|
|
52
|
+
_globals['_TRACEEVENT_ARGSENTRY']._serialized_start=575
|
|
53
|
+
_globals['_TRACEEVENT_ARGSENTRY']._serialized_end=618
|
|
54
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: plugin/xprof/protobuf/trace_events.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'plugin/xprof/protobuf/trace_events.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from xprof.protobuf import task_pb2 as plugin_dot_xprof_dot_protobuf_dot_task__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(plugin/xprof/protobuf/trace_events.proto\x12\x13tensorflow.profiler\x1a plugin/xprof/protobuf/task.proto\"\xd2\x03\n\x05Trace\x12\x38\n\x07\x64\x65vices\x18\x01 \x03(\x0b\x32\'.tensorflow.profiler.Trace.DevicesEntry\x12\x34\n\x05tasks\x18\x06 \x03(\x0b\x32%.tensorflow.profiler.Trace.TasksEntry\x12\x18\n\x10min_timestamp_ps\x18\x04 \x01(\x04\x12\x18\n\x10max_timestamp_ps\x18\x05 \x01(\x04\x12\x12\n\nnum_events\x18\x07 \x01(\x04\x12=\n\nname_table\x18\x08 \x03(\x0b\x32).tensorflow.profiler.Trace.NameTableEntry\x1aK\n\x0c\x44\x65vicesEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12*\n\x05value\x18\x02 \x01(\x0b\x32\x1b.tensorflow.profiler.Device:\x02\x38\x01\x1aG\n\nTasksEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12(\n\x05value\x18\x02 \x01(\x0b\x32\x19.tensorflow.profiler.Task:\x02\x38\x01\x1a\x30\n\x0eNameTableEntry\x12\x0b\n\x03key\x18\x01 \x01(\x06\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01J\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04\"\xbf\x01\n\x06\x44\x65vice\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tdevice_id\x18\x02 \x01(\r\x12=\n\tresources\x18\x03 \x03(\x0b\x32*.tensorflow.profiler.Device.ResourcesEntry\x1aO\n\x0eResourcesEntry\x12\x0b\n\x03key\x18\x01 \x01(\x04\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.tensorflow.profiler.Resource:\x02\x38\x01J\x04\x08\x04\x10\x05\"A\n\x08Resource\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0bresource_id\x18\x02 \x01(\x04\x12\x12\n\nnum_events\x18\x03 \x01(\r\"\xba\x04\n\nTraceEvent\x12\x37\n\x04type\x18\x0e \x01(\x0e\x32).tensorflow.profiler.TraceEvent.EventType\x12\x11\n\tdevice_id\x18\x01 \x01(\r\x12\x13\n\x0bresource_id\x18\x02 \x01(\x04\x12\x0e\n\x04name\x18\x03 \x01(\tH\x00\x12\x12\n\x08name_ref\x18\x0c \x01(\x06H\x00\x12\x14\n\x08group_id\x18\x05 \x01(\x03:\x02-1\x12\x14\n\x0ctimestamp_ps\x18\x06 \x01(\x04\x12\x13\n\x0b\x64uration_ps\x18\x07 \x01(\x04\x12\x10\n\x08raw_data\x18\x08 \x01(\x0c\x12\x0f\n\x07\x66low_id\x18\t \x01(\x04\x12\x46\n\x0f\x66low_entry_type\x18\n \x01(\x0e\x32-.tensorflow.profiler.TraceEvent.FlowEntryType\x12\x15\n\rflow_category\x18\x0b \x01(\r\x12\x0e\n\x06serial\x18\r \x01(\r\"t\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13\x45VENT_TYPE_COMPLETE\x10\x01\x12\x14\n\x10\x45VENT_TYPE_ASYNC\x10\x03\x12\x16\n\x12\x45VENT_TYPE_COUNTER\x10\x04\"\x04\x08\x02\x10\x02\"J\n\rFlowEntryType\x12\r\n\tFLOW_NONE\x10\x00\x12\x0e\n\nFLOW_START\x10\x01\x12\x0c\n\x08\x46LOW_MID\x10\x02\x12\x0c\n\x08\x46LOW_END\x10\x03\x42\x0c\n\nname_oneofJ\x04\x08\x04\x10\x05\x42\x03\xf8\x01\x01')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'plugin.xprof.protobuf.trace_events_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\370\001\001'
|
|
36
|
+
_globals['_TRACE_DEVICESENTRY']._loaded_options = None
|
|
37
|
+
_globals['_TRACE_DEVICESENTRY']._serialized_options = b'8\001'
|
|
38
|
+
_globals['_TRACE_TASKSENTRY']._loaded_options = None
|
|
39
|
+
_globals['_TRACE_TASKSENTRY']._serialized_options = b'8\001'
|
|
40
|
+
_globals['_TRACE_NAMETABLEENTRY']._loaded_options = None
|
|
41
|
+
_globals['_TRACE_NAMETABLEENTRY']._serialized_options = b'8\001'
|
|
42
|
+
_globals['_DEVICE_RESOURCESENTRY']._loaded_options = None
|
|
43
|
+
_globals['_DEVICE_RESOURCESENTRY']._serialized_options = b'8\001'
|
|
44
|
+
_globals['_TRACE']._serialized_start=100
|
|
45
|
+
_globals['_TRACE']._serialized_end=566
|
|
46
|
+
_globals['_TRACE_DEVICESENTRY']._serialized_start=356
|
|
47
|
+
_globals['_TRACE_DEVICESENTRY']._serialized_end=431
|
|
48
|
+
_globals['_TRACE_TASKSENTRY']._serialized_start=433
|
|
49
|
+
_globals['_TRACE_TASKSENTRY']._serialized_end=504
|
|
50
|
+
_globals['_TRACE_NAMETABLEENTRY']._serialized_start=506
|
|
51
|
+
_globals['_TRACE_NAMETABLEENTRY']._serialized_end=554
|
|
52
|
+
_globals['_DEVICE']._serialized_start=569
|
|
53
|
+
_globals['_DEVICE']._serialized_end=760
|
|
54
|
+
_globals['_DEVICE_RESOURCESENTRY']._serialized_start=675
|
|
55
|
+
_globals['_DEVICE_RESOURCESENTRY']._serialized_end=754
|
|
56
|
+
_globals['_RESOURCE']._serialized_start=762
|
|
57
|
+
_globals['_RESOURCE']._serialized_end=827
|
|
58
|
+
_globals['_TRACEEVENT']._serialized_start=830
|
|
59
|
+
_globals['_TRACEEVENT']._serialized_end=1400
|
|
60
|
+
_globals['_TRACEEVENT_EVENTTYPE']._serialized_start=1188
|
|
61
|
+
_globals['_TRACEEVENT_EVENTTYPE']._serialized_end=1304
|
|
62
|
+
_globals['_TRACEEVENT_FLOWENTRYTYPE']._serialized_start=1306
|
|
63
|
+
_globals['_TRACEEVENT_FLOWENTRYTYPE']._serialized_end=1380
|
|
64
|
+
# @@protoc_insertion_point(module_scope)
|