From 161a85d3f5a6e8ed5835b901eb1d08e07e40be81 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 16 Dec 2010 20:37:44 -0800 Subject: Enable profiling output in the HTML output for REST. Fixes #1535. --- modules/rest/helpers/rest.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/rest/helpers') diff --git a/modules/rest/helpers/rest.php b/modules/rest/helpers/rest.php index 9406e209..676c10c3 100644 --- a/modules/rest/helpers/rest.php +++ b/modules/rest/helpers/rest.php @@ -54,6 +54,11 @@ class rest_Core { $html = t("Empty response"); } print "
$html
"; + if (Session::instance()->get("profiler", false)) { + Profiler::enable(); + $profiler = new Profiler(); + $profiler->render(); + } break; default: -- cgit v1.2.3