downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

MongoDB::getSlaveOkay> <MongoDB::getGridFS
[edit] Last updated: Fri, 25 May 2012

view this page in

MongoDB::getProfilingLevel

(PECL mongo >=0.9.0)

MongoDB::getProfilingLevelGets this database's profiling level

Beschreibung

public int MongoDB::getProfilingLevel ( void )

This returns the current database profiling level.

The database profiler tracks query execution times. If you turn it on (say, using MongoDB::setProfilingLevel() or the shell), you can see how many queries took longer than a given number of milliseconds or the timing for all queries.

Note that profiling slows down queries, so it is better to use in development or testing than in a time-sensitive application.

This function is equivalent to running:

<?php

public function getProfilingLevel() {
    return 
$this->command(array('profile' => -1));
}

?>

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

Returns the profiling level.

Siehe auch

MongoDB core docs on » profiling and MongoDB::setProfilingLevel() - Sets this database's profiling level.



add a note add a note User Contributed Notes MongoDB::getProfilingLevel
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites