aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/util/stat_summarizer.h
diff options
context:
space:
mode:
authorGravatar Geoffrey Irving <geoffreyi@google.com>2017-06-29 11:44:13 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-06-29 11:48:10 -0700
commite85d3df92deb9d717befdf173966a2913ac2aea0 (patch)
tree1c9e80f85c965e039121d8591daab95c62fe7041 /tensorflow/core/util/stat_summarizer.h
parent9b11f458196f6f0528c9974238497a6c8b6da547 (diff)
Prepare to remove a bunch of proto.h includes from tensorflow/core headers
The goal is to make kernels mostly independent of proto headers, which will let us lock down our .so imports. This CL does not remove any actual headers, but changes a bunch of files so that header removal is possible in a followup CL. It also marks the headers that will be removed with // TODO(b/62899350): Remove RELNOTES: n/a PiperOrigin-RevId: 160552878
Diffstat (limited to 'tensorflow/core/util/stat_summarizer.h')
-rw-r--r--tensorflow/core/util/stat_summarizer.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/tensorflow/core/util/stat_summarizer.h b/tensorflow/core/util/stat_summarizer.h
index 6111e276ea..f7b63e8686 100644
--- a/tensorflow/core/util/stat_summarizer.h
+++ b/tensorflow/core/util/stat_summarizer.h
@@ -154,6 +154,8 @@ class StatSummarizer {
// GraphDef is not needed by the StatSummarizer.
explicit StatSummarizer(const tensorflow::GraphDef& tensorflow_graph);
+ ~StatSummarizer();
+
// Adds another run's StepStats output to the aggregate counts.
void ProcessStepStats(const StepStats& step_stats);
@@ -181,11 +183,7 @@ class StatSummarizer {
SortingMetric sorting_metric,
int num_stats) const;
- void Reset() {
- run_total_us_.Reset();
- memory_.Reset();
- details_.clear();
- }
+ void Reset();
// Returns number of runs.
int num_runs() const { return run_total_us_.count(); }