Sha256: 4015d4a5d8ec1f42fca1182a04bf7d920fd966f32e2504b9aa298b851a0a1a38

Contents?: true

Size: 1.52 KB

Versions: 14

Compression:

Stored size: 1.52 KB

Contents

/* 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_INFO_H__
#define __RP_CALL_INFO_H__

#include "rp_measure.h"
#include "rp_method.h"

extern VALUE cCallInfo;

/* Callers and callee information for a method. */
typedef struct prof_call_info_t
{
    prof_method_t *target; /* Use target instead of method to avoid conflict with Ruby method */
    struct prof_call_info_t *parent;
    st_table *call_infos;
    int called;
	int depth;
    double total_time;
    double self_time;
    double wait_time;
    int line;
    VALUE object;
    VALUE children;
} prof_call_info_t;

/* Array of call_info objects */
typedef struct prof_call_infos_t 
{
    prof_call_info_t **start;
    prof_call_info_t **end;
    prof_call_info_t **ptr;
    VALUE object;
} prof_call_infos_t;


void rp_init_call_info(void);
prof_call_infos_t* prof_call_infos_create();
void prof_call_infos_mark(prof_call_infos_t *call_infos);
void prof_call_infos_free(prof_call_infos_t *call_infos);
void prof_add_call_info(prof_call_infos_t *call_infos, prof_call_info_t *call_info);
VALUE prof_call_infos_wrap(prof_call_infos_t *call_infos);
prof_call_info_t * prof_call_info_create(prof_method_t* method, prof_call_info_t* parent);
prof_call_info_t * call_info_table_lookup(st_table *table, const prof_method_key_t *key);
size_t call_info_table_insert(st_table *table, const prof_method_key_t *key, prof_call_info_t *val);

#endif //__RP_CALL_INFO_H__

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ruby-prof-0.15.5 ext/ruby_prof/rp_call_info.h
ruby-prof-0.15.4 ext/ruby_prof/rp_call_info.h
ruby-prof-0.15.3 ext/ruby_prof/rp_call_info.h
ruby-prof-0.15.2 ext/ruby_prof/rp_call_info.h
ruby-prof-0.15.1 ext/ruby_prof/rp_call_info.h
ruby-prof-0.15.0 ext/ruby_prof/rp_call_info.h
ruby-prof-0.14.2 ext/ruby_prof/rp_call_info.h
ruby-prof-0.14.1 ext/ruby_prof/rp_call_info.h
ruby-prof-0.14.0 ext/ruby_prof/rp_call_info.h
ruby-prof-0.13.1 ext/ruby_prof/rp_call_info.h
ruby-prof-0.13.0 ext/ruby_prof/rp_call_info.h
ruby-prof-0.12.2 ext/ruby_prof/rp_call_info.h
ruby-prof-0.12.1-x86-mingw32 ext/ruby_prof/rp_call_info.h
ruby-prof-0.12.1 ext/ruby_prof/rp_call_info.h