diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2022-06-15 19:56:15 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2022-06-16 10:48:55 +0100 |
commit | 04a84620435abea4944569e0da292627fd9dd45d (patch) | |
tree | c81c64397c3b61e278bdcef16c7ec6fa9127ce05 /kit/Delta.hpp | |
parent | delta: have own delta cache mutex, and size cache for session count. (diff) | |
download | online-04a84620435abea4944569e0da292627fd9dd45d.tar.gz online-04a84620435abea4944569e0da292627fd9dd45d.zip |
deltas: debug dump the state.
Change-Id: Id35f68a108c151de5d2c27800510d17de60faa4c
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'kit/Delta.hpp')
-rw-r--r-- | kit/Delta.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kit/Delta.hpp b/kit/Delta.hpp index d5b9607e60..3ed196f6e0 100644 --- a/kit/Delta.hpp +++ b/kit/Delta.hpp @@ -455,6 +455,13 @@ class DeltaGenerator { rebalanceDeltas(std::min(count, size_t(1)) * 24); } + void dumpState(std::ostream& oss) + { + oss << "\tdelta generator with " << _deltaEntries.size() << " entries vs. max " << _maxEntries << "\n"; + for (auto &it : _deltaEntries) + oss << "\t\t" << it->_size << "," << it->_part << "," << it->_left << "," << it->_top << " wid: " << it->getWid() << "\n"; + } + /** * Creates a delta if possible: * if so - returns @true and appends the delta to @output |