diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-03-27 08:53:48 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-03-27 08:53:48 +0300 |
commit | bc89b5ec03cf3833a41560110b0e433f93232c22 (patch) | |
tree | 2f43f6a73739276380399ec8ed2b0eb40fdf2fb6 /libs | |
parent | cd91ede1a0455b07039df0295a52f94924fdf204 (diff) |
- memory and speed optimizations of archiving, refs #374 (hopefully fixing it but not sure yet)
- added support for profiling memory & time in Piwik via the events mechanism
- small other changes
Diffstat (limited to 'libs')
-rwxr-xr-x | libs/Event/Dispatcher.php | 5 | ||||
-rwxr-xr-x | libs/Event/Notification.php | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libs/Event/Dispatcher.php b/libs/Event/Dispatcher.php index fe64305875..6e6a72eb21 100755 --- a/libs/Event/Dispatcher.php +++ b/libs/Event/Dispatcher.php @@ -278,7 +278,9 @@ class Event_Dispatcher if (empty($rObserver['class']) || strcasecmp($rObserver['class'], $objClass) == 0) { call_user_func_array($rObserver['callback'], array(&$notification)); - $notification->increaseNotificationCount(); + //-- Piwik Hack --// + $notification->increaseNotificationCount(get_class($rObserver['callback'][0]), $rObserver['callback'][1]); + //-- End Piwik Hack --// } } } @@ -475,4 +477,3 @@ class Event_Dispatcher } } -?> diff --git a/libs/Event/Notification.php b/libs/Event/Notification.php index 58d08fa4cf..1ce2ccde8d 100755 --- a/libs/Event/Notification.php +++ b/libs/Event/Notification.php @@ -191,4 +191,3 @@ class Event_Notification return ($this->_notificationState === EVENT_NOTIFICATION_STATE_CANCELLED); } } -?> |