diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2022-11-14 10:21:08 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-11-14 12:11:49 +0000 |
commit | 560205ffa6338ebdeb3172e722158b9cfa54916c (patch) | |
tree | 36108fe396c1de9bdf8f5a6402f4c877a0274074 /src/qml/jsruntime/qv4profiling.cpp | |
parent | c016ab30c9c1932936424d22a0e62d3f1f2bfc48 (diff) |
Profiler: Add move operations to FunctionCall
This requires us to check the pointer on destruction, but should make
list operations faster, due to the refcount becoming unnecessary.
It also fixes some compiler warnings.
Fixes: QTBUG-105226
Change-Id: I4b1fe65f08fa89b6b305c34e07e12ff5e165a9f7
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4profiling.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4profiling.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4profiling.cpp b/src/qml/jsruntime/qv4profiling.cpp index db33cd27f9..ed0dba1809 100644 --- a/src/qml/jsruntime/qv4profiling.cpp +++ b/src/qml/jsruntime/qv4profiling.cpp @@ -63,6 +63,7 @@ void Profiler::reportData() for (const FunctionCall &call : std::as_const(m_data)) { properties.append(call.properties()); Function *function = call.function(); + Q_ASSERT(function); SentMarker &marker = m_sentLocations[reinterpret_cast<quintptr>(function)]; if (!marker.isValid()) { FunctionLocation &location = locations[properties.constLast().id]; |