- explicit TimerGroup(const std::string &name) : Name(name), NumTimers(0) {}
- explicit TimerGroup() : NumTimers(0) {}
+ explicit TimerGroup(StringRef name);
+ ~TimerGroup();
+
+ void setName(StringRef name) { Name.assign(name.begin(), name.end()); }
+
+ /// print - Print any started timers in this group and zero them.
+ void print(raw_ostream &OS);