Commit c495d287c38e7e87c581f1d50794b454668d65da
1 parent
0668e0fa
Exists in
master
and in
1 other branch
Debugging performance issues.
Showing
2 changed files
with
5 additions
and
0 deletions
Show diff stats
client/src/session/local/set.cc
| @@ -66,7 +66,9 @@ | @@ -66,7 +66,9 @@ | ||
| 66 | 66 | ||
| 67 | std::lock_guard<std::recursive_mutex> lock(this->sync); | 67 | std::lock_guard<std::recursive_mutex> lock(this->sync); |
| 68 | 68 | ||
| 69 | + debug(__FUNCTION__,"(",row,",",col,",\"",str,"\")"); | ||
| 69 | int rc = lib3270_set_string_at(hSession,row,col,(unsigned char *) str.c_str(),str.length()); | 70 | int rc = lib3270_set_string_at(hSession,row,col,(unsigned char *) str.c_str(),str.length()); |
| 71 | + debug("rc=",rc); | ||
| 70 | if(rc < 0) | 72 | if(rc < 0) |
| 71 | chkResponse(-rc); | 73 | chkResponse(-rc); |
| 72 | 74 |
client/src/session/local/wait.cc
| @@ -38,6 +38,8 @@ | @@ -38,6 +38,8 @@ | ||
| 38 | 38 | ||
| 39 | #include "private.h" | 39 | #include "private.h" |
| 40 | #include <lib3270/actions.h> | 40 | #include <lib3270/actions.h> |
| 41 | + #include <signal.h> | ||
| 42 | + #include <unistd.h> | ||
| 41 | 43 | ||
| 42 | /*---[ Implement ]----------------------------------------------------------------------------------*/ | 44 | /*---[ Implement ]----------------------------------------------------------------------------------*/ |
| 43 | 45 | ||
| @@ -65,6 +67,7 @@ | @@ -65,6 +67,7 @@ | ||
| 65 | LIB3270_KEYBOARD_LOCK_STATE Local::Session::waitForKeyboardUnlock(time_t timeout) const { | 67 | LIB3270_KEYBOARD_LOCK_STATE Local::Session::waitForKeyboardUnlock(time_t timeout) const { |
| 66 | 68 | ||
| 67 | std::lock_guard<std::recursive_mutex> lock(const_cast<Local::Session *>(this)->sync); | 69 | std::lock_guard<std::recursive_mutex> lock(const_cast<Local::Session *>(this)->sync); |
| 70 | + debug("waitForKeyboardUnlock(",timeout,")"); | ||
| 68 | return lib3270_wait_for_keyboard_unlock(this->hSession, timeout); | 71 | return lib3270_wait_for_keyboard_unlock(this->hSession, timeout); |
| 69 | } | 72 | } |
| 70 | 73 |