Index: trunk/phase3/includes/filerepo/backend/FileBackend.php |
— | — | @@ -1267,7 +1267,9 @@ |
1268 | 1268 | if ( $res == StreamFile::NOT_MODIFIED ) { |
1269 | 1269 | // do nothing; client cache is up to date |
1270 | 1270 | } elseif ( $res == StreamFile::READY_STREAM ) { |
| 1271 | + wfProfileIn( __METHOD__ . '-send' ); |
1271 | 1272 | $status = $this->doStreamFile( $params ); |
| 1273 | + wfProfileOut( __METHOD__ . '-send' ); |
1272 | 1274 | } else { |
1273 | 1275 | $status->fatal( 'backend-fail-stream', $params['src'] ); |
1274 | 1276 | } |
Index: trunk/phase3/includes/StreamFile.php |
— | — | @@ -29,7 +29,9 @@ |
30 | 30 | if ( $res == self::NOT_MODIFIED ) { |
31 | 31 | $ok = true; // use client cache |
32 | 32 | } elseif ( $res == self::READY_STREAM ) { |
| 33 | + wfProfileIn( __METHOD__ . '-send' ); |
33 | 34 | $ok = readfile( $fname ); |
| 35 | + wfProfileOut( __METHOD__ . '-send' ); |
34 | 36 | } else { |
35 | 37 | $ok = false; // failed |
36 | 38 | } |