diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-04-23 10:17:13 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-05-02 14:20:02 +0000 |
commit | eca0b30f22903443ac0ca5a91830a6762c546b43 (patch) | |
tree | b9c39d79d05abb04c381a62b5d66b75bdaf4c7aa /src/qml/memory/qv4mm_p.h | |
parent | d1047f4eba219e01fef6faf56dccd923fc0e3ce1 (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.h | 3 |
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; |