Skip to content

Instantly share code, notes, and snippets.

View propertunist's full-sized avatar

ura soul propertunist

View GitHub Profile
@propertunist
propertunist / elgg-profile-queries.php
Created October 10, 2015 23:40 — forked from mrclay/elgg-profile-queries.php
Elgg: profile MySQL queries on Elgg 1.10 - 1.x
<?php
/**
* Query profiler for Elgg 1.10-1.12
*
* Require this script inside settings.php and the JavaScript console will report all
* queries with their time in seconds, and the total time spent in mysql_query().
*
* This will not include queries performed after the "output", "page" hook.
*
* On production you could include this only if a particular query string is set: