From c495d287c38e7e87c581f1d50794b454668d65da Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Tue, 4 Aug 2020 13:01:25 -0300 Subject: [PATCH] Debugging performance issues. --- client/src/session/local/set.cc | 2 ++ client/src/session/local/wait.cc | 3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/client/src/session/local/set.cc b/client/src/session/local/set.cc index af1604f..02993a0 100644 --- a/client/src/session/local/set.cc +++ b/client/src/session/local/set.cc @@ -66,7 +66,9 @@ std::lock_guard lock(this->sync); + debug(__FUNCTION__,"(",row,",",col,",\"",str,"\")"); int rc = lib3270_set_string_at(hSession,row,col,(unsigned char *) str.c_str(),str.length()); + debug("rc=",rc); if(rc < 0) chkResponse(-rc); diff --git a/client/src/session/local/wait.cc b/client/src/session/local/wait.cc index ac6f2b6..fdb5b42 100644 --- a/client/src/session/local/wait.cc +++ b/client/src/session/local/wait.cc @@ -38,6 +38,8 @@ #include "private.h" #include + #include + #include /*---[ Implement ]----------------------------------------------------------------------------------*/ @@ -65,6 +67,7 @@ LIB3270_KEYBOARD_LOCK_STATE Local::Session::waitForKeyboardUnlock(time_t timeout) const { std::lock_guard lock(const_cast(this)->sync); + debug("waitForKeyboardUnlock(",timeout,")"); return lib3270_wait_for_keyboard_unlock(this->hSession, timeout); } -- libgit2 0.21.2