Add support for bottleneck stats

This commit is contained in:
Lauri Kasanen
2020-09-21 15:51:56 +03:00
parent 45e44a66e5
commit d5bdef121a
11 changed files with 164 additions and 4 deletions

View File

@@ -68,6 +68,10 @@ namespace rfb {
const RenderedCursor* renderedCursor,
size_t maxUpdateSize);
unsigned getEncodingTime() const {
return encodingTime;
};
protected:
void doUpdate(bool allowLossy, const Region& changed,
const Region& copied, const Point& copy_delta,
@@ -177,6 +181,7 @@ namespace rfb {
unsigned webpFallbackUs;
unsigned webpBenchResult;
bool webpTookTooLong;
unsigned encodingTime;
EncCache *encCache;