BxProfilerModule.php 863 B

123456789101112131415161718192021222324252627282930313233343536
  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 DolphinModules
  8. *
  9. * @{
  10. */
  11. bx_import('BxDolModule');
  12. /**
  13. * Profiler module by BoonEx
  14. *
  15. * This module estimate timining, like page openings, mysql queries execution and service calls.
  16. * Also it can log too long queries, so you can later investigate these bottle necks and speedup whole script.
  17. */
  18. class BxProfilerModule extends BxDolModule
  19. {
  20. function __construct($aModule)
  21. {
  22. parent::__construct($aModule);
  23. }
  24. function actionHome ()
  25. {
  26. $this->_oTemplate->pageStart();
  27. echo $this->_aModule['title'];
  28. $this->_oTemplate->pageCode($this->_aModule['title']);
  29. }
  30. }
  31. /** @} */