track resource usage with process_guard
small stap refactoring