BxProfilerModule.php 833 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
  4. * CC-BY License - http://creativecommons.org/licenses/by/3.0/
  5. *
  6. * @defgroup Profiler Profiler
  7. * @ingroup TridentModules
  8. *
  9. * @{
  10. */
  11. /**
  12. * Profiler module by BoonEx
  13. *
  14. * This module estimate timining, like page openings, mysql queries execution and service calls.
  15. * Also it can log too long queries, so you can later investigate these bottle necks and speedup whole script.
  16. */
  17. class BxProfilerModule extends BxDolModule
  18. {
  19. function __construct($aModule)
  20. {
  21. parent::__construct($aModule);
  22. }
  23. function actionHome ()
  24. {
  25. $this->_oTemplate->pageStart();
  26. echo $this->_aModule['title'];
  27. $this->_oTemplate->pageCode($this->_aModule['title']);
  28. }
  29. }
  30. /** @} */