summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDarya Knysh <d.knysh@nips.ru>2020-12-14 13:26:36 +0700
committerDarya Knysh <d.knysh@nips.ru>2020-12-15 08:40:51 +0000
commitdb1a1848f961b14e0187f3121e62dbca31da2e00 (patch)
tree04e2c3ef6accdf4fa3999fe58b6cb5d8dc9b83a4 /tests
parent908bb5c48ecbf90e0663dbff0045d40b19481021 (diff)
Add actual file path computation for symbols
Actual file path can differ from perf recorded. Compute and pass it to hotspot through Symbol struct field actualPath. Change-Id: I556035234cbcffa42497bf02e225d63565e4a0bf Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/shared/perfparsertestclient.cpp2
-rw-r--r--tests/auto/shared/perfparsertestclient.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/shared/perfparsertestclient.cpp b/tests/auto/shared/perfparsertestclient.cpp
index 43702ce..ce7482c 100644
--- a/tests/auto/shared/perfparsertestclient.cpp
+++ b/tests/auto/shared/perfparsertestclient.cpp
@@ -117,7 +117,7 @@ void PerfParserTestClient::extractTrace(QIODevice *device)
case SymbolDefinition: {
qint32 id;
SymbolEvent symbol;
- stream >> id >> symbol.name >> symbol.binary >> symbol.path >> symbol.isKernel >> symbol.relAddr >> symbol.size;
+ stream >> id >> symbol.name >> symbol.binary >> symbol.path >> symbol.isKernel >> symbol.relAddr >> symbol.size >> symbol.actualPath;
if (symbol.name != -1)
checkString(symbol.name);
if (symbol.binary != -1)
diff --git a/tests/auto/shared/perfparsertestclient.h b/tests/auto/shared/perfparsertestclient.h
index 06c6c83..fbb56a3 100644
--- a/tests/auto/shared/perfparsertestclient.h
+++ b/tests/auto/shared/perfparsertestclient.h
@@ -77,6 +77,7 @@ public:
quint64 size = 0;
qint32 binary = -1;
qint32 path = -1;
+ qint32 actualPath = -1;
bool isKernel = false;
};