Skip to content

Commit d7799c0

Browse files
andreas-abelcopybara-github
authored andcommitted
Remove unused Actual() function
PiperOrigin-RevId: 783126680 Change-Id: I3f67dcb525fbcdbb701da8da2095237e37a73370
1 parent a2f73ac commit d7799c0

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

fleetbench/tcmalloc/empirical.cc

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -344,16 +344,6 @@ void EmpiricalData::RestartTraceIfNecessary() {
344344
}
345345
}
346346

347-
std::vector<EmpiricalData::Entry> EmpiricalData::Actual() const {
348-
std::vector<Entry> data;
349-
data.reserve(state_.size());
350-
for (const auto& s : state_) {
351-
data.push_back({s.size, static_cast<double>(s.total),
352-
static_cast<double>(s.objs.size())});
353-
}
354-
return data;
355-
}
356-
357347
std::vector<EmpiricalData::Entry> GetEmpiricalDataEntries(
358348
absl::string_view file) {
359349
std::vector<EmpiricalData::Entry> distribution;

fleetbench/tcmalloc/empirical.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,6 @@ class EmpiricalData {
208208
// incremented.
209209
void ReplayNext();
210210

211-
// Empirical stats for the lifetime of this simulation (not including
212-
// startup allocations.)
213-
std::vector<Entry> Actual() const;
214-
215211
std::default_random_engine* const rng() { return &rng_; }
216212

217213
// Saves the list of live objects of each size class. We will later restore

0 commit comments

Comments
 (0)