Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xhprof_enable(3) [php man page]

XHPROF_ENABLE(3)							 1							  XHPROF_ENABLE(3)

xhprof_enable - Start xhprof profiler

SYNOPSIS
void xhprof_enable ([int $flags], [array $options]) DESCRIPTION
Start xhprof profiling. PARAMETERS
o $flags - Optional flags to add additional information to the profiling. See the XHprof constants for further information about these flags, e.g., XHPROF_FLAGS_MEMORY to enable memory profiling. o $options - An array of optional options, namely, the 'ignored_functions' option to pass in functions to be ignored during profiling. RETURN VALUES
NULL CHANGELOG
+--------+---------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------+ | 0.9.2 | | | | | | | The optional $options parameter was added. | | | | +--------+---------------------------------------------+ EXAMPLES
Example #1 xhprof_enable(3) examples <?php // 1. elapsed time + memory + CPU profiling; and ignore built-in (internal) functions xhprof_enable(XHPROF_FLAGS_NO_BUILTINS | XHPROF_FLAGS_CPU | XHPROF_FLAGS_MEMORY); // 2. elapsed time profiling; ignore call_user_func* during profiling xhprof_enable( 0, array('ignored_functions' => array('call_user_func', 'call_user_func_array'))); // 3. elapsed time + memory profiling; ignore call_user_func* during profiling xhprof_enable( XHPROF_FLAGS_MEMORY, array('ignored_functions' => array('call_user_func', 'call_user_func_array'))); ?> SEE ALSO
xhprof_disable(3), xhprof_sample_enable(3), memory_get_usage(3), getrusage(3). PHP Documentation Group XHPROF_ENABLE(3)

Check Out this Related Man Page

kgmon(8)							    Unsupported 							  kgmon(8)

Name
       kgmon - generate a dump of the operating system's profile buffers

Syntax
       /etc/kgmon [ options ] [ system ] [ memory ]

Description
       The command is used when profiling the operating system.  When no arguments are supplied, indicates the state of operating system profiling
       as running, off, or not configured.  For further information, see If the option is specified, extracts profile data from the operating sys-
       tem and produces a file suitable for later analysis by

       The  file  is first converted to a format suitable for by using the filter. The command dumps the kernel profiling data for all the proces-
       sors in the system. The command is used to create a file suitable for analysis by for any or all the processors in the system.

Options
       -b   Resumes the collection of profile data.

       -h   Stops the collection of profile data.

       -p   Dumps the contents of the profile buffers into a file.

       -r   Resets all the profile buffers.  If the option is also specified, the file is generated before the buffers are reset.

       If neither nor is specified, the state of profiling collection remains unchanged.  For example, if the option is specified and profile data
       is  being  collected,  profiling  will be momentarily suspended, the operating system profile buffers will be dumped, and profiling will be
       immediately resumed.

Diagnostics
       Users with only read permission on cannot change the state of profiling collection.  They can get a file with the warning that the data may
       be inconsistent if profiling is in progress.

Files
       Default system

       Default memory

See Also
       gprof(1), config(8), kgconv(8)

																	  kgmon(8)
Man Page

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

AWK help: how to compare array elements against a variable

i have an array call ignore. it is set up ignore=34th56 ignore=re45ty ignore=rt45yu . . ignore=rthg34 n is a variable. I have another variable that i read from a different file. It is $2 and it is working the way i expect. array ignore read and print correct values. in the below if... (2 Replies)
Discussion started by: usustarr
2 Replies

2. Shell Programming and Scripting

printing array elements inside AWK

i just want to dump my array and see if it contains the values i am expecting. It should print as follows, ignore=345fht ignore=rthfg56 . . . ignore=49568g Here is the code. Is this even possible to do? please help termReport.pl < $4 | dos2ux | head -2000 | awk ' BEGIN... (0 Replies)
Discussion started by: usustarr
0 Replies

3. AIX

C profiling tool for AIX

Hello everybody, Please let me know if there are any free C profiling tool for AIX environment Thanks in advance (0 Replies)
Discussion started by: SteAlma
0 Replies