implement PC tracing
add qtrace_header.h for better abstraction in client module