Version Notes
Download this release
Release Info
Developer | Justus Krapp |
Extension | Ecocode_Profiler |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2.0 to 1.2.1
app/code/community/Ecocode/Profiler/Model/Collector/LayoutDataCollector.php
CHANGED
@@ -124,6 +124,10 @@ class Ecocode_Profiler_Model_Collector_LayoutDataCollector
|
|
124 |
foreach ($this->renderLog as &$data) {
|
125 |
$renderTimeExcl = $data['render_time_incl'];
|
126 |
foreach ($data['children'] as $childId) {
|
|
|
|
|
|
|
|
|
127 |
$child = $this->renderLog[$childId];
|
128 |
$renderTimeExcl -= $child['render_time_incl'];
|
129 |
}
|
124 |
foreach ($this->renderLog as &$data) {
|
125 |
$renderTimeExcl = $data['render_time_incl'];
|
126 |
foreach ($data['children'] as $childId) {
|
127 |
+
if (!isset($this->renderLog[$childId])) {
|
128 |
+
//if the block was unset continue
|
129 |
+
continue;
|
130 |
+
}
|
131 |
$child = $this->renderLog[$childId];
|
132 |
$renderTimeExcl -= $child['render_time_incl'];
|
133 |
}
|
app/code/community/Ecocode/Profiler/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Ecocode_Profiler>
|
5 |
-
<version>1.2.
|
6 |
</Ecocode_Profiler>
|
7 |
</modules>
|
8 |
</config>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Ecocode_Profiler>
|
5 |
+
<version>1.2.1</version>
|
6 |
</Ecocode_Profiler>
|
7 |
</modules>
|
8 |
</config>
|
app/design/frontend/base/default/template/ecocode_profiler/collector/request/panel.phtml
CHANGED
@@ -123,10 +123,10 @@ $renderHelper = Mage::helper('ecocode_profiler/renderer');
|
|
123 |
<?php echo $renderHelper->renderTable($data); ?>
|
124 |
<?php endforeach; ?>
|
125 |
|
126 |
-
<?php
|
127 |
-
<h4
|
128 |
-
<?php echo $renderHelper->renderTable($
|
129 |
-
<?php
|
130 |
<?php endif ?>
|
131 |
|
132 |
</div>
|
123 |
<?php echo $renderHelper->renderTable($data); ?>
|
124 |
<?php endforeach; ?>
|
125 |
|
126 |
+
<?php if ($sessionAttributes['global']): ?>
|
127 |
+
<h4>Global Data</h4>
|
128 |
+
<?php echo $renderHelper->renderTable($sessionAttributes['global']); ?>
|
129 |
+
<?php endif ?>
|
130 |
<?php endif ?>
|
131 |
|
132 |
</div>
|
package.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<root>
|
3 |
<name>Ecocode_Profiler</name>
|
4 |
<channel>community</channel>
|
5 |
-
<version>1.2.
|
6 |
<description><h1 id="ecocode-profiler-magento-1-x-web-profiler">ecocode Profiler - Magento 1.x Web Profiler</h1>
|
7 |
<p><a href="https://travis-ci.org/ecoco/magento_profiler"><img src="https://travis-ci.org/ecoco/magento_profiler.svg?branch=master" alt="Build Status"></a>
|
8 |
<a href="https://coveralls.io/github/ecoco/magento_profiler?branch=master"><img src="https://coveralls.io/repos/github/ecoco/magento_profiler/badge.svg?branch=master" alt="Coverage Status"></a>
|
@@ -25,8 +25,8 @@ The concept and code of the WebProfiler have been ported to assist with Magento
|
|
25 |
<li><a href="http://1.9.2.4.magento-profiler.ecocode.de/dev.php">Profiler with Magento 1.9.2.4</a></li>
|
26 |
</ul>
|
27 |
<hr>
|
28 |
-
<p><img src="https://github.com/ecoco/magento_profiler/raw/v1.1
|
29 |
-
<p><img src="https://github.com/ecoco/magento_profiler/raw/v1.1
|
30 |
<p><a href="docs/images.md">More Images</a></p>
|
31 |
<h2 id="installation">Installation</h2>
|
32 |
<h3 id="composer-recommended-">Composer (recommended)</h3>
|
@@ -47,11 +47,11 @@ composer require --dev symfony/yaml 3.1
|
|
47 |
composer require --dev jdorn/sql-formatter 1.2
|
48 |
composer require --dev monolog/monolog 1.11
|
49 |
</code></pre><h3 id="magento-connect">Magento Connect</h3>
|
50 |
-
<p>
|
51 |
<h3 id="webserver-config">Webserver Config</h3>
|
52 |
-
<p>It might be necessary to extend your webserver config to handle &quot;dev.php&quot; correctly</p>
|
53 |
<h3 id="nginx-">Nginx:</h3>
|
54 |
-
<p>
|
55 |
<pre><code>location /dev.php/ {
|
56 |
rewrite / /dev.php;
|
57 |
}
|
@@ -136,17 +136,23 @@ time to time to verify the result.</p>
|
|
136 |
</li>
|
137 |
</ul>
|
138 |
<h2 id="security">Security</h2>
|
139 |
-
<p>It
|
140 |
-
is only active when you are visiting your page via &quot;dev.php&quot;,
|
141 |
-
localhost by default.</p>
|
142 |
-
<p>If you are using a vm you
|
143 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
<h2 id="todo">TODO</h2>
|
145 |
<ul>
|
146 |
-
<li>Session Data</li>
|
147 |
-
<li>Catch url redirects</li>
|
148 |
<li>Improve docs</li>
|
149 |
<li>&quot;how to extend&quot;</li>
|
|
|
|
|
150 |
</ul>
|
151 |
<h2 id="mixed">Mixed</h2>
|
152 |
<p>If you get a <code>gateway timeout 503</code> instead of an error message please try to adjust your
|
@@ -170,8 +176,8 @@ nginx config</p>
|
|
170 |
<license>MIT</license>
|
171 |
<stability>stable</stability>
|
172 |
<notes/>
|
173 |
-
<date>2016-10-
|
174 |
-
<time>
|
175 |
<authors>
|
176 |
<author>
|
177 |
<name>Justus Krapp</name>
|
@@ -183,7 +189,7 @@ nginx config</p>
|
|
183 |
<required>
|
184 |
<php>
|
185 |
<min>5.5.9</min>
|
186 |
-
<max>7.
|
187 |
</php>
|
188 |
</required>
|
189 |
</dependencies>
|
@@ -263,7 +269,7 @@ nginx config</p>
|
|
263 |
</dir>
|
264 |
<dir name="request">
|
265 |
<file name="menu.phtml" hash="45de32145ba7d367dd400ffdfb726295"/>
|
266 |
-
<file name="panel.phtml" hash="
|
267 |
<file name="toolbar.phtml" hash="401a608fb75bebcbd1cbdf336c033838"/>
|
268 |
<dir name="toolbar">
|
269 |
<file name="handler.phtml" hash="8bf3a498fb2d4cd0423be095be193db5"/>
|
@@ -382,7 +388,7 @@ nginx config</p>
|
|
382 |
</dir>
|
383 |
</dir>
|
384 |
<dir name="etc">
|
385 |
-
<file name="config.xml" hash="
|
386 |
<file name="development.xml" hash="5ca041f2c3683c795131c17276824e0a"/>
|
387 |
</dir>
|
388 |
<dir name="Helper">
|
@@ -416,7 +422,7 @@ nginx config</p>
|
|
416 |
<file name="DataCollectorInterface.php" hash="33082cfb75eedf75b6af2c6afac3d782"/>
|
417 |
<file name="EventDataCollector.php" hash="b54c69b72dd4694c33a8934c4588aa14"/>
|
418 |
<file name="LateDataCollectorInterface.php" hash="11f0136ac985fbadde129c2de7082df1"/>
|
419 |
-
<file name="LayoutDataCollector.php" hash="
|
420 |
<file name="LogDataCollector.php" hash="ed5554e57957606f11debbf4f5d3b6a9"/>
|
421 |
<file name="MemoryDataCollector.php" hash="6b9df2616c98fb717fe987650b05e839"/>
|
422 |
<file name="ModelDataCollector.php" hash="f234954b4b88992bf50b818b00cb4446"/>
|
2 |
<root>
|
3 |
<name>Ecocode_Profiler</name>
|
4 |
<channel>community</channel>
|
5 |
+
<version>1.2.1</version>
|
6 |
<description><h1 id="ecocode-profiler-magento-1-x-web-profiler">ecocode Profiler - Magento 1.x Web Profiler</h1>
|
7 |
<p><a href="https://travis-ci.org/ecoco/magento_profiler"><img src="https://travis-ci.org/ecoco/magento_profiler.svg?branch=master" alt="Build Status"></a>
|
8 |
<a href="https://coveralls.io/github/ecoco/magento_profiler?branch=master"><img src="https://coveralls.io/repos/github/ecoco/magento_profiler/badge.svg?branch=master" alt="Coverage Status"></a>
|
25 |
<li><a href="http://1.9.2.4.magento-profiler.ecocode.de/dev.php">Profiler with Magento 1.9.2.4</a></li>
|
26 |
</ul>
|
27 |
<hr>
|
28 |
+
<p><img src="https://github.com/ecoco/magento_profiler/raw/v1.2.1/docs/image/toolbar.jpg" alt="Toolbar" title="Toolbar"></p>
|
29 |
+
<p><img src="https://github.com/ecoco/magento_profiler/raw/v1.2.1/docs/image/profiler.jpg" alt="Profiler" title="Profiler"></p>
|
30 |
<p><a href="docs/images.md">More Images</a></p>
|
31 |
<h2 id="installation">Installation</h2>
|
32 |
<h3 id="composer-recommended-">Composer (recommended)</h3>
|
47 |
composer require --dev jdorn/sql-formatter 1.2
|
48 |
composer require --dev monolog/monolog 1.11
|
49 |
</code></pre><h3 id="magento-connect">Magento Connect</h3>
|
50 |
+
<p><a href="https://www.magentocommerce.com/magento-connect/ecocode-profiler.html">ecocode Profiler</a></p>
|
51 |
<h3 id="webserver-config">Webserver Config</h3>
|
52 |
+
<p>It might be necessary to extend your webserver config to handle &quot;dev.php&quot; correctly. If your experiencing a 404 when you try to access &quot;dev.php&quot;</p>
|
53 |
<h3 id="nginx-">Nginx:</h3>
|
54 |
+
<p>try adding the following to your nginx config before the php location definition:</p>
|
55 |
<pre><code>location /dev.php/ {
|
56 |
rewrite / /dev.php;
|
57 |
}
|
136 |
</li>
|
137 |
</ul>
|
138 |
<h2 id="security">Security</h2>
|
139 |
+
<p>It is safe to add this module to your own vcs by default.
|
140 |
+
The profiler is only active when you are visiting your page via &quot;dev.php&quot;,
|
141 |
+
which is restricted to request from localhost by default.</p>
|
142 |
+
<p>If you are using a vm you have to allow your host system to access the profiler.
|
143 |
+
This can be done by modify the webserver config or the dev.php itself</p>
|
144 |
+
<p>Webserver:
|
145 |
+
To allow the access to the profiler you have to set &quot;$_SERVER[&#39;ALLOW_PROFILER&#39;] = 1&quot;</p>
|
146 |
+
<p>Nginx:
|
147 |
+
<code>fastcgi_param ALLOW_PROFILER &#39;1&#39;;</code>
|
148 |
+
Apache:
|
149 |
+
<code>SetEnv ALLOW_PROFILER &quot;1&quot;</code></p>
|
150 |
<h2 id="todo">TODO</h2>
|
151 |
<ul>
|
|
|
|
|
152 |
<li>Improve docs</li>
|
153 |
<li>&quot;how to extend&quot;</li>
|
154 |
+
<li>capture emails</li>
|
155 |
+
<li>performance tab</li>
|
156 |
</ul>
|
157 |
<h2 id="mixed">Mixed</h2>
|
158 |
<p>If you get a <code>gateway timeout 503</code> instead of an error message please try to adjust your
|
176 |
<license>MIT</license>
|
177 |
<stability>stable</stability>
|
178 |
<notes/>
|
179 |
+
<date>2016-10-24</date>
|
180 |
+
<time>12:58:09</time>
|
181 |
<authors>
|
182 |
<author>
|
183 |
<name>Justus Krapp</name>
|
189 |
<required>
|
190 |
<php>
|
191 |
<min>5.5.9</min>
|
192 |
+
<max>7.9.9</max>
|
193 |
</php>
|
194 |
</required>
|
195 |
</dependencies>
|
269 |
</dir>
|
270 |
<dir name="request">
|
271 |
<file name="menu.phtml" hash="45de32145ba7d367dd400ffdfb726295"/>
|
272 |
+
<file name="panel.phtml" hash="061e82853207ed7ae6a0e38c6799afa6"/>
|
273 |
<file name="toolbar.phtml" hash="401a608fb75bebcbd1cbdf336c033838"/>
|
274 |
<dir name="toolbar">
|
275 |
<file name="handler.phtml" hash="8bf3a498fb2d4cd0423be095be193db5"/>
|
388 |
</dir>
|
389 |
</dir>
|
390 |
<dir name="etc">
|
391 |
+
<file name="config.xml" hash="8b7cd46f5ad86bf3b596e04a60858e91"/>
|
392 |
<file name="development.xml" hash="5ca041f2c3683c795131c17276824e0a"/>
|
393 |
</dir>
|
394 |
<dir name="Helper">
|
422 |
<file name="DataCollectorInterface.php" hash="33082cfb75eedf75b6af2c6afac3d782"/>
|
423 |
<file name="EventDataCollector.php" hash="b54c69b72dd4694c33a8934c4588aa14"/>
|
424 |
<file name="LateDataCollectorInterface.php" hash="11f0136ac985fbadde129c2de7082df1"/>
|
425 |
+
<file name="LayoutDataCollector.php" hash="7e4ffbc2a4f5d550265811b355d448ff"/>
|
426 |
<file name="LogDataCollector.php" hash="ed5554e57957606f11debbf4f5d3b6a9"/>
|
427 |
<file name="MemoryDataCollector.php" hash="6b9df2616c98fb717fe987650b05e839"/>
|
428 |
<file name="ModelDataCollector.php" hash="f234954b4b88992bf50b818b00cb4446"/>
|