Tideways is an application performance management tool that enables profiling, alerting and error reporting.
This plugin aims to:
- Set meaningful names, based on Moodle page types, against transactions for easier identification of interesting transactions.
- Install instrumentation for SQL Server with the
sqlsrv
extension.
-
Install this repository to
/local/tideways
. -
Run the Moodle upgrade process, either via the UI or CLI.
-
Add the following to your
/config.php
above the/lib/setup.php
include:require_once __DIR__ . '/local/tideways/bootstrap.php'; local_tideways_pre_setup();
-
Add the following below the
/lib/setup.php
include:local_tideways_post_setup();
$CFG->local_tideways
can be set (prior to calling the local_tideways_*
functions) to an array containing the following keys to alter the plugin's behaviour:
development
causes the profiler to be started in development mode, where it always collects a complete trace and profile. This is useful for debugging this plugin but should not be enabled in production environments.profiler_options
allows you to override options passed to the profiler at start-time.