#279, #287, #296: Wall clock profiler improvements:

- stable interval
 - thread states (runnable vs. sleeping)
 - Java API to update set of monitored threads
This commit is contained in:
Andrey Pangin
2020-02-11 03:26:19 +03:00
parent 9b24fdef99
commit 9fc97fc681
25 changed files with 570 additions and 147 deletions
+8 -2
View File
@@ -16,6 +16,7 @@
#if defined(__arm__) || defined(__thumb__)
#include <errno.h>
#include "stackFrame.h"
@@ -59,8 +60,8 @@ bool StackFrame::pop(bool trust_frame_pointer) {
return false;
}
void StackFrame::restartSyscall() {
// Not implemented on this arch
bool StackFrame::checkInterruptedSyscall() {
return retval() == (uintptr_t)-EINTR;
}
int StackFrame::callerLookupSlots() {
@@ -71,4 +72,9 @@ bool StackFrame::isReturnAddress(instruction_t* pc) {
return false;
}
bool StackFrame::isSyscall(instruction_t* pc) {
// swi #0
return *pc == 0xef000000;
}
#endif // defined(__arm__) || defined(__thumb__)