Ecocode_Profiler - Version 1.2.1

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.0</version>
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 foreach ($sessionAttributes['global'] as $namespace => $data): ?>
127
- <h4><?php echo uc_words($namespace) ?></h4>
128
- <?php echo $renderHelper->renderTable($data); ?>
129
- <?php endforeach; ?>
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.0</version>
6
  <description>&lt;h1 id="ecocode-profiler-magento-1-x-web-profiler"&gt;ecocode Profiler - Magento 1.x Web Profiler&lt;/h1&gt;
7
  &lt;p&gt;&lt;a href="https://travis-ci.org/ecoco/magento_profiler"&gt;&lt;img src="https://travis-ci.org/ecoco/magento_profiler.svg?branch=master" alt="Build Status"&gt;&lt;/a&gt;
8
  &lt;a href="https://coveralls.io/github/ecoco/magento_profiler?branch=master"&gt;&lt;img src="https://coveralls.io/repos/github/ecoco/magento_profiler/badge.svg?branch=master" alt="Coverage Status"&gt;&lt;/a&gt;
@@ -25,8 +25,8 @@ The concept and code of the WebProfiler have been ported to assist with Magento
25
  &lt;li&gt;&lt;a href="http://1.9.2.4.magento-profiler.ecocode.de/dev.php"&gt;Profiler with Magento 1.9.2.4&lt;/a&gt;&lt;/li&gt;
26
  &lt;/ul&gt;
27
  &lt;hr&gt;
28
- &lt;p&gt;&lt;img src="https://github.com/ecoco/magento_profiler/raw/v1.1.0/docs/image/toolbar.jpg" alt="Toolbar" title="Toolbar"&gt;&lt;/p&gt;
29
- &lt;p&gt;&lt;img src="https://github.com/ecoco/magento_profiler/raw/v1.1.0/docs/image/profiler.jpg" alt="Profiler" title="Profiler"&gt;&lt;/p&gt;
30
  &lt;p&gt;&lt;a href="docs/images.md"&gt;More Images&lt;/a&gt;&lt;/p&gt;
31
  &lt;h2 id="installation"&gt;Installation&lt;/h2&gt;
32
  &lt;h3 id="composer-recommended-"&gt;Composer (recommended)&lt;/h3&gt;
@@ -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
  &lt;/code&gt;&lt;/pre&gt;&lt;h3 id="magento-connect"&gt;Magento Connect&lt;/h3&gt;
50
- &lt;p&gt;In progress&lt;/p&gt;
51
  &lt;h3 id="webserver-config"&gt;Webserver Config&lt;/h3&gt;
52
- &lt;p&gt;It might be necessary to extend your webserver config to handle &amp;quot;dev.php&amp;quot; correctly&lt;/p&gt;
53
  &lt;h3 id="nginx-"&gt;Nginx:&lt;/h3&gt;
54
- &lt;p&gt;If you are using nginx and get a &lt;code&gt;404&lt;/code&gt; for the profiler, try adding the following to your nginx config before the php location definition:&lt;/p&gt;
55
  &lt;pre&gt;&lt;code&gt;location /dev.php/ {
56
  rewrite / /dev.php;
57
  }
@@ -136,17 +136,23 @@ time to time to verify the result.&lt;/p&gt;
136
  &lt;/li&gt;
137
  &lt;/ul&gt;
138
  &lt;h2 id="security"&gt;Security&lt;/h2&gt;
