tensorflow / serving
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 266 files with 22,267 lines of code.
    • 0 very long files (0 lines of code)
    • 6 long files (4,215 lines of code)
    • 17 medium size files (4,794 lines of codeclsfd_ftr_w_mp_ins)
    • 37 small files (5,261 lines of code)
    • 206 very small files (7,997 lines of code)
0% | 18% | 21% | 23% | 35%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
cc0% | 31% | 29% | 23% | 15%
h0% | 0% | 13% | 26% | 60%
py0% | 0% | 0% | 24% | 75%
proto0% | 0% | 0% | 13% | 86%
bzl0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tensorflow_serving/util0% | 28% | 11% | 34% | 25%
tensorflow_serving/batching0% | 48% | 14% | 10% | 26%
tensorflow_serving/model_servers0% | 24% | 37% | 17% | 19%
tensorflow_serving/servables0% | 15% | 18% | 30% | 36%
tensorflow_serving/core0% | 13% | 29% | 21% | 35%
tensorflow_serving/resources0% | 0% | 65% | 0% | 34%
tensorflow_serving/sources0% | 0% | 72% | 0% | 27%
tensorflow_serving/example0% | 0% | 0% | 61% | 38%
tensorflow_serving/experimental0% | 0% | 0% | 31% | 68%
tensorflow_serving/apis0% | 0% | 0% | 0% | 100%
tensorflow_serving0% | 0% | 0% | 0% | 100%
tensorflow_serving/config0% | 0% | 0% | 0% | 100%
tensorflow_serving/session_bundle0% | 0% | 0% | 0% | 100%
tensorflow_serving/tools0% | 0% | 0% | 0% | 100%
tensorflow_serving/g3doc0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
json_tensor.cc
in tensorflow_serving/util
860 38
batching_session.cc
in tensorflow_serving/batching
817 22
server_core.cc
in tensorflow_serving/model_servers
682 28
tflite_session.cc
in tensorflow_serving/servables/tensorflow
664 22
basic_manager.cc
in tensorflow_serving/core
609 33
gzip_zlib.cc
in tensorflow_serving/util/net_http/compression
583 28
resource_util.cc
in tensorflow_serving/resources
456 32
server.cc
in tensorflow_serving/model_servers
377 8
aspired_versions_manager.cc
in tensorflow_serving/core
374 19
file_system_storage_path_source.cc
in tensorflow_serving/sources/storage_path
318 15
evhttp_request.cc
in tensorflow_serving/util/net_http/server/internal
293 20
evhttp_server.cc
in tensorflow_serving/util/net_http/server/internal
293 21
servable_state_monitor.cc
in tensorflow_serving/core
288 18
classifier.cc
in tensorflow_serving/servables/tensorflow
287 10
aspired_versions_manager_benchmark.cc
in tensorflow_serving/core
262 14
util.cc
in tensorflow_serving/servables/tensorflow
259 15
streaming_batch_scheduler.h
in tensorflow_serving/batching
248 10
main.cc
in tensorflow_serving/model_servers
248 1
regressor.cc
in tensorflow_serving/servables/tensorflow
239 10
simple_loader.h
in tensorflow_serving/core
233 7
http_server.cc
in tensorflow_serving/model_servers
209 7
basic_manager.h
in tensorflow_serving/core
208 1
server_core.h
in tensorflow_serving/model_servers
202 5
http_rest_api_handler.cc
in tensorflow_serving/model_servers
196 7
evhttp_connection.cc
in tensorflow_serving/util/net_http/client/internal
188 10
ev_print_req_server.cc
in tensorflow_serving/util/net_http/socket/testing
183 3
predict_util.cc
in tensorflow_serving/servables/tensorflow
180 6
loader_harness.cc
in tensorflow_serving/core
179 17
batching_util.cc
in tensorflow_serving/batching
179 6
tflite_interpreter_pool.cc
in tensorflow_serving/servables/tensorflow
167 4
fast_read_dynamic_ptr_benchmark.cc
in tensorflow_serving/util
164 11
remote_predict_op_kernel.h
in tensorflow_serving/experimental/tensorflow/ops/remote_predict/kernels
163 3
class_registration.h
in tensorflow_serving/util
163 4
fast_read_dynamic_ptr.h
in tensorflow_serving/util
162 11
http_rest_api_util.cc
in tensorflow_serving/model_servers
156 7
caching_manager.cc
in tensorflow_serving/core
153 8
resnet_client.cc
in tensorflow_serving/example
152 3
source_adapter.h
in tensorflow_serving/core
152 3
proto
session_bundle_config.proto
in tensorflow_serving/servables/tensorflow
142 -
tflite_session.h
in tensorflow_serving/servables/tensorflow
140 6
header_names.cc
in tensorflow_serving/util/net_http/server/public
139 -
saved_model_warmup_test_util.cc
in tensorflow_serving/servables/tensorflow
137 11
mnist_input_data.py
in tensorflow_serving/example
137 12
saved_model_bundle_factory.cc
in tensorflow_serving/servables/tensorflow
135 8
prometheus_exporter.cc
in tensorflow_serving/util
134 7
net_logging.cc
in tensorflow_serving/util/net_http/internal
134 5
gzip_zlib.h
in tensorflow_serving/util/net_http/compression
132 7
ev_fetch_client.cc
in tensorflow_serving/util/net_http/socket/testing
131 5
header_names.h
in tensorflow_serving/util/net_http/server/public
126 -
loader_harness.h
in tensorflow_serving/core
123 2
Files With Most Units (Top 20)
File# lines# units
json_tensor.cc
in tensorflow_serving/util
860 38
basic_manager.cc
in tensorflow_serving/core
609 33
resource_util.cc
in tensorflow_serving/resources
456 32
gzip_zlib.cc
in tensorflow_serving/util/net_http/compression
583 28
server_core.cc
in tensorflow_serving/model_servers
682 28
tflite_session.cc
in tensorflow_serving/servables/tensorflow
664 22
batching_session.cc
in tensorflow_serving/batching
817 22
evhttp_server.cc
in tensorflow_serving/util/net_http/server/internal
293 21
evhttp_request.cc
in tensorflow_serving/util/net_http/server/internal
293 20
aspired_versions_manager.cc
in tensorflow_serving/core
374 19
servable_state_monitor.cc
in tensorflow_serving/core
288 18
loader_harness.cc
in tensorflow_serving/core
179 17
util.cc
in tensorflow_serving/servables/tensorflow
259 15
file_system_storage_path_source.cc
in tensorflow_serving/sources/storage_path
318 15
aspired_versions_manager_benchmark.cc
in tensorflow_serving/core
262 14
mnist_input_data.py
in tensorflow_serving/example
137 12
saved_model_warmup_test_util.cc
in tensorflow_serving/servables/tensorflow
137 11
bundle_factory_test_util.cc
in tensorflow_serving/servables/tensorflow
111 11
fast_read_dynamic_ptr_benchmark.cc
in tensorflow_serving/util
164 11
fast_read_dynamic_ptr.h
in tensorflow_serving/util
162 11
Files With Long Lines (Top 5)

There are 5 files with lines longer than 120 characters. In total, there are 11 long lines.

File# lines# units# long lines
prediction_service_pb2_grpc.py
in tensorflow_serving/apis
85 7 5
prediction_service_pb2.py
in tensorflow_serving/apis
80 - 2
model_service_pb2_grpc.py
in tensorflow_serving/apis
54 4 2
serving.bzl
in tensorflow_serving
55 - 1
model_service_pb2.py
in tensorflow_serving/apis
59 - 1