summaryrefslogtreecommitdiff
path: root/render-test/metadata.hpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-08-25 19:55:21 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-08-27 12:34:09 +0300
commitd0a84cb7d9866d4d46141ef2735697de3302d50b (patch)
treef31d3892951c803ca6a15d3152fec558c6b4a1d6 /render-test/metadata.hpp
parente787f5f43ae0136003606ad0276d68def3c76437 (diff)
downloadqtlocation-mapboxgl-d0a84cb7d9866d4d46141ef2735697de3302d50b.tar.gz
[test runner] Introduce probe_memory_.. API for render tests
Diffstat (limited to 'render-test/metadata.hpp')
-rw-r--r--render-test/metadata.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/render-test/metadata.hpp b/render-test/metadata.hpp
index 98e208fe54..308c9074f0 100644
--- a/render-test/metadata.hpp
+++ b/render-test/metadata.hpp
@@ -7,6 +7,8 @@
#include "filesystem.hpp"
+#include <map>
+
struct TestStatistics {
TestStatistics() = default;
@@ -27,6 +29,16 @@ struct TestPaths {
}
};
+struct MemoryProbe {
+ MemoryProbe() = default;
+ MemoryProbe(size_t size_, size_t allocations_)
+ : size(size_)
+ , allocations(allocations_) {}
+
+ size_t size;
+ size_t allocations;
+};
+
struct TestMetadata {
TestMetadata() = default;
@@ -59,4 +71,6 @@ struct TestMetadata {
std::string errorMessage;
double difference = 0.0;
+
+ std::map<std::string, MemoryProbe> memoryProbes;
}; \ No newline at end of file