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

Unified Diff: src/IceTimerTree.cpp

Issue 1838753002: Subzero: Remove IceString. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes 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/IceTimerTree.h ('k') | src/IceTranslator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTimerTree.cpp
diff --git a/src/IceTimerTree.cpp b/src/IceTimerTree.cpp
index 1ae4e536155e5e09a261ddbbda1f1ea25f9b6ace..6cba289b1400aa6b3b53ebd1e7d2e2affe628d9c 100644
--- a/src/IceTimerTree.cpp
+++ b/src/IceTimerTree.cpp
@@ -30,7 +30,7 @@
namespace Ice {
-TimerStack::TimerStack(const IceString &Name)
+TimerStack::TimerStack(const std::string &Name)
: Name(Name), FirstTimestamp(timestamp()), LastTimestamp(FirstTimestamp) {
if (!BuildDefs::timers())
return;
@@ -48,7 +48,7 @@ TimerStack::TimerStack(const IceString &Name)
}
// Returns the unique timer ID for the given Name, creating a new ID if needed.
-TimerIdT TimerStack::getTimerID(const IceString &Name) {
+TimerIdT TimerStack::getTimerID(const std::string &Name) {
if (!BuildDefs::timers())
return 0;
if (IDsIndex.find(Name) == IDsIndex.end()) {
@@ -224,7 +224,7 @@ void TimerStack::reset() {
namespace {
-using DumpMapType = std::multimap<double, IceString>;
+using DumpMapType = std::multimap<double, std::string>;
// Dump the Map items in reverse order of their time contribution.
void dumpHelper(Ostream &Str, const DumpMapType &Map, double TotalTime) {
@@ -275,7 +275,7 @@ void TimerStack::dump(Ostream &Str, bool DumpCumulative) {
DumpMapType CumulativeMap;
for (TTindex i = 1; i < Nodes.size(); ++i) {
TTindex Prefix = i;
- IceString Suffix = "";
+ std::string Suffix = "";
while (Prefix) {
if (Suffix.empty())
Suffix = IDs[Nodes[Prefix].Interior];
« no previous file with comments | « src/IceTimerTree.h ('k') | src/IceTranslator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698