diff options
Diffstat (limited to 'tensorflow/core/distributed_runtime/worker_cache_logger.h')
-rw-r--r-- | tensorflow/core/distributed_runtime/worker_cache_logger.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tensorflow/core/distributed_runtime/worker_cache_logger.h b/tensorflow/core/distributed_runtime/worker_cache_logger.h index a92590a176..00846c25fe 100644 --- a/tensorflow/core/distributed_runtime/worker_cache_logger.h +++ b/tensorflow/core/distributed_runtime/worker_cache_logger.h @@ -60,6 +60,14 @@ class WorkerCacheLogger { const string& tensor_name, const string& src_device, const string& dst_device, int64 bytes); + // Generates a NodeExecStats record with the given data, and saves for + // later retrieval by RetrieveLogs(). + void RecordDataTransfer(int64 step_id, int64 start_usecs, int64 end_usecs, + const string& tensor_name, const string& src_device, + const string& dst_device, int64 bytes, + const string& details, + const string& transfer_method_name); + private: mutex count_mu_; int32 want_logging_count_ GUARDED_BY(count_mu_) = 0; |