Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: src/IceTimerTree.h

Issue 1838753002: Subzero: Remove IceString. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More cleanup Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceTargetLoweringX86BaseImpl.h ('k') | src/IceTimerTree.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTimerTree.h
diff --git a/src/IceTimerTree.h b/src/IceTimerTree.h
index fb21f84b4bddb0e783830e061d438366063e09a8..5f068c171d53b1b6a59f926b9b45ca6e54109999 100644
--- a/src/IceTimerTree.h
+++ b/src/IceTimerTree.h
@@ -62,12 +62,12 @@ public:
#undef X
TT__num
};
- explicit TimerStack(const IceString &Name);
+ explicit TimerStack(const std::string &Name);
TimerStack(const TimerStack &) = default;
- TimerIdT getTimerID(const IceString &Name);
+ TimerIdT getTimerID(const std::string &Name);
void mergeFrom(const TimerStack &Src);
- void setName(const IceString &NewName) { Name = NewName; }
- const IceString &getName() const { return Name; }
+ void setName(const std::string &NewName) { Name = NewName; }
+ const std::string &getName() const { return Name; }
void push(TimerIdT ID);
void pop(TimerIdT ID);
void reset();
@@ -80,13 +80,13 @@ private:
PathType getPath(TTindex Index, const TranslationType &Mapping) const;
TTindex getChildIndex(TTindex Parent, TimerIdT ID);
TTindex findPath(const PathType &Path);
- IceString Name;
+ std::string Name;
double FirstTimestamp;
double LastTimestamp;
uint64_t StateChangeCount = 0;
/// IDsIndex maps a symbolic timer name to its integer ID.
- std::map<IceString, TimerIdT> IDsIndex;
- std::vector<IceString> IDs; /// indexed by TimerIdT
+ std::map<std::string, TimerIdT> IDsIndex;
+ std::vector<std::string> IDs; /// indexed by TimerIdT
std::vector<TimerTreeNode> Nodes; /// indexed by TTindex
std::vector<double> LeafTimes; /// indexed by TimerIdT
std::vector<size_t> LeafCounts; /// indexed by TimerIdT
« no previous file with comments | « src/IceTargetLoweringX86BaseImpl.h ('k') | src/IceTimerTree.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698