summaryrefslogtreecommitdiff
path: root/modules/rest
diff options
context:
space:
mode:
Diffstat (limited to 'modules/rest')
-rw-r--r--modules/rest/helpers/rest.php5
1 files changed, 5 insertions, 0 deletions
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 "<pre>$html</pre>";
+ if (Session::instance()->get("profiler", false)) {
+ Profiler::enable();
+ $profiler = new Profiler();
+ $profiler->render();
+ }
break;
default: