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.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 1.6.8 All 40 releases
← All changes | lib/menu_log.php +24 -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') ) {
@@ -87,8 +87,9 @@
87 87 }
88 88
89 89 echo code_profiler_display_tabs( 4 );
90 90 ?>
91 +<h3><?php esc_html_e('Code Profiler log', 'code-profiler'); ?></h3>
91 92 <form name="cplogform" method="post">
92 93 <table class="form-table">
93 94 <tr>
94 95 <td width="100%">
@@ -138,8 +139,30 @@
138 139 </td>
139 140 </tr>
140 141 </table>
141 142 </form>
143 +
144 +<h3><?php esc_html_e('HTTP response log', 'code-profiler'); ?></h3>
145 +<table class="form-table">
146 + <tr>
147 + <td width="100%">
148 + <textarea dir="auto" name="cptxtlog" class="large-text code" style="height:<?php echo $th; ?>px;" wrap="off" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"><?php
149 +
150 + /**
151 + * Search for an eventual "last_request.1727412303.5681.log" file.
152 + */
153 + $file = code_profiler_glob( CODE_PROFILER_UPLOAD_DIR, '^last_request\.\d+?\.\d+?\.log$', true );
154 + if ( empty( $file[0] ) ) {
155 + echo "\n\n > " . esc_html__('The HTTP response log is empty.', 'code-profiler');
156 + } else {
157 + $log = file_get_contents( $file[0] );
158 + echo esc_textarea( $log );
159 + }
160 + ?></textarea>
161 + <p class="description"><?php esc_html_e('The log shows the HTTP response headers and body for the last profile.', 'code-profiler') ?></p>
162 + </td>
163 + </tr>
164 +</table>
142 165 <?php
143 166
144 167 // =====================================================================
145 168 // EOF