projects
/
sdk
/
tools
/
heaptrack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e5ef0a
)
Simplify code, it's not worth the imagined performance gain.
author
Milian Wolff
<mail@milianw.de>
Tue, 2 Dec 2014 00:26:40 +0000
(
01:26
+0100)
committer
Milian Wolff
<mail@milianw.de>
Tue, 2 Dec 2014 00:26:49 +0000
(
01:26
+0100)
heaptrack_interpret.cpp
patch
|
blob
|
history
diff --git
a/heaptrack_interpret.cpp
b/heaptrack_interpret.cpp
index
a61f800
..
1b49ffe
100644
(file)
--- a/
heaptrack_interpret.cpp
+++ b/
heaptrack_interpret.cpp
@@
-223,9
+223,7
@@
struct AccumulatedTraceData
}
const size_t id = m_internedData.size() + 1;
m_internedData.insert(it, make_pair(str, id));
- fputs("s ", stdout);
- fputs(str.c_str(), stdout);
- fputc('\n', stdout);
+ fprintf(stdout, "s %s\n", str.c_str());
return id;
}