ext/ruby_prof.c
static prof_stack_t *
stack_create()
{
    prof_stack_t *stack = ALLOC(prof_stack_t);
    stack->start = ALLOC_N(prof_frame_t, INITIAL_STACK_SIZE);
    stack->ptr = stack->start;
    stack->end = stack->start + INITIAL_STACK_SIZE;
    return stack;
}
/* Creates a stack of prof_frame_t to keep track
   of timings for active methods. */
Creates a stack of prof_frame_t to keep track
of timings for active methods.
Creates a stack of prof_frame_t to keep track of timings for active methods .
static prof_stack_t *
stack_create()
{
    prof_stack_t *stack = ALLOC(prof_stack_t);
    stack->start = ALLOC_N(prof_frame_t, INITIAL_STACK_SIZE);
    stack->ptr = stack->start;
    stack->end = stack->start + INITIAL_STACK_SIZE;
    return stack;
}
static prof_stack_t * stack_create ( ) { prof_stack_t * stack = ALLOC ( prof_stack_t ) ; stack -> start = ALLOC_N ( prof_frame_t , INITIAL_STACK_SIZE ) ; stack -> ptr = stack -> start ; stack -> end = stack -> start + INITIAL_STACK_SIZE ; return stack ; }
Creates a stack of prof_frame_t to keep track
of timings for active methods.
Creates a stack of prof_frame_t to keep track of timings for active methods .