Welcome Guest, Not a member yet? Register   Sign In
FireStick 1.1 (Performance logging add-on library)
#1

[eluser]Dan Hulton[/eluser]
FireStick is a (relatively) simple to configure library that enables easy and low-overhead performance logging in CodeIgniter.

Performance measuring and logging is an important part of application maintenance and improvement. FireStick makes it easy to record page render times, MySQL call times, and other related information that you can use to track down performance issues.

FireStick relies on CodeIgniter's built-in performance and benchmarking capabilities and a post-system hook. When the hook is called, FireStick logs all this information to the database for review at a later date.

Logs are split up into multiple tables based on date, with each new day's table created automatically on the first request of each new day. All logs are added using INSERT DELAYED so as to minimize impact on the database server.

Changes since version 1.0:

* Added columns to log table to track amount of time spent in actual application code vs. CI code.

Main project page: http://code.google.com/p/firestick/
Project source: http://firestick.googlecode.com/files/firestick-1.1.zip
Installation instructions: http://code.google.com/p/firestick/wiki/Installation

Questions? Comments? Leave 'em below!

[EDIT: Added better description.]

[EDIT: New release - 1.1!]
#2

[eluser]phpwebdev[/eluser]
Can u explain in details what this source do ?
#3

[eluser]johnwbaxter[/eluser]
Yeah you definitely need to explain a bit more about what it does and how it does it. Looks interesting though!
#4

[eluser]Dan Hulton[/eluser]
Sure, I've updated the OP with a more complete explanation of what the library does. Let me know if that's still not clear enough.
#5

[eluser]johnwbaxter[/eluser]
Ah i see, sounds good. Do you think it would have much impact on the speed of ci's normal running ( i appreciate the delayed inserts part but there are obviously extra files being loaded ). I have logging turned off on live sites as i think it adds some noticeable overhead myself. I could be paranoid of course and it makes no difference of course!

Is it easy to turn on and off?
#6

[eluser]Dan Hulton[/eluser]
It's actually rather simple to turn off - edit config/firestick.php and set $config['log_frequency'] to 0 and no more logging. Although, a rather more reasonable approach would be to set it to 1, meaning only 1% of all pages get logged. With enough users, this should still be a large enough sample size to be able to identify performance issues in your application.

With that said, I don't think FireStick has a noticable impact on CodeIgniter - I enabled it on an app I have running, and the render time difference was so small as to be within the margin for error, effectively negligable.

I consider performance monitoring and logging to simply be part of the total cost of running an application - if your app isn't tell you where it's slow, how are you ever going to know?
#7

[eluser]johnwbaxter[/eluser]
I totally agree with you on performance monitoring on that front. Very important indeed. Usually i try to load test mine before it goes live but nothing beats real world testing.

I'll give it a go tomorrow.
#8

[eluser]Dan Hulton[/eluser]
New release! Firestick now has a snazzy new logo and can keep track of the amount of time spent in actual application code vs. CodeIgniter code.
#9

[eluser]johnwbaxter[/eluser]
Okay, i've finally got round to trying this out.

There seems to be a problem:

Severity: Notice --> Undefined index: HTTP_REFERER /var/www/vhosts/site.com/system/application/libraries/Firestick.php 157
#10

[eluser]johnwbaxter[/eluser]
Whoops, didn't mean to put my actual URL in there!




Theme © iAndrew 2016 - Forum software by © MyBB