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:
0dbd93b
)
Don't check module map sanity in non-debug builds of heaptrack.
author
Milian Wolff
<mail@milianw.de>
Fri, 11 Dec 2015 20:13:23 +0000
(21:13 +0100)
committer
Milian Wolff
<mail@milianw.de>
Fri, 11 Dec 2015 20:13:23 +0000
(21:13 +0100)
heaptrack_interpret.cpp
patch
|
blob
|
history
diff --git
a/heaptrack_interpret.cpp
b/heaptrack_interpret.cpp
index
b018eb0
..
2715312
100644
(file)
--- a/
heaptrack_interpret.cpp
+++ b/
heaptrack_interpret.cpp
@@
-175,6
+175,7
@@
struct AccumulatedTraceData
// sort by addresses, required for binary search below
sort(m_modules.begin(), m_modules.end());
+#ifndef NDEBUG
for (size_t i = 0; i < m_modules.size(); ++i) {
const auto& m1 = m_modules[i];
for (size_t j = i + 1; j < m_modules.size(); ++j) {
@@
-194,6
+195,7
@@
struct AccumulatedTraceData
}
}
}
+#endif
m_modulesDirty = false;
}