Posted by wylbur on January 23, 2015 at 7:17pm
Start:
2015-01-28 17:00 - 21:00 America/Menominee Event type:
User group meeting
Twin Cities Drupal User Group (TCDUG) meetup
-- sponsored by Advantage Labs.
Please signup, we will order pizza. Feel free to bring beer or drinks to share.
Les Lim will be presenting on Optimization and the Block System. Please join us!
TCDUG runs from 7pm to 9pm
Community Lab Hours
-- right before the monthly TCDUG meetup, join your local Drupal community peers for an open Lab Hours session Wednesday from 5-7pm.
- Ask questions,
- share ideas
- just get something done on your own site project!
TCDUG and Community Lab Hours meetups take place at:
Intermedia Arts
2822 Lyndale Ave S
Minneapolis, MN 55408
map & directions
This is near the corner of Lake and Lyndale. There is parking in the lot to the right of the building (north side).
Comments
I'm IN and Updated the Event with Schedule
I'll be there for Community Lab Hours and the User Group. I've also updated the Time of the events:
5-7pm - Lab Hours
7-9pm - User Group
See you then!
Here's the core patch to expose block timing:
diff --git a/modules/block/block.module b/modules/block/block.module
index b6a7332..2a6113d 100644
--- a/modules/block/block.module
+++ b/modules/block/block.module
@@ -886,6 +886,9 @@ function block_render_blocks($region_blocks) {
}
foreach ($region_blocks as $key => $block) {
+ $blockid = $block->cache . ': ' .$block->module. ': '. $block->delta;
+ timer_start($blockid);
+
// Render the block content if it has not been created already.
if (!isset($block->content)) {
// Erase the block from the static array - we'll put it back if it has
@@ -934,6 +937,9 @@ function _block_render_blocks($region_blocks) {
$region_blocks["{$block->module}{$block->delta}"] = $block;
}
}
+
+ $timer = timer_stop($blockid);
+ dpm($timer['time'] . ': ' . $blockid);
}
return $region_blocks;
}
dropbucket
http://dropbucket.org/
This was the Drupal code snippet site I was talking about. It might worth your while to post this there too.
Software Engineer @ The Nerdery
duplicate
This was double posted.
Software Engineer @ The Nerdery
In D8 you won't have to hack core
In Drupal 8 you could have extended BlockViewBuilder to do:
public function buildBlock($build) {
/** start timer here /
parent::buildBlock($build);
/ end and report timer here **/
}
Software Engineer @ The Nerdery