Puppet Class: php::xhprof

Defined in:
puppet/modules/php/manifests/xhprof.pp

Overview

Class: php::xhprof

Profiler for PHP

Parameters

profile_storage_dir

Path where profiles should be stored.

Parameters:

  • profile_storage_dir (Any)


9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'puppet/modules/php/manifests/xhprof.pp', line 9

class php::xhprof (
    $profile_storage_dir,
) {

    package { 'php7.4-tideways':
        ensure  => present,
    }

    php::ini { 'xhprof_enable':
        settings => {
            # Not used by the extension directly, used by the
            # XHProf_Runs utility class
            'xhprof.output_dir' => $profile_storage_dir,
        },
        require  => Package['php7.4-tideways'],
    }

    # Directory used, by default, to store profile runs
    file { $profile_storage_dir:
        ensure => directory,
        owner  => $::share_owner,
        group  => $::share_group,
        mode   => '0775',
    }
}