sl2: Allow the use of cprofile to profile the screen implementation.