1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
/* Copyright (C) 2005-2013 Shugo Maeda <shugo@ruby-lang.org> and Charlie Savage <cfis@savagexi.com>
Please see the LICENSE file for copyright and distribution information */
#ifndef __RP_CALL_TREES_H__
#define __RP_CALL_TREES_H__
#include "ruby_prof.h"
#include "rp_call_tree.h"
/* Array of call_tree objects */
typedef struct prof_call_trees_t
{
prof_call_tree_t** start;
prof_call_tree_t** end;
prof_call_tree_t** ptr;
VALUE object;
} prof_call_trees_t;
void rp_init_call_trees(void);
prof_call_trees_t* prof_call_trees_create(void);
void prof_call_trees_free(prof_call_trees_t* call_trees);
prof_call_trees_t* prof_get_call_trees(VALUE self);
void prof_add_call_tree(prof_call_trees_t* call_trees, prof_call_tree_t* call_tree);
VALUE prof_call_trees_wrap(prof_call_trees_t* call_trees);
#endif //__RP_CALL_TREES_H__
|