diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-07-11 15:47:41 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2018-07-11 13:57:25 +0000 |
commit | 003cb38adcf72ee1b36d9f051d5bdbcd2da9aa3b (patch) | |
tree | b5c36b0e3d2856dcff32d0746960c6af817c6fac | |
parent | cb70ec8e5bdcbcdab3c54483ed9e89dd76e58ef1 (diff) |
Don't look up file names of special regions
This is mostly a fruitless exercise and may occasionally give bogus
results.
Change-Id: I154232a6106c046727ed22188cbf30e5f1da100e
Task-number: QTCREATORBUG-20762
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r-- | app/perfsymboltable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/perfsymboltable.cpp b/app/perfsymboltable.cpp index 2c44ac7..45889aa 100644 --- a/app/perfsymboltable.cpp +++ b/app/perfsymboltable.cpp @@ -299,7 +299,7 @@ void PerfSymbolTable::registerElf(const PerfRecordMmap &mmap, const QByteArray & || filePath.startsWith(QLatin1String("/memfd:")) || filePath == QLatin1String("//anon") || filePath == QLatin1String("/SYSV00000000 (deleted)"); - const auto fileName = QFileInfo(filePath).fileName(); + const auto fileName = isSpecialRegion ? QString() : QFileInfo(filePath).fileName(); QFileInfo fullPath; if (isSpecialRegion) { // don not set fullPath, these regions don't represent a real file |