Skip to content

Commit

Permalink
Enable profiling output in the HTML output for REST. Fixes #1535.
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Dec 17, 2010
1 parent 7e31f97 commit 161a85d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/rest/helpers/rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ static function reply($data=array()) {
$html = t("Empty response");
}
print "<pre>$html</pre>";
if (Session::instance()->get("profiler", false)) {
Profiler::enable();
$profiler = new Profiler();
$profiler->render();
}
break;

default:
Expand Down

0 comments on commit 161a85d

Please sign in to comment.