Sha256: f39c3a9670697d18c4f0a23d88770ef409e247900753113f924ad59bc2140897
Contents?: true
Size: 1021 Bytes
Versions: 2
Compression:
Stored size: 1021 Bytes
Contents
/* Copyright (C) 2005-2011 Shugo Maeda <shugo@ruby-lang.org> and Charlie Savage <cfis@savagexi.com> Please see the LICENSE file for copyright and distribution information */ #ifndef __RP_STACK__ #define __RP_STACK__ #include <ruby.h> #include "rp_measure.h" #include "rp_call_info.h" /* Temporary object that maintains profiling information for active methods - there is one per method.*/ typedef struct { /* Caching prof_method_t values significantly increases performance. */ prof_call_info_t *call_info; double start_time; double wait_time; double child_time; unsigned int line; } prof_frame_t; /* Current stack of active methods.*/ typedef struct { prof_frame_t *start; prof_frame_t *end; prof_frame_t *ptr; } prof_stack_t; prof_stack_t * stack_create(); void stack_free(prof_stack_t *stack); prof_frame_t * stack_push(prof_stack_t *stack); prof_frame_t * stack_pop(prof_stack_t *stack); prof_frame_t * stack_peek(prof_stack_t *stack); #endif //__RP_STACK__
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-prof-0.11.0.rc1-x86-mingw32 | ext/ruby_prof/rp_stack.h |
ruby-prof-0.11.0.rc1 | ext/ruby_prof/rp_stack.h |