aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/jpeg
diff options
context:
space:
mode:
authorGravatar Derek Murray <mrry@google.com>2018-09-05 22:20:40 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-05 22:24:53 -0700
commit5393c8f0dc57857c93482bff67f1134aae9af594 (patch)
tree328238d0953ecee9e4fa3341189857846985dd1d /third_party/jpeg
parentf4ae136265d3d3116a008b98ccf21d0791b878fd (diff)
Add `TraceCollector::IsEnabled(bool)` method in order to test when tracing is enabled.
Some builds install a `TraceCollector` at process startup, but it is mostly not enabled. This inhibits the recent optimization to avoid accessing `OpKernel::name()` and `OpKernel::type_string()` every time a kernel is launched. By caching the `TraceCollector` in the `TracingDevice` and adding a method to enquire about its state, we increase the applicability of the optimization. PiperOrigin-RevId: 211752728
Diffstat (limited to 'third_party/jpeg')
0 files changed, 0 insertions, 0 deletions