Вот такая штука у меня используется:
if ($modx->user->hasSessionContext('mgr')) { $output = '<div style="position: fixed; top: 5px; left: 5px; color: black; text-align: left; background: white; padding: 5px 10px;"> Time: [ ^t^ ] Memory: '.round((memory_get_peak_usage(true) / 1024 / 1024),2).' Mb Source: [ ^s^ ] Queries: [ ^q^ ] Query time: [ ^qt^ ] </div>'; } return $output;
Вы должны авторизоваться, чтобы оставлять комментарии.