Prev | Current Page 233 | Next

Brad Ediger

"Advanced Rails"


The added value that we receive from the graph profile is the parent and child information
in each block. Each function has zero or more parents (functions that called
this function) and zero or more children (functions called by this function). Parents
are listed above the current function within a block, and children are listed below the
current function.
Rails Optimization Example | 157
The meaning of the Calls column is different for different rows. For the primary row
within a block, it simply refers to the total number of calls to the function. For the parent
rows, it takes the form calls/total, where calls is the number of times the parent
function called the current function and total is the total number of times the current
function was called. Note that since all functions calling the current function are parents,
the calls values of all parents will sum to the calls value of the current function.
For child rows, the semantics are the same, but they are from the child??™s point of
view. The calls value of a child row is the number of times the current function calls
the child function, as a fraction of the total number of times the child function was
called. The denominator of this number will be the same as the calls value for the
child function??™s own block. This gives a picture of how much impact the current
function has on the child, relative to the child??™s other callers.


Pages:
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245