Home
last modified time | relevance | path

Searched refs:GetStateFilePath (Results 1 – 3 of 3) sorted by relevance

/external/perfetto/src/perfetto_cmd/
Drate_limiter.cc184 std::string RateLimiter::GetStateFilePath() const { in GetStateFilePath() function in perfetto::RateLimiter
190 return stat(GetStateFilePath().c_str(), &out) != -1; in StateFileExists()
200 remove(GetStateFilePath().c_str()); in ClearState()
205 base::ScopedFile in_fd(base::OpenFile(GetStateFilePath(), O_RDONLY)); in LoadState()
237 base::OpenFile(GetStateFilePath(), O_WRONLY | O_CREAT | O_TRUNC, 0666)); in SaveState()
Drate_limiter.h59 virtual std::string GetStateFilePath() const;
Drate_limiter_unittest.cc48 virtual std::string GetStateFilePath() const { in GetStateFilePath() function in perfetto::__anond5fcce460111::MockRateLimiter
54 remove(GetStateFilePath().c_str()); in ~MockRateLimiter()
151 WriteGarbageToFile(limiter.GetStateFilePath().c_str()); in TEST()
292 WriteGarbageToFile(limiter.GetStateFilePath().c_str()); in TEST()