diff options
author | Shanqing Cai <cais@google.com> | 2018-08-28 19:03:56 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-28 19:12:42 -0700 |
commit | 3d35a07179d4d38d0cabac4415c550f1cbce00c0 (patch) | |
tree | 34c06cc6339a273722f48689e7e58de88d18c0ba /tensorflow/core/debug/debugger_state_impl.cc | |
parent | 20d5683b826be03776978af3b8108fc3b5dc9cb8 (diff) |
tfdbg: Add adjustable limit to total bytes dumped to disk
RELNOTES: tfdbg: Limit the total disk space occupied by dumped tensor data to 100 GBytes. Add environment variable `TFDBG_DISK_BYTES_LIMIT` to allow adjustment of this upper limit.
PiperOrigin-RevId: 210648585
Diffstat (limited to 'tensorflow/core/debug/debugger_state_impl.cc')
-rw-r--r-- | tensorflow/core/debug/debugger_state_impl.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tensorflow/core/debug/debugger_state_impl.cc b/tensorflow/core/debug/debugger_state_impl.cc index 2f5aaf93fa..79798f9392 100644 --- a/tensorflow/core/debug/debugger_state_impl.cc +++ b/tensorflow/core/debug/debugger_state_impl.cc @@ -27,6 +27,9 @@ DebuggerState::DebuggerState(const DebugOptions& debug_options) { debug_urls_.insert(url); } } + if (debug_options.reset_disk_byte_usage()) { + DebugFileIO::resetDiskByteUsage(); + } } DebuggerState::~DebuggerState() { |