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:
f541d0e
)
Don't do manual reserve calls, its slower than the default way.
author
Milian Wolff
<mail@milianw.de>
Wed, 21 May 2014 12:58:09 +0000
(14:58 +0200)
committer
Milian Wolff
<mail@milianw.de>
Wed, 21 May 2014 12:58:09 +0000
(14:58 +0200)
malloctrace_main.cpp
patch
|
blob
|
history
diff --git
a/malloctrace_main.cpp
b/malloctrace_main.cpp
index
ff5890b
..
777c635
100644
(file)
--- a/
malloctrace_main.cpp
+++ b/
malloctrace_main.cpp
@@
-232,9
+232,6
@@
int main(int argc, char** argv)
cerr << "failed to find instruction " << ipId << endl;
}
}
- if (data.traces.size() <= id) {
- data.traces.reserve(id + 1000);
- }
data.traces.push_back(trace);
++nextTraceId;
} else if (mode == '+') {