STT-tensorflow/tensorflow/core/profiler/lib
Jose Baiocchi 6d7e583c89 Allow locking the profiler via environment variable
Alternative to https://github.com/tensorflow/tensorflow/pull/46544

Use case: Allow an outer profiler (e.g., a command-line tool) to set an environment variable to prevent interference from TF Profiler. We already have mutual exclusion of profiler clients via ProfilerLock to guarantee at most one profiler client can actually profile. The environment variable TF_DISABLE_PROFILING, when set to 1, disables all profiler clients. We assume that clients already know how to gracefully handle failure to profile.

PiperOrigin-RevId: 357003057
Change-Id: I79ceccd289114d6eac3b9b7b4b14d0c5f1950c4d
2021-02-11 10:29:47 -08:00
..
annotated_traceme.h Avoid a copy in AnnotatedTraceMe 2020-08-07 13:34:51 -07:00
BUILD Allow locking the profiler via environment variable 2021-02-11 10:29:47 -08:00
connected_traceme.h Add annotations for producing and consuming batch in adaptive shared batch scheduler. 2020-11-11 19:50:41 -08:00
profiler_factory.cc Move TF 2.x profiler files out of top-level profiler/internal 2020-10-05 14:25:44 -07:00
profiler_factory.h Move TF 2.x profiler files out of top-level profiler/internal 2020-10-05 14:25:44 -07:00
profiler_interface.h Move TF 2.x profiler files out of top-level profiler/internal 2020-10-05 14:25:44 -07:00
profiler_lock.cc Allow locking the profiler via environment variable 2021-02-11 10:29:47 -08:00
profiler_lock.h Rename profiler_utils to profiler_lock. 2020-09-15 16:25:31 -07:00
profiler_session.cc Add SleepFor and SpinFor to time_utils.h 2020-12-04 19:44:42 -08:00
profiler_session.h Add delayed start capability to profiler session. 2020-10-28 10:48:58 -07:00
scoped_annotation_test.cc Update benchmarks to use newer API 2020-11-24 16:59:20 -08:00
scoped_annotation.h Move TF 2.x profiler files out of top-level profiler/internal 2020-10-05 14:25:44 -07:00
traceme_encode_test.cc Make TraceMeEncode compile with C++14 2020-06-09 12:39:52 -07:00
traceme_encode.h [TF-TRT] Add xprof trace to the TRTEngineOp runtime. 2020-12-14 16:33:04 -08:00
traceme.h Remove TraceMeRecorder::Event::activity_id 2020-11-13 16:20:09 -08:00