function extractProfile(error, profile)
        {
            return !error && profile ? profile : null;
        }
@param {?Protocol.Error} error
@param {?ProfilerAgent.CPUProfile} profile
@return {?ProfilerAgent.CPUProfile}