Add trace to framework APIs

Can only trace most APIs due to methods size