Index: trunk/phase3/includes/api/ApiBase.php |
— | — | @@ -394,6 +394,7 @@ |
395 | 395 | if ($this->mTimeIn !== 0) |
396 | 396 | ApiBase :: dieDebug(__METHOD__, 'called twice without calling profileOut()'); |
397 | 397 | $this->mTimeIn = microtime(true); |
| 398 | + wfProfileIn($this->getModuleName()); |
398 | 399 | } |
399 | 400 | |
400 | 401 | /** |
— | — | @@ -407,6 +408,7 @@ |
408 | 409 | |
409 | 410 | $this->mModuleTime += microtime(true) - $this->mTimeIn; |
410 | 411 | $this->mTimeIn = 0; |
| 412 | + wfProfileOut($this->getModuleName()); |
411 | 413 | } |
412 | 414 | |
413 | 415 | /** |
— | — | @@ -432,6 +434,7 @@ |
433 | 435 | if ($this->mDBTimeIn !== 0) |
434 | 436 | ApiBase :: dieDebug(__METHOD__, 'called twice without calling profileDBOut()'); |
435 | 437 | $this->mDBTimeIn = microtime(true); |
| 438 | + wfProfileIn($this->getModuleName() . '_db'); |
436 | 439 | } |
437 | 440 | |
438 | 441 | /** |
— | — | @@ -448,6 +451,7 @@ |
449 | 452 | |
450 | 453 | $this->mDBTime += $time; |
451 | 454 | $this->getMain()->mDBTime += $time; |
| 455 | + wfProfileOut($this->getModuleName() . '_db'); |
452 | 456 | } |
453 | 457 | |
454 | 458 | /** |