summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am1
-rw-r--r--common/Png.hpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index dbb997c2b2..02f8ceb773 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -165,6 +165,7 @@ lokitclient_SOURCES = common/Log.cpp \
tools/KitClient.cpp \
common/Protocol.cpp \
common/StringVector.cpp \
+ common/TraceEvent.cpp \
common/Util.cpp
loolforkit_sources = kit/ChildSession.cpp \
diff --git a/common/Png.hpp b/common/Png.hpp
index 041ed6f7ad..b63541aec9 100644
--- a/common/Png.hpp
+++ b/common/Png.hpp
@@ -59,6 +59,7 @@
#include "Log.hpp"
#include "SpookyV2.h"
+#include "TraceEvent.hpp"
namespace Png
{
@@ -203,6 +204,8 @@ inline bool encodeSubBufferToPNG(unsigned char* pixmap, size_t startX, size_t st
int height, int bufferWidth, int bufferHeight,
std::vector<char>& output, LibreOfficeKitTileMode mode)
{
+ ProfileZone pz("encodeSubBufferToPNG");
+
const auto start = std::chrono::steady_clock::now();
const bool res = impl_encodeSubBufferToPNG(pixmap, startX, startY, width, height, bufferWidth,