139
- &lt;p&gt;It should be safe to add this module to your own vcs by default. The profiler
140
- is only active when you are visiting your page via &amp;quot;dev.php&amp;quot;, which is restricted to
141
- localhost by default.&lt;/p&gt;
142
- &lt;p&gt;If you are using a vm you can edit the &lt;code&gt;dev.php&lt;/code&gt; or set &lt;code&gt;$_SERVER[&amp;#39;ALLOW_PROFILER&amp;#39;] = 1&lt;/code&gt;
143
- via your nginx or htaccess&lt;/p&gt;
 
 
 
 
 
 
144
  &lt;h2 id="todo"&gt;TODO&lt;/h2&gt;
145
  &lt;ul&gt;
146
- &lt;li&gt;Session Data&lt;/li&gt;
147
- &lt;li&gt;Catch url redirects&lt;/li&gt;
148
  &lt;li&gt;Improve docs&lt;/li&gt;
149
  &lt;li&gt;&amp;quot;how to extend&amp;quot;&lt;/li&gt;
 
 
150
  &lt;/ul&gt;
151
  &lt;h2 id="mixed"&gt;Mixed&lt;/h2&gt;
152
  &lt;p&gt;If you get a &lt;code&gt;gateway timeout 503&lt;/code&gt; instead of an error message please try to adjust your
@@ -170,8 +176,8 @@ nginx config&lt;/p&gt;
170
  <license>MIT</license>
171
  <stability>stable</stability>
172
  <notes/>
173
- <date>2016-10-19</date>
174
- <time>13:03:36</time>
175
  <authors>
176
  <author>
177
  <name>Justus Krapp</name>
@@ -183,7 +189,7 @@ nginx config&lt;/p&gt;
183
  <required>
184
  <php>
185
  <min>5.5.9</min>
186
- <max>7.0.10</max>
187
  </php>
188
  </required>
189
  </dependencies>
@@ -263,7 +269,7 @@ nginx config&lt;/p&gt;
263
  </dir>
264
  <dir name="request">
265
  <file name="menu.phtml" hash="45de32145ba7d367dd400ffdfb726295"/>
266
- <file name="panel.phtml" hash="4d076b410586ac7ade04c672cb5c46c6"/>
267
  <file name="toolbar.phtml" hash="401a608fb75bebcbd1cbdf336c033838"/>
268
  <dir name="toolbar">
269
  <file name="handler.phtml" hash="8bf3a498fb2d4cd0423be095be193db5"/>
@@ -382,7 +388,7 @@ nginx config&lt;/p&gt;
382
  </dir>
383
  </dir>
384
  <dir name="etc">
385
- <file name="config.xml" hash="8003393b0794d688b33577d1d0e7def7"/>
386
  <file name="development.xml" hash="5ca041f2c3683c795131c17276824e0a"/>
387
  </dir>
388
  <dir name="Helper">
@@ -416,7 +422,7 @@ nginx config&lt;/p&gt;
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="2a84dd0fa9d871ce903d3147b9f2bab3"/>
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>&lt;h1 id="ecocode-profiler-magento-1-x-web-profiler"&gt;ecocode Profiler - Magento 1.x Web Profiler&lt;/h1&gt;
7
  &lt;p&gt;&lt;a href="https://travis-ci.org/ecoco/magento_profiler"&gt;&lt;img src="https://travis-ci.org/ecoco/magento_profiler.svg?branch=master" alt="Build Status"&gt;&lt;/a&gt;
8
  &lt;a href="https://coveralls.io/github/ecoco/magento_profiler?branch=master"&gt;&lt;img src="https://coveralls.io/repos/github/ecoco/magento_profiler/badge.svg?branch=master" alt="Coverage Status"&gt;&lt;/a&gt;
25
  &lt;li&gt;&lt;a href="http://1.9.2.4.magento-profiler.ecocode.de/dev.php"&gt;Profiler with Magento 1.9.2.4&lt;/a&gt;&lt;/li&gt;
26
  &lt;/ul&gt;
27
  &lt;hr&gt;
28
+ &lt;p&gt;&lt;img src="https://github.com/ecoco/magento_profiler/raw/v1.2.1/docs/image/toolbar.jpg" alt="Toolbar" title="Toolbar"&gt;&lt;/p&gt;
29
+ &lt;p&gt;&lt;img src="https://github.com/ecoco/magento_profiler/raw/v1.2.1/docs/image/profiler.jpg" alt="Profiler" title="Profiler"&gt;&lt;/p&gt;
30
  &lt;p&gt;&lt;a href="docs/images.md"&gt;More Images&lt;/a&gt;&lt;/p&gt;
31
  &lt;h2 id="installation"&gt;Installation&lt;/h2&gt;
32
  &lt;h3 id="composer-recommended-"&gt;Composer (recommended)&lt;/h3&gt;
47
  composer require --dev jdorn/sql-formatter 1.2
48
  composer require --dev monolog/monolog 1.11
49
  &lt;/code&gt;&lt;/pre&gt;&lt;h3 id="magento-connect"&gt;Magento Connect&lt;/h3&gt;
50
+ &lt;p&gt;&lt;a href="https://www.magentocommerce.com/magento-connect/ecocode-profiler.html"&gt;ecocode Profiler&lt;/a&gt;&lt;/p&gt;
51
  &lt;h3 id="webserver-config"&gt;Webserver Config&lt;/h3&gt;
52
+ &lt;p&gt;It might be necessary to extend your webserver config to handle &amp;quot;dev.php&amp;quot; correctly. If your experiencing a 404 when you try to access &amp;quot;dev.php&amp;quot;&lt;/p&gt;
53
  &lt;h3 id="nginx-"&gt;Nginx:&lt;/h3&gt;
54
+ &lt;p&gt;try adding the following to your nginx config before the php location definition:&lt;/p&gt;
55
  &lt;pre&gt;&lt;code&gt;location /dev.php/ {
56
  rewrite / /dev.php;
57
  }
136
  &lt;/li&gt;
137
  &lt;/ul&gt;
138
  &lt;h2 id="security"&gt;Security&lt;/h2&gt;
139
+ &lt;p&gt;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 &amp;quot;dev.php&amp;quot;,
141
+ which is restricted to request from localhost by default.&lt;/p&gt;
142
+ &lt;p&gt;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&lt;/p&gt;
144
+ &lt;p&gt;Webserver:
145
+ To allow the access to the profiler you have to set &amp;quot;$_SERVER[&amp;#39;ALLOW_PROFILER&amp;#39;] = 1&amp;quot;&lt;/p&gt;
146
+ &lt;p&gt;Nginx:
147
+ &lt;code&gt;fastcgi_param ALLOW_PROFILER &amp;#39;1&amp;#39;;&lt;/code&gt;
148
+ Apache:
149
+ &lt;code&gt;SetEnv ALLOW_PROFILER &amp;quot;1&amp;quot;&lt;/code&gt;&lt;/p&gt;
150
  &lt;h2 id="todo"&gt;TODO&lt;/h2&gt;
151
  &lt;ul&gt;
 
 
152
  &lt;li&gt;Improve docs&lt;/li&gt;
153
  &lt;li&gt;&amp;quot;how to extend&amp;quot;&lt;/li&gt;
154
+ &lt;li&gt;capture emails&lt;/li&gt;
155
+ &lt;li&gt;performance tab&lt;/li&gt;
156
  &lt;/ul&gt;
157
  &lt;h2 id="mixed"&gt;Mixed&lt;/h2&gt;
158
  &lt;p&gt;If you get a &lt;code&gt;gateway timeout 503&lt;/code&gt; 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"/>