![]() |
Profiler is showing multiple query sections? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Profiler is showing multiple query sections? (/showthread.php?tid=64037) |
Profiler is showing multiple query sections? - mr_pablo - 01-06-2016 In CI2, the Profiler would show a single Query section showing all queries ran in that request. Now in CI3, the Profiler shows multiple Query sections, they each show the same set of queries, so it seems a tad redundant? Is this the same for anyone else? Is this working as intended? And can I change it show it only shows one section? RE: Profiler is showing multiple query sections? - chihwen - 01-20-2016 The error display is: DATABASE: dbname (Welcome:$db) QUERIES: 13 (0.0614 seconds) (Hide) DATABASE: dbname (Common_model:$_database) QUERIES: 13 (0.0614 seconds) (Hide) DATABASE: dbname (Member_model:$_database) QUERIES: 13 (0.0614 seconds) (Hide) DATABASE: dbname (Homepage_model:$_database) QUERIES: 13 (0.0614 seconds) (Hide) CI v3.x change history: https://github.com/bcit-ci/CodeIgniter/blame/develop/system/libraries/Profiler.php https://github.com/bcit-ci/CodeIgniter/commit/55a8c6267fad29d8bc3677c084c2c5d00569ec96 https://github.com/bcit-ci/CodeIgniter/issues/1220 PHP Code: // Let's determine which databases are currently connected to CI v2.x change history: https://github.com/bcit-ci/CodeIgniter/blame/2.2-stable/system/libraries/Profiler.php https://github.com/bcit-ci/CodeIgniter/commit/f0a9b332445977cfb05fee2dacc02667946a9cd2 PHP Code: // Let's determine which databases are currently connected to So my solution is: file location: /application/libraries/MY_Profiler.php PHP Code: <?php |