X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fprofiler%2FSectionProfiler.php;h=63940bc914b5b4a208eb1f0d5dae2bd6cdaecd9b;hb=06f87a12789fe993faac72aa6b7700bd48a0f99f;hp=245022df02e11a253b5ef5ad20c2a7a036017dbe;hpb=a300fabb68430e6204eebceb2af9ddbffd72017a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/profiler/SectionProfiler.php b/includes/profiler/SectionProfiler.php index 245022df02..63940bc914 100644 --- a/includes/profiler/SectionProfiler.php +++ b/includes/profiler/SectionProfiler.php @@ -89,9 +89,9 @@ class SectionProfiler { * @return array List of method entries arrays, each having: * - name : method name * - calls : the number of invoking calls - * - real : real time ellapsed (ms) + * - real : real time elapsed (ms) * - %real : percent real time - * - cpu : real time ellapsed (ms) + * - cpu : real time elapsed (ms) * - %cpu : percent real time * - memory : memory used (bytes) * - %memory : percent memory used @@ -451,15 +451,14 @@ class SectionProfiler { } /** - * Get the initial time of the request, based either on $wgRequestTime or - * $wgRUstart. Will return null if not able to find data. + * Get the initial time of the request, based on getrusage() * * @param string|bool $metric Metric to use, with the following possibilities: * - user: User CPU time (without system calls) * - cpu: Total CPU time (user and system calls) * - wall (or any other string): elapsed time * - false (default): will fall back to default metric - * @return float|null + * @return float */ protected function getTime( $metric = 'wall' ) { if ( $metric === 'cpu' || $metric === 'user' ) {