public function createSubProfileQuery()
    {
        if (!$this->isFirstSample || !self::$profilerIsEnabled) {
            return null;
        }

        $features = $this->args;

        if (isset($features['sub_profile']) && false !== strpos($features['sub_profile'], ':')) {
            $subProfile = explode(':', $features['sub_profile'], 2);
            $subProfile = $subProfile[1];
        } else {
            $subProfile = '';
        }
        $features['sub_profile'] = $subProfile.':'.$this->generateSubId();

        unset($features['aggreg_samples']);

        return $this->challenge.'&'.'signature='.$this->signature.'&'.strtr(http_build_query($features, '', '&'), self::$urlEncMap);
    }
public function createSubProfileQuery()
    {
        if (!$this->isFirstSample || !self::$profilerIsEnabled) {
            return null;
        }

        $features = $this->args;

        if (isset($features['sub_profile']) && false !== strpos($features['sub_profile'], ':')) {
            $subProfile = explode(':', $features['sub_profile'], 2);
            $subProfile = $subProfile[1];
        } else {
            $subProfile = '';
        }
        $features['sub_profile'] = $subProfile.':'.$this->generateSubId();

        unset($features['aggreg_samples']);

        return $this->challenge.'&'.'signature='.$this->signature.'&'.strtr(http_build_query($features, '', '&'), self::$urlEncMap);
    }
public function createSubProfileQuery ( ) { if ( ! $ this -> isFirstSample || ! self :: $ profilerIsEnabled ) { return null ; } $ features = $ this -> args ; if ( isset ( $ features [ 'sub_profile' ] ) && false !== strpos ( $ features [ 'sub_profile' ] , ':' ) ) { $ subProfile = explode ( ':' , $ features [ 'sub_profile' ] , 2 ) ; $ subProfile = $ subProfile [ 1 ] ; } else { $ subProfile = '' ; } $ features [ 'sub_profile' ] = $ subProfile . ':' . $ this -> generateSubId ( ) ; unset ( $ features [ 'aggreg_samples' ] ) ; return $ this -> challenge . '&' . 'signature=' . $ this -> signature . '&' . strtr ( http_build_query ( $ features , '' , '&' ) , self :: $ urlEncMap ) ; }
Creates a sub-query string to create a new profile linked to the current one.
This query must be set in the X-Blackire-Query HTTP header or in the BLACKFIRE_QUERY environment variable.

@return string|null The sub-query or null if the current profile is not the first sample or profiling is disabled.

@api
Creates a sub - query string to create a new profile linked to the current one . This query must be set in the X - Blackire - Query HTTP header or in the BLACKFIRE_QUERY environment variable .