Searched refs:metrics_file (Results 1 – 3 of 3) sorted by relevance
38 OdrMetrics::OdrMetrics(const std::string& cache_directory, const std::string& metrics_file) in OdrMetrics() argument39 : cache_directory_(cache_directory), metrics_file_(metrics_file), status_(Status::kOK) { in OdrMetrics()43 if (OS::FileExists(metrics_file.c_str())) { in OdrMetrics()44 if (unlink(metrics_file.c_str()) != 0) { in OdrMetrics()45 PLOG(ERROR) << "Failed to remove metrics file '" << metrics_file << "'"; in OdrMetrics()
103 bool ReadValues(const char* metrics_file, in ReadValues() argument106 std::ifstream ifs(metrics_file); in ReadValues()109 "metrics file '%s' could not be opened: %s", metrics_file, strerror(errno)); in ReadValues()
74 const std::string& metrics_file = kOdrefreshMetricsFile);