MDL-79285 xhprof: Add support for optional "reducedata" parameter
commit71bc684c41a26656ace3c576e87456d33d28b025
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 17 Sep 2023 21:06:01 +0000 (17 23:06 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 26 Sep 2023 17:39:48 +0000 (26 19:39 +0200)
treeb386a3d257c7922aa03b7043fcc0410fcb66a9a0
parent8ef2974af1f435dd7797e3a88f18c0c07b37f21b
MDL-79285 xhprof: Add support for optional "reducedata" parameter

This new parameter / property will decide if we want to reduce
the run data before processing it:
- By default it will be disabled in table mode.
- By default it will be enabled in graph mode.
- The defaults can be changed by adding reducedata=[0|1] in the URLs
- Once data reduction is enabled, it stays enabled while
  navigating within the xhprof reports.
lib/xhprof/xhprof_html/callgraph.php
lib/xhprof/xhprof_html/index.php
lib/xhprof/xhprof_moodle.php