PluginProbe
Code Profiler – WordPress Performance Profiling and Debugging Made Easy / 1.7.4
Code Profiler – WordPress Performance Profiling and Debugging Made Easy v1.7.4
1.9.6 1.9.5 1.9.4 1.9.3 trunk 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.6 1.6.1 1.6.10 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 All 41 releases
← All changes | lib/class-profiler.php +8 -1 1.6.81.7.4 View file →
@@ -6,9 +6,9 @@
6 6 | | | / _ \ / _` |/ _ \ | |_) | '__/ _ \| |_| | |/ _ \ '__| |
7 7 | | |__| (_) | (_| | __/ | __/| | | (_) | _| | | __/ | |
8 8 | \____\___/ \__,_|\___| |_| |_| \___/|_| |_|_|\___|_| |
9 9 | |
10 - | (c) Jerome Bruandet ~ https://code-profiler.com/ |
10 + | (c) Jerome Bruandet ~ https://nintechnet.com/codeprofiler/ |
11 11 +=====================================================================+
12 12 */
13 13
14 14 if (! defined('ABSPATH') ) { die('Forbidden'); }
@@ -22,12 +22,14 @@
22 22 static $metrics;
23 23 static $fh;
24 24 static $connections_list = [];
25 25 static $connections_start;
26 + static $exclusions = [];
26 27 private $tmp_iostats;
27 28 private $tmp_summary;
28 29 private $tmp_diskio;
29 30 private $tmp_calls;
31 + private $tmp_connections;
30 32
31 33 /**
32 34 * Initialize
33 35 */
@@ -109,8 +111,13 @@
109 111 esc_html__('Setting size of memory buffer to %sMB', 'code-profiler'),
110 112 self::$buffer / 1000000
111 113 )
112 114 );
115 +
116 + // File & folder exclusions
117 + if ( isset( $cp_options['exclusions'] ) ) {
118 + self::$exclusions = json_decode( $cp_options['exclusions'] );
119 + }
113 120
114 121 add_filter('pre_http_request', [ $this, 'pre_http_request'], 10000, 3 );
115 122 add_action('http_api_debug', [ $this, 'http_api_debug'], 10000, 5 );
116 123 register_shutdown_function( [ $this, 'code_profiler_shutdown'] );