update : 2015.11.03
php.shukuma.com

검색:
 
 
Gets this database's profiling level

MongoDB::getProfilingLevel

(PECL mongo >=0.9.0)

MongoDB::getProfilingLevelGets this database's profiling level

설명

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));
}

?>

인수

이 함수는 인수가 없습니다.

반환값

Returns the profiling level.

참고