For a specific project I was working on I found it very useful to play around a little with the various flags of 'dprofpp' to get more insight into the figures it produces. For instance
dprofpp -r -I will show you the real time spent in each subroutine + all subroutines called from this subroutine. This might provide you with more clues why specific subroutines are called this often, and if that can be avoided in somewhere in your own code. Another clue might be found in the
dprofpp -t output. This will show you a call-tree of your subroutines. If you look for your top-10 of 'expensive' routines here you can see what routine called them. In general, the 'dprofpp' manpage is quite interesting literature. ;-)
Although the database doesn't seem to be a bottleneck from the data you provide, you still can take a deeper look into the database side of this by using
dbiprof(I think this comes standard with DBI). In short:
- To profile (using bash):
DBI_PROFILE=DBI::ProfileDumper perl <your program here>
- To analyze:
dbiprof
This will give you some info on what query is executed how many times, and how mutch time it takes to do that. I used this with succes to see where I could speed things up by using extra indexes on much used columns in my tables.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.