Skip to content

Commit

Permalink
MDL-53323 profiling: Close session as early as possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-russ committed Mar 3, 2016
1 parent 03b8b55 commit 1160945
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/xhprof/readme_moodle.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ Our changes: Look for "moodle" in code (commit #3 - always mimic from current m
* xhprof_lib/utils/callgraph_utils.php: Modified to use $CFG->pathtodot

TODO:
* with the 3 reports (index, callgraph and typeahead), close seesion asap,
so user can continue working with moodle while the report (specially
the graph is being generated).
* improvements to the listing mode: various commodity details like:
- allow to filter by various criteria
- inline (and ajax) editing of reference/comment and deleting
Expand Down
1 change: 1 addition & 0 deletions lib/xhprof/xhprof_html/callgraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
require_once($CFG->libdir . '/xhprof/xhprof_moodle.php');
require_login();
require_capability('moodle/site:config', context_system::instance());
\core\session\manager::write_close();
// End moodle modification.

// by default assume that xhprof_html & xhprof_lib directories
Expand Down
1 change: 1 addition & 0 deletions lib/xhprof/xhprof_html/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
require_once($CFG->libdir . '/xhprof/xhprof_moodle.php');
require_login();
require_capability('moodle/site:config', context_system::instance());
\core\session\manager::write_close();
// End moodle modification.

// by default assume that xhprof_html & xhprof_lib directories
Expand Down
1 change: 1 addition & 0 deletions lib/xhprof/xhprof_html/typeahead.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
require_once($CFG->libdir . '/xhprof/xhprof_moodle.php');
require_login();
require_capability('moodle/site:config', context_system::instance());
\core\session\manager::write_close();
// End moodle modification.

// by default assume that xhprof_html & xhprof_lib directories
Expand Down

0 comments on commit 1160945

Please sign in to comment.