aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/memory/qv4mm_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-04-23 10:17:13 +0200
committerLars Knoll <lars.knoll@qt.io>2018-05-02 14:20:02 +0000
commiteca0b30f22903443ac0ca5a91830a6762c546b43 (patch)
treeb9c39d79d05abb04c381a62b5d66b75bdaf4c7aa /src/qml/memory/qv4mm_p.h
parentd1047f4eba219e01fef6faf56dccd923fc0e3ce1 (diff)
Make the statistics variables members of the memory manager
Otherwise this will show wrong stuff when running multiple engines in different threads (and create noise in thread sanitizers) Change-Id: Ia90054f5a54ee2c43870c8d839f25b195b09698c Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/memory/qv4mm_p.h')
-rw-r--r--src/qml/memory/qv4mm_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/memory/qv4mm_p.h b/src/qml/memory/qv4mm_p.h
index d61655c38a..e3a011caf9 100644
--- a/src/qml/memory/qv4mm_p.h
+++ b/src/qml/memory/qv4mm_p.h
@@ -306,6 +306,9 @@ public:
bool gcStats = false;
bool gcCollectorStats = false;
+ int allocationCount = 0;
+ size_t lastAllocRequestedSlots = 0;
+
struct {
size_t maxReservedMem = 0;
size_t maxAllocatedMem = 0;