Lines Matching refs:NamedStopWatch
40 const uint64_t NamedStopWatch::kDefaultLoggingPeriodInFrames = 100;
42 NamedStopWatch::NamedStopWatch(const std::string& name)
50 void NamedStopWatch::Start() {
54 void NamedStopWatch::Stop() {
71 static NamedStopWatch* GetWatchForName(const std::string& watch_name) {
72 // TODO: this leaks the NamedStopWatch objects. Replace it with a
74 static std::map<std::string, NamedStopWatch*> watches;
75 NamedStopWatch* watch = FindPtrOrNull(watches, watch_name);
77 watch = new NamedStopWatch(watch_name);