summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-01-17 12:52:00 +0100
committerUlf Hermann <ulf.hermann@qt.io>2018-01-23 08:56:47 +0000
commita375707bf7b65658e9277476d2cf22c17854617a (patch)
tree56a2b804fddabe9cb28ba00d5cc55b4d5243bfa5
parentf28de0a0e2eb4b2289c83e2185635f0f63da32f3 (diff)
Make it cheaper to flush the symbol table cache
We only want to remove the reported modules, not reinitialize the dwfl and restart the heuristic that guesses the target architecture and dlopen()'s the backend. Change-Id: Icd459777e16172c89186b197a0cdaf758bd7d6e6 Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
-rw-r--r--app/perfsymboltable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/perfsymboltable.cpp b/app/perfsymboltable.cpp
index 0a1b292..2c2791f 100644
--- a/app/perfsymboltable.cpp
+++ b/app/perfsymboltable.cpp
@@ -757,8 +757,8 @@ void PerfSymbolTable::clearCache()
m_perfMapFile.reset();
// Throw out the dwfl state
- dwfl_end(m_dwfl);
- m_dwfl = dwfl_begin(m_callbacks);
+ dwfl_report_end(m_dwfl, NULL, NULL);
+ dwfl_report_begin(m_dwfl);
m_cacheIsDirty = false;
}